You are on page 1of 2

ROUTING *** perintah membuka setingan network **** #nano /etc/network/interfaces *** contoh settingan network **** # This

file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet static address 192.168.88.15 netmask 255.255.255.0 network 192.168.88.0 broadcast 192.168.88.255 gateway 192.168.88.1 auto eth1 iface eth1 inet static address 20.20.20.1 netmask 255.255.255.0 network 20.20.20.0 broadcast 20.20.20.255 # dns-options are implemented by the resolvconf package, if installed dns-nameservers 8.8.8.8 8.8.4.4 dns-search istiqlal.sch.id pre-up iptables -t nat -A POSTROUTING -j MASQUERADE

*** SIMPAN *** TEKAN CTRL X TEKAN Y ENTER *** mengaktifkan pasilitas router*** #nano /etc/sysctl.conf ***cari Pada bagian*** #net.ipv4.ip_forward=1 ***Hilangkan tanda # , sehingga menjadi*** net.ipv4.ip_forward=1 *** SIMPAN *** TEKAN CTRL X TEKAN Y ENTER

*** buka file rc.local *** #nano /etc/rc.local *** ketik perintah ini sebelum kata exit 0 *** iptables t nat A POSTROUTING s 20.20.20.1/24 j MASQUERADE

*** SIMPAN *** TEKAN CTRL X TEKAN Y ENTER ***** restart server dengan perintah ***** #reboot

You might also like