編集Top > ipf
# cd /usr/src/sys/i386/conf
# cp GENERIC IPFILTER
# vi IPFILTER
ident IPFILTER
options IPFILTER
options IPFILTER_LOG
options IPFILTER_DEFAULT_BLOCK
# cd /usr/src
# make buildkernel KERNCONF=IPFILTER
# make installkernel KERNCONF=IPFILTER
# reboot
# vi /etc/rc.conf
ipfilter_enable="YES"
ipfilter_rules="/etc/ipf.rules"
ipmon_enable="YES"
ipmon_flags="-Ds"
gateway_enable="YES"
ipnat_enable="YES"
ipnat_rules="/etc/ipnat.rules"
# vi /etc/ipf.rules
# ipf -Fa -f /etc/ipf.rules
最終更新:2008年12月24日 14:41