kyoyaの日記: 5.2.1R(->5.2CURRENT) - 505SX - Install
■インストール
ふつうに
■カーネル再構成
options IPFILTER #ipfilter support
options IPFILTER_LOG #ipfilter logging
#options IPSTEALTH #support for stealth forwarding
options PFIL_HOOKS #required by IPFILTER
■ipf/ipnat設定
$ cat /etc/rc.conf
...
#ipf_enable="YES"
#ipf_rules="/etc/ipf.conf"
ipnat_enable="YES"
ipnat_rules="/etc/ipnat.conf"
$ cat /etc/ipf.conf :)
pass in all
pass out all
$ cat /etc/ipnat.conf
map wi0 from 10.36.xxx.0/24 ! to 10.36.xxx.0/24 -> 218.yyy.yyy.24/32 portmap tcp/udp auto
map wi0 from 10.36.xxx.0/24 ! to 10.36.xxx.0/24 -> 218.yyy.yyy.24/32
■NTP設定
$cat /etc/rc.conf
...
xntpd_enable="YES"
xntpd_program="ntpd"
xntpd_flags="-p /var/run/ntpd.pid"
$cat /etc/ntp.conf
server ntp1.jst.mfeed.ad.jp
driftfile /etc/ntp.drift
$touch /etc/ntp.drift
■アプリ
cvsup
ja-emacs21
mew3
mozilla
screen
■CURRENT追従
$ cat supfile
*default host=cvsup3.jp.FreeBSD.org
*default tag=.
*default prefix=/usr
*default base=/usr
*default release=cvs delete use-rel-suffix compres
src-all
ports-all
$ cvsup supfile
$cat /etc/make.conf
...
KERNCONF=wererat
$ cd /usr/src
$ make buildworld
$ make buildkernel
# consoleでsingle userに
$ shutdown now
$ make installworld
#$ make kernel NO_PF=YES
$ fastboot
$ cd /usr/src/sys/i386/conf
$ config GENERIC
$ cd ../compile/GENERIC
$ make depend all install
$ fastboot
5.2.1R(->5.2CURRENT) - 505SX - Install More ログイン