Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Feb 2011 22:59:10 -0800
From:      Garrett Cooper <yanegomi@gmail.com>
To:        "freebsd-rc@FreeBSD.org" <freebsd-rc@freebsd.org>
Subject:   natd doesn't start automatically on 8.2 (8.1 -> 8.2 regression)
Message-ID:  <AANLkTi=S%2Bt4vbnSdkL6qPMVtwxmBge3FK1mFSSZ6gb2n@mail.gmail.com>

next in thread | raw e-mail | index | archive | help

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@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@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?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=S%2Bt4vbnSdkL6qPMVtwxmBge3FK1mFSSZ6gb2n>