Simple Router FreeBSD

Membuat Router di FreeBSD sangat simpel berikut langkahnya :

1. Masuk Kedirectory /usr/src/sys/i386/conf
# cd cd /usr/src/sys/i386/conf
2. Copy Kernel yaitu file generic menjadi KERNELBARU
#cp GENERIC KERNELBARU
3. Edit file tersebut
# vi KERNELBARU
ganti ident GENERIC menjadi
ident KERNELBARU
dantambahkan options
options IPFIREWALL
options IPDIVERT
pilih salah satu opsi berikut ini
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPFIREWALL_VERBOSE
kemudian simpan
4. Masuk kedalam directory /usr/src
#cd /usr/src
5. kompile kernel tersebut (membutuhkan waktu kurang lebih 25 menit)
#make buildkernel KERNCONF=KERNELBARU
6. Setelah itu lakukan perintah dibawah ini
#make installkernel KERNCONF=KERNELBARU
7. kemudian edit file /etc/rc.conf
# vi /etc/rc.conf
gateway_enable=”YES”
firewall_enable=”YES”
firewall_type=”OPEN”
natd_enable=”YES”
natd_interface=”fxp0″ (interface public/ethernet atas)
natd_flags=”"
8. Restart network
#/etc/netstart

selesai selamat mencoba !!!!!!!!!!!!!!!
jika tidak yakin restart komputer ocrit

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 )

Connecting to %s

Follow

Get every new post delivered to your Inbox.