freebsd Compile kernel and enable pf

Posted: January 30, 2010 in Freebsd

How to compile kernel on freebsd in simple way and enable pf on kernel.

# cd /usr/src/sys/i386/conf

# cp GENERIC MYBSD

# pico MYBSD

edit and put this on last paragraph

for pf :

———————————————————————

device          pf
device          pflog
device          pfsync

———————————————————————

# config MYBSD

# cd ../compile/MYBSD

# make cleandepend && make depend

# make && make install

before you reboot to new kernel put this on rc.conf

firewall_enable=”YES”

firewall_type=”OPEN”

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