k
onfiguasi Router
Langkah-langkah untuk mengKonfigurasi Router berbasis Debian Etch 4.0 adalah sebagai berikut :
1 Set IP masing-masing Interface
Alfath : # vim /etc/network/interface
Edit file sebagai berikut :
allow-hotplug eth0 eth1
iface eth0 inet static
address 15.16.17.194
netmask 255.255.255.252
network 15.16.17.192
broadcast 15.16.17.195
gateway 15.16.17.193
iface eth1 inet static
address 192.168.110.1
netmask 255.255.255.0 (tergantung jumlah CLient yang diinginkan)
network 192.168.110.0
broadcast 192.168.110.255
2 Reboot
3 iptables –t nat –A POSTROUTING –o eth0 –j MASQUERADE
4 Konfigurasi IP Forward
Alfath: # vim /etc/sysctl.conf
Lalu hilangkan tanda pagar (#) di net.ipv4.conf.default.forwarding=1
#net.ipv4.ip_forward =1
#net.ipv4.conf.default.forwarding=1
#net.ipv6.conf.default.forwarding=1
5 Konfigurasi Routing IPTABLES
Alfath : # vim /etc/rc.local
Tambahkan : iptables –t nat –A POSTROUTING –o eth0 –j MASQUERADE
6 Cek Konfigurasi IPTABLES
Alfath : # iptables –nL –t nat
7 Cek DNS nameserver
Alfath : # vim /etc/resolv.conf
8 Update Debian Etch
Alfath : # vim /etc/apt/source.list
Beri (#) di deb cd room baris ke 2
Tambahkan : deb http://ftp.de.debian.org/debian etch main
deb-src http://ftp.de.debian.org/debian etch main
9 Lalu jalankan perintah Update
# apt-get update
Sistem akan terupdate secara otomatis. Pastikan router telah terhubung dengan internet.
Perintah di atas berfungsi agar setting IPTABLES tidak berubah saat PC Restart.
Langganan:
Posting Komentar (Atom)


0 komentar:
Posting Komentar