tugas 3
KONFIGURASI ROUTER 1.Sebelumnyaseblumnya pastikan menggunakan 2 adapter *adapter 1 = bridged adapter *adapter 2 = internal network 2. jalankan debian,kemudian setting IP dan interfaces pada debian masukan filenya : #nano /etc/network/interfaces gantikan tulisan : auto eth0 iface eth0 inet static address 192.168.12.200 network 192.168.12.0 netmask 255.255.255.0 broadcast 192.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 jawa Y enter 3. setting router : #nano /etc/rc.local tuliskan pada baris di atas exit 0 ip tables -t nat -A POSTROUTING -O eth0 -j MASQUERADE simpan 4. restart interface nya : #nano /etc/syctl.conf cari tulisan : net.ipv4. ip_forward =1 h