10.2-RELEASE not forwarding packets/NATing with pf

Mariusz Górniak m.gorniak at gmail.com
Tue Sep 15 12:34:43 UTC 2015


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


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


More information about the freebsd-questions mailing list