Gateway Router FreeBSD

Simpel sebenernya  bikin Gateway Router.

Tinggal Setting beberapa file Conf

Contohnya ya….

# ee /etc/rc.conf
hostname=”rosada.uns.ac.id”
ifconfig_rl0=”inet 10.99.99.6 netmask 255.255.255.248″ # ke internet
ifconfig_rl1=”inet 192.168.0.1 netmask 255.255.255.0″ # ke LAN
defaultrouter=”10.99.99.1″
kemudian simpan, lanjutkan ke setting DNS.
Setting DNS:
# ee /etc/resolve.conf
nameserver 203.6.148.2
nameserver 114.6.7.8

Kemudian Setting rc.conf

# ee /etc/rc.conf
selanjutnya akan muncul spt dibawah ini:
defaultrouter =”YES”
gateway_enable = “YES”
sshd_enable =”YES” # agar bisa remote dgn putty
firewall_enable =”YES” # sebagai filter
firewall_type =”OPEN”
natd_enable =”YES”
natd_interface =”rl0″ # lan card yg disambung ke IP Public / internet.
sendmail semuanya yang “YES” diganti “NO” untuk men-disable service sendmail.
simpan konfigurasi ini, kemudian reboot komputer:

Edit ipnat rule nya ya..
# ee /etc/ipnat.rules
map rl1192.168.0.0/24 -> 10.99.99.6/28


# reboot
sejauh ini fungsi router standart sudah selesai…

Referensi

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s