From owner-freebsd-net@FreeBSD.ORG Mon Apr 27 05:41:26 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A5B53957 for ; Mon, 27 Apr 2015 05:41:26 +0000 (UTC) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 820C410B1 for ; Mon, 27 Apr 2015 05:41:26 +0000 (UTC) Received: from Julian-MBP3.local (ppp121-45-241-118.lns20.per4.internode.on.net [121.45.241.118]) (authenticated bits=0) by vps1.elischer.org (8.14.9/8.14.9) with ESMTP id t3R5fHp0038048 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sun, 26 Apr 2015 22:41:22 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <553DCBF9.1010705@freebsd.org> Date: Mon, 27 Apr 2015 13:41:13 +0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: wishmaster , nvass@gmx.com CC: freebsd-net@freebsd.org Subject: Re: net.inet.ip.forwarding is mysteriously set to 0 References: <553A7350.40607@gmx.com> <1429894130.217124945.cx0dr7rv@frv34.fwdcdn.com> In-Reply-To: <1429894130.217124945.cx0dr7rv@frv34.fwdcdn.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2015 05:41:26 -0000 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" > >