「ipf」の編集履歴(バックアップ)一覧に戻る
ipf - (2008/12/24 (水) 14:41:27) のソース
&link_edit()&topicpath()
# 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