Konfigurasi Router Debian Etch Network

Berikut ini merupakan Langkah Konfigurasi Router Sederhana berbasis Debian Etch

Misalkan kita menentukan IP untuk interface sbb :
Interface Eth0 (untuk koneksi ke internet) :

IP : 10.26.7.194

Submask : 255.255.255.252

Gateway : 10.26.7.193


- Interface Eth1 (untuk koneksi ke Local Network)

IP : 192.168.10.1

Submask : 255.255.255.0


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

1. Set IP masing-masing Interface


Command : # vim /etc/network/interface


Edit file sebagai berikut :


allow-hotplug eth0

iface eth0 inet static

address 10.26.7.194

netmask 255.255.255.252

network 10.26.7.192

broadcast 10.26.7.195

gateway 10.26.7.193


iface eth1 inet static

address 192.168.10.1

netmask 255.255.255.0

network 192.168.10.0

broadcast 192.168.10.255


2. Update Debian Etch


Command : # vim /etc/apt/source.list


Tambahkan command berikut :


deb http://ftp.de.debian.org/debian etch main

deb-src http://ftp.de.debian.org/debian etch main


Lalu jalankan perintah Update

# apt-get update


Sistem akan terupdate secara otomatis. Pastikan router telah terhubung dengan internet.

3. Konfigurasi Routing IPTABLES


Command : # vim /etc/rc.local


Tambahkan : iptables –t nat –A POSTROUTING –o eth0 –j

MASQUERADE


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

4. Cek Konfigurasi IPTABLES


Command : # iptables –nL –t nat

5. Cek DNS nameserver

Command : # vim /etc/resolv.conf

6. Konfigurasi IP Forward

Command : # vim /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


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



Selesai…. Router Sederhana siap digunakan


———–Selamat Mencoba————-

0 komentar:

Posting Komentar

Berkomentarlah sesuka hatimu...!!!!!

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Justin Bieber, Gold Price in India