Rabu, 20 Agustus 2014

Cara Konfigurasi Router (Routing) Debian7

  • Buka terminal
# sudo su
masukkan password
  • Ketikkan perintah dibawah ini
# nano /etc/network/interfaces

tambahkan pada bagian paling bawah :

# auto eth1
# iface eth1 inet static
           address 192.168.12.58
           netmask 255.255.255.0


  • Edit file di /etc/sysctl.conf
# nano /etc/sysctl.conf

  • Hilangkan tanda (#) di tulisan yg berwarna merah dibawah ini :
# Uncomment the next line to enable packet forwarding for IPv4
# net.ipv4.ip_forward=1, hasil'nya
# Uncomment the next line to enable packet forwarding for IPv4
net.ipv4.ip_forward=1


  • Tuliskan perintah firewall pada file /etc/rc.local
#nano /etc/rc.local

  • Tambahkan tulisan diatas exit 0
# echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

  • Jalankan /etc/rc.local
# /etc/rc.local

SELESAI
Selamat Mencoba :)
 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Online Project management