pf NAT function with IPv6

Hideki Yamamoto yamamoto436 at oki.com
Thu Dec 30 06:23:08 PST 2004


Hi,

I tried to use pf to change source address of IPv6 UDP packet, but it does not go well.
As the output of 'pfctl' command seems no problem.
I wonder if pf on FreeBSD does not support IPv6 now.


---------- /etc/pf.conf ------------- start
ext_if="bge2"
int_if="bge0"
internal_net="fec0:0:0:d::0/32"
nat on bge2 inet6 from fec0:0:0:d::1 to any -> 2001:b90:ee00:ff0b::1:3
---------- /etc/pf.conf ------------- end

tsrmldgw3# pfctl -s state
No ALTQ support in kernel
ALTQ related functions disabled
self udp fec0:0:0:d::1[15001] -> 2001:b90:ee00:ff0b::1:3[52925] -> 2001:b90:ee00:51b:208:4ff:fe28:a1d2[8001]
     SINGLE:NO_TRAFFIC


-----

Regards,
Hideki Yamamoto
--


More information about the freebsd-pf mailing list