erunix ..|


Router FreeBSD

Ditulis dalam unix oleh erunix pada Mei 14, 2007

Router FreeBSD

edit kernel anda, tambahkan options seperti dibawah ini:

 

 

 

—————kernel—————————-

 

 

 

#natd

 

 

 

options IPDIVERT

 

 

 

#filter & transparant

 

 

 

options IPFILTER

 

options IPFILTER_LOG

 

options IPFIREWALL

 

options IPFIREWALL_VERBOSE

 

options IPFIREWALL_VERBOSE_LIMIT

 

options IPFIREWALL_FORWARD

 

 

 

#beberapa options lainnya untuk memacu performa

 

options NBUF=4096

 

options NMBCLUSTERS=8192

 

 

 

———kernel———————————

 

 

 

edit rc.conf Kompilasi Kernel

 

cd /usr/src/sys/i386/conf

 

config GENERIC

 

cd ../compile/GENERIC

 

make cleandepend && make depend && make && make install && reboot

 

————————————————————-

 

 

 

———-rc.conf——————————-

 

 

 

#firewall ,

 

 

 

firewall_enable=”YES”

 

firewall_type=”OPEN”

 

gateway_enable=”YES”

 

 

 

#natd (rl0 adalah lan ip luar / PUBLIC IP)

 

natd_enable=”YES”

 

natd_interface=”rl0″

 

inetd_enable=”YES”

 

 

 

#named (untuk resolve dns)

 

named_enable=”YES”

 

#squid

 

Squid_enable=”YES”

Halaman Berikutnya »