1.SETTING ROUTING
burhan> nano /etc/network/interfaces
# The loopback network interface
Allow-hotplug eth0
# The primary network interfaces
Auto eth0
Iface eth0 inet static
Address
100.100.100.22
Netmask
255.255.255.0
Network
100.100.100.1
Broadcast
100.100.100.255
Gateway
100.100.100.1
#
dns- options are implemented by the resolvconf package, if installed
Dns-nameservers
100.100.100.1
Dns-search
burhan.com
# The secondary network interface
auto eth1
iface eth1 inet static
address
192.168.0.1
netmask
255.255.255.192
network
192.168.0.0
broadcast
192.168.0.5
burhan>nano /etc/rc.local
IP tables –A POSTROUTING –t nat –o eth0 –j MASQUARADE
burhan>IPTABLES –t NAT –n -L
burhan>pico
/etc/sysctl.conf
MENGHILANGKAN PAGAR DI TULISAN (#)
net.ipv4.ip_forward=1
burhan> /etc/init.d/networking
restart