Date: Mon, 27 Apr 2015 13:41:13 +0800 From: Julian Elischer <julian@freebsd.org> To: wishmaster <artemrts@ukr.net>, nvass@gmx.com Cc: freebsd-net@freebsd.org Subject: Re: net.inet.ip.forwarding is mysteriously set to 0 Message-ID: <553DCBF9.1010705@freebsd.org> In-Reply-To: <1429894130.217124945.cx0dr7rv@frv34.fwdcdn.com> References: <553A7350.40607@gmx.com> <1429894130.217124945.cx0dr7rv@frv34.fwdcdn.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 4/25/15 12:53 AM, wishmaster wrote: > Hi, > > --- Original Message --- > From: "Nikos Vassiliadis" > Date: 24 April 2015, 19:46:42 > > > >> Hi, >> >> Just saw this. Can somebody re-produce this? >> >>> root@m4fh2:~ # sysctl net.inet.ip.forwarding >>> net.inet.ip.forwarding: 1 >>> root@m4fh2:~ # ifconfig bridge0 create >>> root@m4fh2:~ # sysctl net.inet.ip.forwarding >>> net.inet.ip.forwarding: 0 Basically all the setup scripts in /etc/rc.d (andaother setup scripts in /etc and /usr/local/etc) all source /etc/rc.conf and it's friends (defaults etc.) if any of thse scripts gets called (for example by devd when it notices a new interface), then the entire chain of dependencies related to that chain will be run **according to how the config files tell it to run* * and not how the current sysctls are set. if you think about it, this must be the case as htey need to change the sysctls as part of their operation. maybe we should have a script to do what you want and also uses sysrc(8) to make it permanent. >> That's on GENERIC 10-STABLE from the day before yesterday. >> > Put > gateway_enable=YES > into rc.conf and try again. > > Cheers, > Vitaliy > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?553DCBF9.1010705>