net.inet.ip.forwarding is mysteriously set to 0
Nikos Vassiliadis
nvass at gmx.com
Fri Apr 24 17:01:32 UTC 2015
On 04/24/15 18:54, Gary Palmer wrote:
> On Sat, Apr 25, 2015 at 01:47:50AM +0900, Paul S. wrote:
>> Can confirm that anything to do with netif restart on a forwarding
>> interface also creates the same problem.
>>
>> On 4/25/2015 ?????? 01:46, Nikos Vassiliadis wrote:
>>> Hi,
>>>
>>> Just saw this. Can somebody re-produce this?
>>>
>>>> root at m4fh2:~ # sysctl net.inet.ip.forwarding
>>>> net.inet.ip.forwarding: 1
>>>> root at m4fh2:~ # ifconfig bridge0 create
>>>> root at m4fh2:~ # sysctl net.inet.ip.forwarding
>>>> net.inet.ip.forwarding: 0
>>>
>>> That's on GENERIC 10-STABLE from the day before yesterday.
>>>
>>> Thanks,
>>> Nikos
>
> What is your setting for gateway_enable in /etc/rc.conf?
Thanks Gary,
I was not using anything in rc.conf. I was just using
the sysctl in /etc/sysctl.conf. Setting gateway_enable to yes
fixes the issue.
I am kind of surprised. Is this behaviour new?
More information about the freebsd-net
mailing list