Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Aug 2015 10:10:43 -0500
From:      Adam Vande More <amvandemore@gmail.com>
To:        Marcelo Gondim <gondim@bsdinfo.com.br>
Cc:        "Andrey V. Elsukov" <bu7cher@yandex.ru>,  FreeBSD Stable Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: Routing stops working when we create a new vlan
Message-ID:  <CA%2BtpaK2NDptCqMdRmyHssu5rMSZf0oyDH-inOHGJwRpMc1NHeg@mail.gmail.com>
In-Reply-To: <55C4C69B.3030607@bsdinfo.com.br>
References:  <55C3E641.9060305@bsdinfo.com.br> <55C4AFC8.9030302@yandex.ru> <55C4C0BB.5070204@bsdinfo.com.br> <55C4C1CF.5070505@yandex.ru> <55C4C69B.3030607@bsdinfo.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 7, 2015 at 9:54 AM, Marcelo Gondim <gondim@bsdinfo.com.br>
wrote:

>
> But I still think it does wrong. Why to create a vlan I need to have this
> parameter configured in rc.conf? Or why it needs to change
> net.inet.ip.forwarding?


Because that is what the directions for configuring a default gateway
state, and the directions are based off of code behavior.

 /etc/rc.d/routing:

        if checkyesno gateway_enable; then
                ropts_init inet
                echo -n ' gateway=YES'
                ${SYSCTL} net.inet.ip.forwarding=1 > /dev/null
        else
                ${SYSCTL} net.inet.ip.forwarding=0 > /dev/null
        fi


-- 
Adam



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BtpaK2NDptCqMdRmyHssu5rMSZf0oyDH-inOHGJwRpMc1NHeg>