Saturday, February 17, 2007

Proxy

This summary is not available. Please click here to view the post.

PC Routing

Step by step making a Pc Routing

created by : clownx_master w/ his beautyslave : Shina

1. buat ip berbeda d setiap eth0 dan eth1 mis:192.168.0.2 & 192.168.1.2
2. masuk konsole dan ketik "route add default gw 192.168.0.2 "
3. edit file di "/etc/sysconfig/network-scripts/ifcfg-eth0 dan eth1"
4. tambain baris device=eth0, bootproto=static, onboot=yes, ipaddr=192.168.0.2, netmask=/24, broad=192.168.0.255, network=192.168.0.0--------> eth0
5. tambain baris device=eth0, bootproto=static, onboot=yes,ipaddr=192.168.1.2, netmask=/24, broad=192.168.1.255, network=192.168.1.0--------> eth1
6. vi file di /etc/sysconfig/network
7. muncul file window n tambain gatewaydev=eth0, forward_ipv4=yes, networking=yes, gateway=192.168.0.2---> save file itu
8. #service network restart
9. u/ NAT :#modprobe iptables_nat
#modprobe ip_conntrack_ftp etho eth1
#modprobe ip_conntrack_irc eth0 eth1
#modprobe ip_nat_ftp eth0 eth1
#modprobe ip_nat_irc eth0 eth1
10. u/ mengaktifkan ip forwarding : #echo 1 > /proc/sys/net/ipv4/ip_forward
11. u/ membolehkan masquerade : #iptables -t nat -A PREROUTING -s 192.168.0.0/24 -j MASQUERADE
12. u/ membolehkan ip forwarding melewati firewall : #iptables -A FORWARD -s 192.168.0.0/24 -J ACCEPT
13. #iptables-save