1. nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address
192.168.1.xx
netmask
255.255.255.0
gateway
192.168.1.254
auto eth1
iface eth1 inet static
address
192.168.10.254
netmask
255.255.255.0
2. nano /etc/rc.local
(tambahkan sebelum baris tulisan exit 0)
iptables –A POSTROUTING –t nat –o eth0 –j
MASQUERADE
3. nano /etc/network/option
(tuliskan script ini)
ip_forward = yes
spoofprotect = yes
syncookies = no
4. nano /etc/sysctl.conf
cari kata #net.ipv4.ip_forward=1
kemudian hilangkan tanda “#”
5. /etc/init.d/networking restart
6. nano /etc/resolv.conf
tambahkan nameserver berikut :
search harnanda.edu
nameserver 192.168.10.254
nameserver 8.8.8.8
nameserver 8.8.4.4
7. reboot
0 komentar:
Posting Komentar