Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Dec 2000 22:39:09 -0500 (EST)
From:      Shawn Foran <shawn@hamnet.org>
To:        freebsd-questions@freebsd.org
Subject:   rc.conf problems.
Message-ID:  <200012070339.WAA14887@hamnet.org>

next in thread | raw e-mail | index | archive | help
I recently decided to completely rebuild on of my FreeBSD boxes which I am using at my gateway/firewall machine. I loaded it fresh with 4.2-RELEASE and now I am having some problems.

It seems as the some of the things I have put in /etc/rc.conf are not taking affect

Here is what my /etc/rc.conf looks like:

# This file now contains just the overrides from /etc/defaults/rc.conf
# please make all changes to this file.
# -- sysinstall generated deltas -- #
ifconfig_fxp0="DHCP"
ifconfig_fxp1="inet 10.10.10.1 netmask 255.255.255.0"
hostname="CC69971-A";
linux_enable="YES"
moused_enable="YES"
moused_port="/dev/psm0"
moused_type="auto"
moused_enable="YES"
gateway_enable="YES"
natd_enable="YES"
natd_interface="fxp0"
natd_flags="-f /etc/natd.conf"
firewall_enable="YES"
firewall_type="router"
# -- sysinstall generated deltas -- #
saver="green"

I say some because things like the setting up of the network cards (fxp0 and fxp1) are working correctly as well is the setting up of the host name.

The gateway_enable line, firewall_enable, firewall_type and natd_enable do not seem to be overiding what is in /etc/defaults/rc.conf - I even did a sysctl net.inet.ip.forwarding and found it was still set to 0.

I did go in an edit /etc/defaults/rc.conf and changed the respective lines to match my rc.conf and everything works fine. In other words, I made my /etc/defaults/rc.conf have gateway_enable="YES", natd_enable="YES", etc and after a reboot, things work.

Anyone have any idea why this would happen?

Thanks in advance!
Shawn




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012070339.WAA14887>