NetBSD/etc/rc.d/Makefile
peter 9c1da17e90 pf needs to be started after the network is up, because some pf rules
derive IP address(es) from the interface (e.g "... from any to fxp0").
This however, creates window for possible attacks from the network.

Implement the solution proposed by YAMAMOTO Takashi:
Add /etc/defaults/pf.boot.conf and load it with the /etc/rc.d/pf_boot
script before starting the network. People who don't like the default
rules can override it with their own /etc/pf.boot.conf.
The default rules have been obtained from OpenBSD.

No objections on: tech-security
2005-08-23 12:12:56 +00:00

31 lines
1.1 KiB
Makefile
Executable File

# $NetBSD: Makefile,v 1.52 2005/08/23 12:12:56 peter Exp $
.include <bsd.own.mk>
# if you're adding new scripts, don't forget to update followings.
# src/distrib/sets/lists/etc/mi
# src/etc/mtree/special
# src/usr.sbin/postinstall/postinstall
CONFIGFILES=\
DAEMON LOGIN NETWORKING SERVERS \
accounting altqd amd apmd \
bootparams bootconf.sh ccd cgd cleartmp cron \
dhclient dhcpd dhcrelay dmesg downinterfaces fixsb fsck ftpd \
identd ifwatchd inetd ipfilter ipfs ipmon ipnat ipsec isdnd \
kdc ldconfig lkm1 lkm2 lkm3 local lpd \
mixerctl mopd motd mountall mountcritlocal mountcritremote mountd \
moused mrouted \
named ndbootd network newsyslog nfsd nfslocking ntpd ntpdate \
pf pf_boot pflogd poffd postfix powerd ppp pwcheck quota \
racoon rpcbind raidframe raidframeparity rarpd rbootd root \
route6d routed rtadvd rtclocaltime rtsold rwho \
savecore screenblank sendmail securelevel smmsp sshd \
staticroute swap1 swap2 sysdb sysctl syslogd \
timed tpctl ttys veriexec virecover wdogctl wscons wsmoused xdm xfs \
ypbind yppasswdd ypserv
FILESDIR= /etc/rc.d
FILESMODE= ${BINMODE}
.include <bsd.prog.mk>