PC router
# nano /etc/network/interfaces
Auto
eth1
Iface
eth1 inet static
address 192.168.5.1
netmask 255.255.255.0
network 192.168.5.0
broadcast 192.168.5.255
address 192.168.5.1
netmask 255.255.255.0
network 192.168.5.0
broadcast 192.168.5.255
# nano /etc/resolv.conf
# nano /etc/sysctl.conf
# /etc/init.d/networking restart
# cat /proc/sys/net/ipv4/ip_forward
# nano /etc/rc.local
Echo 1 >
/proc/sys/net/ipv4/ip_forward
Iptables –t nat –A
POSTROUTING –o eth0 –j MASQUERADE
#reboot
Tidak ada komentar:
Posting Komentar