Rabu, 28 Mei 2014

UBUNTU ROUTER

Ubuntu router

• Topo logi
Modem—ubuntu—client
Setelah install ubuntu selesai

• Tinggal setting ethr0-eth1
Sesuaikan dengan kebutuhan….

=>Pico /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 202.134.1.10

auto eth1
iface eth1 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
lalu simpan

*catatan (eth0=wan, eth1=lan)

• Seting forward
=>Pico /etc/sysctl.conf
Cari kata # net.ipv4.ip_forward=1
Hilangkan “#”
Lalu simpan

• Seting dns selain pake bind9
=>pico /etc/resolv.conf
Lalu ketik dns yang di inginkan missal:
nameserver 202.134.1.10
lalu simpan

• Lalu kita buat nat
Agar iptable selalu starup kita buat di /etc/rc.local sebagi boot up ubuntu
=>Pico /etc/rc.local
Lalu ketik ip table ini
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
lalu simpan

selesai

Sumber

0 komentar:

Posting Komentar

Twitter Delicious Facebook Digg Stumbleupon Favorites More