From owner-freebsd-net@FreeBSD.ORG Fri Apr 24 16:54:54 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DCB902AC for ; Fri, 24 Apr 2015 16:54:54 +0000 (UTC) Received: from smtp4.mail.clearhost.co.uk (smtp4.mail.clearhost.co.uk [IPv6:2001:1420::25:104]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.mail.clearhost.co.uk", Issuer "RapidSSL CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A80891556 for ; Fri, 24 Apr 2015 16:54:54 +0000 (UTC) Received: from [2001:1420:a:105:c62c:3ff:fe2f:bf] (port=62277 helo=parsnip.heronsbrook.org.uk) by smtp4.mail.clearhost.co.uk with esmtpa (Exim 4.76 (FreeBSD)) (envelope-from ) id 1YlgsN-000F14-RL for freebsd-net@freebsd.org; Fri, 24 Apr 2015 16:54:51 +0000 Message-ID: <553A75E7.4090804@prt.org> Date: Fri, 24 Apr 2015 17:57:11 +0100 From: Paul Thornton User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: Re: net.inet.ip.forwarding is mysteriously set to 0 References: <553A7350.40607@gmx.com> <553A73B6.8010307@winterei.se> In-Reply-To: <553A73B6.8010307@winterei.se> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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: Fri, 24 Apr 2015 16:54:54 -0000 Hi This happens when any interface is created if you've enabled forwarding with the sysctl and not using gateway_enable in rc.conf. It is easily fixed though. See this thread from January: https://docs.freebsd.org/cgi/getmsg.cgi?fetch=403720+0+archive/2015/freebsd-net/20150104.freebsd-net Paul. On 24/04/2015 17:47, 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@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 >> >> That's on GENERIC 10-STABLE from the day before yesterday. >> >> Thanks, >> Nikos >> _______________________________________________ >> 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" > > _______________________________________________ > 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"