KONFIGURASI IP
ADDRESS
~# nano
/etc/network/interfaces
auto
lo eth0 eth1
iface
lo inet loopback
iface
eth0 inet dhcp
iface
eth1 inet static
address 192.168.17.1
netmask 255.255.255.224
network 192.168.17.0
broadcast 192.168.17.31
setelah itu disimpan (CTRL+O
<enter>, CTRL+X)
~# nano
/etc/sysctl.conf
cari teks berikut
#net.ipv4.ip_forward=1
Lalu lepas tanda pagar (#) untuk diaktifkan:
net.ipv4.ip_forward=1
setelah itu disimpan (CTRL+O
<enter>, CTRL+X)
~# nano
/etc/rc.local
Masukkan perintah berikut di atas
teks “Exit 0”
echo 1 > /proc/sys/net/ipv4/ip_forward
exit 0
setelah itu disimpan (CTRL+O
<enter>, CTRL+X)
~# service networking
restart
KONFIGURASI
FIREWALL
~# nano /etc/rc.local
Ketikkan teks berikut diatas exit 0 :
iptables
–t nat –A POSTROUTING –o eth0 –j MASQUERADE
setelah itu disimpan (CTRL+O
<enter>, CTRL+X)
No comments:
Post a Comment