Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Sep 2015 09:29:53 -0400
From:      Mike Tancsa <mike@sentex.net>
To:        Sergey Grigorian <grigorian@theconcept.ru>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: 10.2-RELEASE not forwarding packets/NATing with pf
Message-ID:  <55E84B51.7070103@sentex.net>
In-Reply-To: <5C137CAA56211A448C4F58E75EFB6266C285B582@EXCHANGE.lan.theconcept.ru>
References:  <5C137CAA56211A448C4F58E75EFB6266C285B582@EXCHANGE.lan.theconcept.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55E84B51.7070103>