From owner-freebsd-net@FreeBSD.ORG Fri Apr 24 17:01:32 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 21F58554; Fri, 24 Apr 2015 17:01:32 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AC242165F; Fri, 24 Apr 2015 17:01:31 +0000 (UTC) Received: from moby.local ([92.74.226.55]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MKYsh-1YmVnA3Mmd-001vb2; Fri, 24 Apr 2015 19:01:23 +0200 Message-ID: <553A76CF.8040407@gmx.com> Date: Fri, 24 Apr 2015 19:01:03 +0200 From: Nikos Vassiliadis User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Gary Palmer , "Paul S." CC: freebsd-net@freebsd.org Subject: Re: net.inet.ip.forwarding is mysteriously set to 0 References: <553A7350.40607@gmx.com> <553A73B6.8010307@winterei.se> <20150424165437.GB22493@in-addr.com> In-Reply-To: <20150424165437.GB22493@in-addr.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:ikORY165mxc/ddl26G7i3K7SPXx7muaHIzehL2T6ax70Wn3Ejeu LvzIFJ9BGOh2q+76vgZtGTRSMnXLTFBXJisFHuehLt2z9AtIZ0Edr4m4n/vgnFBtAv+Curs nllmOsA9G19L0Tb5PyKIxh/p2casFf3GLGFbVZ9DPUbDvptspjjHfXEiz698xvtJqeYYE+E L3n0Ja112o1pFHO6gz8cg== X-UI-Out-Filterresults: notjunk:1; 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 17:01:32 -0000 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@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 > > 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?