Konfigurasi Router Server

 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.102

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.6

network 192.168.1.0

netmask 255.255.255.248

broadcast 192.168.1.7

gateway 192.168.12.102

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