Pico /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.5.163
netmask 255.255.255.0
network 192.168.5.0
gateway 192.168.5.1
auto eth1
iface eth1 inet static
address 192.168.213.5
netmask 255.255.255.0
network 192.168.213.0
broadcast 192.168.213.255
*save
/etc/init.d/networking restart
pico /etc/rc.local
ifconfig eth0 up
ifconfig eth1 up
iptables -A INPUT -i 192.168.213.5 -j ACCEPT
iptables -A INPUT -i 192.168.5.163 -j ACCEPT
iptables -A FORWARD -i 192.168.213.5 -o 192.168.5.163 -j ACCEPT
iptables -A FORWARD -i 192.168.5.163 -o 192.168.213.5 -j ACCEPT
iptables -A OUTPUT -o 192.168.213.5 -j ACCEPT
iptables -A OUTPUT -o 192.168.5.163 -j ACCEPT
iptables -t nat -A POSTROUTING -s 192.168.213.0/24 -d 0/0 -j MASQUERADE
*save
pico /etc/sysctl.conf
#net.ipv4.ip_forward=1
tulis dibawah
net.ipv4.ip_forward=1
*save
/etc/resolv.conf
nameserver 192.168.5.1
nameserver 103.29.184.193
Alam Taufiqurachman. Hometown : Tangerang Selatan City. Second Home : Buah Batu - BANDUNG MI Al-Awwabin Depok MTs Soebono Mantofani Tangsel Smk Bina Informatika Bintaro Telkom University Bandung Penghoby Vespa dan Trip-Tripan
No comments:
Post a Comment