KONFIGURASI ROUTER
Install Debian #Root #1234 #Ifconfig #Ifconfig eth1 up #Ifconfig #nano /etc/network/interfaces allow diganti menjadi auto DHCP diubah menjadi static address 192.168.12.118 network 192.168.12.0 netmask 255.255.255.0 broadcast 192.168.12.255 gateway 192.168.12.1 auto eth1 inface eth1 inet static address 192.168.1.1 network 192.168.1.0 netmask 255.255.255.0 broadcast 192.168.1.255 gateway 192.168.12.118 Ctrl x---y #nano /etc/sysctl.conf Hapus tanda (#) di depan # net.IPV4.ip-forward=1 Ctrl x---y nano /etc/resolv.conf Hapus nameserver dan sisakan DNS 8.8.8.8 dan 8.8.4.4 Ctrl x---y #nano /etc/rc.local Tulis iptables -t nat -A POSTROUTING -o etho -j MASQUERADE Ctrl x---y #/etc/init.d/networking restart (enter) #networking restart (enter) #ifconfig #Ping 192.168.12.1 dan 8.8.8.8 atau www.google.com Ctrl c untuk menghentikan ping #reboot (enter) #root #1234 #ifconfig
Komentar
Posting Komentar