Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Oct 2005 09:43:53 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Yance Kowara <yance_kowara@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: packet forwarding
Message-ID:  <20051027144353.GA5142@dan.emsphone.com>
In-Reply-To: <20051027142007.24881.qmail@web30312.mail.mud.yahoo.com>
References:  <20051027142007.24881.qmail@web30312.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Oct 27), Yance Kowara said:
> What's the difference between 
> 
> gateway_enable="YES" in /etc/rc.conf
> 
> and
> 
> net.inet.ip.forwarding=1 in /etc/sysctl.conf

>From /etc/rc.d/routing:

        case ${gateway_enable} in
        [Yy][Ee][Ss])
                echo -n ' IP gateway=YES'
                sysctl net.inet.ip.forwarding=1 >/dev/null
                ;;
        esac

So the answer is: nothing, except that adding the line to sysctl.conf
enables packet forwarding before interfaces are configured and other
network variables are set, so you may get spurious "host unreachable"
errors from systems trying to route through the box when it boots up.

-- 
	Dan Nelson
	dnelson@allantgroup.com



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