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-unsubscr...@freebsd.org"
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"