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

Tentang faish83

langkah maju
Pos ini dipublikasikan di Uncategorized dan tag . Tandai permalink.

7 Balasan ke Ubuntu router

  1. mazjuwi berkata:

    hebat boz truskan……………

  2. tuandra berkata:

    mantapp..ney bang…tq atas infonya….^^

  3. ketox berkata:

    matur suwun mas BAROK… dari catatan sampean niki kulo saget install ubuntu server 10.10 sekalian saget ngeNAT piyambak, kantun ndamel squid standar mawon kaleh di oprek kedik bagian cache lan refresh e seng tasih mbulet… saestu matur suwun nggih… kaleh nyuwun izin e ngeruk sedoyo ilmu ten mriki

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s