natd doesn't start automatically on 8.2 (8.1 -> 8.2 regression)

Garrett Cooper yanegomi at gmail.com
Sat Feb 19 07:23:26 UTC 2011


Hi rc folks,
    After upgrading to 8.2 on my little gateway/router box, I've
noticed that natd no longer starts automatically when `KEYWORD:
nostart' is specified in the header of the script. Oddly enough, this
doesn't appear to be an issue on either 8.1 -- even though the code in
the rc-scripts (etc/rc, etc/rc.d/natd, sbin/rcorder/...) hasn't
changed between the 8.1 and 8.2 release cycles -- and it doesn't occur
on my FreeBSD CURRENT box:

# uname -a
FreeBSD toaster.local 8.2-RELEASE FreeBSD 8.2-RELEASE #0 r218744: Fri
Feb 18 19:26:10 PST 2011
gcooper at toaster.local:/usr/obj/usr/src/sys/BREADBOX-modules  i386
# rcorder /etc/rc.d/* | grep natd
/etc/rc.d/natd
# rcorder -s nostart /etc/rc.d/* | grep natd
# make KERNCONF=BREADBOX-modules -VMODULES_OVERRIDE -f /etc/src.conf
ipdivert ipfw libalias

$ uname -a
FreeBSD tameshi.cisco.com 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r218825M:
Fri Feb 18 17:45:54 PST 2011
garrcoop at tameshi.cisco.com:/usr/obj/data/scratch/src/head/sys/TAMESHI_CURRENT
 amd64
$ rcorder /etc/rc.d/* | grep natd
/etc/rc.d/natd
$ rcorder -s nostart /etc/rc.d/* | grep natd
$ make KERNCONF=TAMESHI_CURRENT -VMODULES_OVERRIDE -f /etc/src.conf
aio bce bge em bridgestp if_bridge ipdivert ipfw ipfw_nat libalias
i2c/smbus ipmi linprocfs linsysfs linux

    When I remove nostart in rc.d/natd on my 8.2 box, stuff works the
way it should given the documentation in the handbook:
http://www.freebsd.org/doc/handbook/network-natd.html . This behavior
occurs either when I build the kernel with the ipfw stuff as modules
or statically (it was a variance between my 8.2-RELEASE and CURRENT
box).
    I haven't chased down the root-cause for this new behavior, but
ideas are more than welcome.
Thanks,
-Garrett

PS What's the purpose of the nostart category?


More information about the freebsd-rc mailing list