FreeBSD 6.x make new kernel

# cd /usr/src/sys/i386/conf/
# cp GENERIC newkernel
# vi newkernel

增加ipfiter 當firewall
options "AUTO_EOI_1"
options QUOTA
options IPFIREWALL #firewall
options IPFIREWALL_VERBOSE
options IPFIREWALL_FORWARD #enable transparent proxy support
options IPFIREWALL_VERBOSE_LIMIT=100 #limit verbosity
options IPFIREWALL_DEFAULT_TO_ACCEPT #allow everything by default
options IPDIVERT #divert socket
options DUMMYNET
options IPFILTER #ipfilter support
options IPFILTER_LOG
options TCP_DROP_SYNFIN #drop TCP packets with SYN+FIN
#options NMBCLUSTERS=65536

雙CPU設定
options SMP # Symmetric MultiProcessor Kernel
#options APIC_IO # Symmetric (APIC) I/O(5.4不支援)

# cd /usr/src
# make buildkernel KERNCONF=newkernel
# make installkernel KERNCONF=newkernel
# sync ; sync ; sync
# reboot

Posted in 標籤: |

0 意見: