KONFIGURASI ROUTER
1.sebelum mulai pastikan menggunakan 2 adapter yaitu:
- adapter1 = bridged adapter
- adapter2 =internal network
ke filenya : #nano /etc/network/interface
ganti tulisan :
allow-hotplug eth0
iface eth0 inet dhcp
menjadi :
auto eth0
iface eth0 inet static
address 192.168.12.206
network 192.168.12.0
netmask 255.255.255.0
broadcast 19.168.12.255
gateway 192.168.12.1
auto eth1
iface eth1 inet static
address 192.168.20.1
network 192.168.20.0
netmask 255.255.255.0
broadcast 192.168.20.255
simpan dengan ctrl+x jawab Y enter
3.setting router : #nano /etc/rc.local
tuliskan pada baris di atas exit 0
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sumpan
4. mengaktifkan ip forwarding : #nano /etc/sysct1.conf
cari tulisan : net.ipv4.ip_forward =1
hilangkan tanda pagarnya lalu simpan
5.restart inteface nya : #/etc/init.d/networking restart