From owner-freebsd-questions@freebsd.org Thu Sep 3 13:30:07 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E39469C987C for ; Thu, 3 Sep 2015 13:30:07 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [IPv6:2607:f3e0:0:1::12]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "smarthost.sentex.ca", Issuer "smarthost.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 98877378 for ; Thu, 3 Sep 2015 13:30:06 +0000 (UTC) (envelope-from mike@sentex.net) Received: from [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a] (saphire3.sentex.ca [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a]) by smarthost1.sentex.ca (8.15.2/8.15.2) with ESMTP id t83DU4IP035662; Thu, 3 Sep 2015 09:30:04 -0400 (EDT) (envelope-from mike@sentex.net) Subject: Re: 10.2-RELEASE not forwarding packets/NATing with pf To: Sergey Grigorian , "freebsd-questions@freebsd.org" References: <5C137CAA56211A448C4F58E75EFB6266C285B582@EXCHANGE.lan.theconcept.ru> From: Mike Tancsa Organization: Sentex Communications Message-ID: <55E84B51.7070103@sentex.net> Date: Thu, 3 Sep 2015 09:29:53 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <5C137CAA56211A448C4F58E75EFB6266C285B582@EXCHANGE.lan.theconcept.ru> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.75 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Sep 2015 13:30:08 -0000 On 9/3/2015 7:49 AM, Sergey Grigorian wrote: > > And here's /etc/sysctl.conf: > > net.inet.ip.forwarding=1 > Hi, This does not work the way it might have in the past. Make sure you set gateway_enable="YES" in /etc/rc.conf otherwise, devd and /etc/rc.d/routing will reset net.inet.ip.forwarding to 0 on certain network events. ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/