Home arrow Configure arrow Kernel Configurations arrow Kernel with ALTQ and pf support
Kernel with ALTQ support for PF PDF
Tuesday, 05 December 2006
If you build a router with PF and ALTQ support you will need these options added to your Kernel. Copy GENERIC file to a new file, for example ROUTER (GENERIC file is located in /usr/src/sys/i386/conf) then edit and add the following options:

# -------- append this to ROUTER kernel configuration file -------------

# used for bridge support, device polling and ipstealth protection
options BRIDGE

# tuning
options MAXFILES=8192

options SYSVMSG

# ALTQ support in kernel
options ALTQ_CBQ
options ALTQ_RED
options ALTQ_RIO
options ALTQ_HFSC
options ALTQ_PRIQ

# pf (OpenBSD's Packet filter) support in FreeBSD kernel
device mem
device pf
device pflog
device pfsync
# ------------------------- end of ROUTER file ---------------------------

As you see not all options are for PF and ALTQ support. There are some other options that helps when you build a router (like DEVICE_POLLING) support. This kernel configuration file also supports BRIDGE mode, for building a BRIDGE.


Other BSD Systems





Best BSD firewall?