10.2-RELEASE not forwarding packets/NATing with pf

C. L. Martinez carlopmart at gmail.com
Tue Sep 15 12:43:52 UTC 2015


On Tue, Sep 15, 2015 at 12:34 PM, Mariusz Górniak <m.gorniak at gmail.com> wrote:
> My FBSD 10.2 doesn't forward either :(
> It's
> FreeBSD 10.2-RELEASE #0 r286666: Wed Aug 12 15:26:37 UTC 2015
> root at releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>
> /etc/rc.conf
> gateway_enable="YES"
>
> kldstat:
> kernel
> fdescfs.ko
> uhid.ko
> pflog.ko
> pf.ko
>
> # sysctl net.inet.ip.forwarding
> net.inet.ip.forwarding: 1
>
>
> Ifconfig:
> ifconfig_bge1="inet 192.168.1.1 netmask 255.255.255.0"
> ifconfig_bge1_alias0="inet 192.168.7.1 netmask 255.255.255.0"
> ifconfig_bge0="dhcp"
>
> Though bge0 is dynamic it always has the same IP assigned.
>
>
> And the new input:
>
> # pfctl -sr
> No ALTQ support in kernel
> ALTQ related functions disabled
> pass out all flags S/SA keep state
> pass out on bge0 proto udp all keep state
> pass in all flags S/SA keep state
>
>
> I don't need ALTQ but all the rules rdr are ignored.
> It's works as a router but I can't forward to any 192.168.1.xx address :(
>

It is the same problem that occurs when you use FreeBSD+PF as a kvm
guest or hyper-v guest ... But, ipfw works ok in all cases ...


More information about the freebsd-questions mailing list