"WELCOME TO MY BLOG"

Konfigurasi Router Debian 5 Lenny

Berikut ini merupakan Langkah Konfigurasi Router Sederhana berbasis Debian 5 Lenny

Misalkan kita menentukan IP untuk interface sbb :

- Interface Eth0 (untuk koneksi ke internet) :

IP : 10.20.1.1

Submask : 255.255.255.0

Gateway : 10.20.1.1

- Interface Eth1 (untuk koneksi ke Local Network)

IP : 192.168.1.1

Submask : 255.255.255.0

Langkah-langkah untuk mengKonfigurasi Router berbasis Debian 5 Lenny adalah sebagai berikut :

1. Set IP masing-masing Interface

Command : # nano /etc/network/interface

Edit file sebagai berikut :

allow-hotplug eth0

iface eth0 inet static

address 10.20.1.1

netmask 255.255.255.0

network 10.20.1.0

broadcast 10.20.1.255

gateway 10.20.1.1

iface eth1 inet static

address 192.168.1.1

netmask 255.255.255.0

network 192.168.1.0

broadcast 192.168.1.255

2. Konfigurasi Routing IPTABLES

Command : # nano /etc/rc.local

Tambahkan :

echo 1 > /proc/sys/net/ipv4/ip_forward

iptables –t nat –A POSTROUTING –o eth0 –j MASQUERADE

Perintah di atas berfungsi agar setting IPTABLES tidak berubah saat PC Restart.

3. Cek Konfigurasi IPTABLES

Command : # iptables –nL –t nat

4. Konfigurasi IP Forward

Command : # nano /etc/sysctl.conf

Lalu hilangkan tanda pagar (#) yang ada di depan komentar berikut :

#net.ipv4.conf.default.rp_filter=1

#net.ipv4.ip_forward =1

#net.ipv4.conf.default.forwarding=1

Selesai…. Router Sederhana siap digunakan ,.,., gampang kaN ,.,

selamat mencoba .... !!!


:okay:

0 people have left comments

Commentors on this Post-