packet forwarding

Dan Nelson dnelson at allantgroup.com
Thu Oct 27 07:43:56 PDT 2005


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 at allantgroup.com


More information about the freebsd-questions mailing list