Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Sep 2015 14:34:42 +0200
From:      =?UTF-8?Q?Mariusz_G=C3=B3rniak?= <m.gorniak@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   10.2-RELEASE not forwarding packets/NATing with pf
Message-ID:  <CAHvr275S1hnLr0U6Xs=pcajCZgpoTXYHMjoavRX-YEHmu=-cHQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help

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@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 :(


-- 
Pozdrawiam!        Kind regards!        Herzliche Grüsse!
><((((º>`·.¸¸.·´¯`·.¸.·´¯`·...¸><((((º>¸.Mariusz@Gorniak.PL gadu-gadu#1404178 http://mariusz.gorniak.pl
·´¯`·.¸. , . .·´¯`·.. ><((((º>`·.¸¸.·´¯`·.¸
><((((º>`·.¸¸.·´¯`·.¸.·´¯`·...¸><((((º>¸. The essence of life is not long life, but true life.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHvr275S1hnLr0U6Xs=pcajCZgpoTXYHMjoavRX-YEHmu=-cHQ>