Date: Fri, 11 Dec 2009 17:25:08 -0800 From: Aaron Stellman <zion@x96.org> To: freebsd-pf@freebsd.org Subject: IPv6, PF problem Message-ID: <20091212012507.GD27716@x96.org>
next in thread | raw e-mail | index | archive | help
Hello there, Here is the problem I've encountered on a dual stack amd64 FreeBSD 8.0p1 machine. What works: pass in on $ext_if proto tcp to port 21 What doesn't work: pass in on $ext_if proto tcp to ($ext_if) port 21 here is what's logged when it doesn't work: listening on pflog0, link-type PFLOG (OpenBSD pflog file), capture size 1515 bytes 00:00:00.000000 rule 0/0(match): block in on bge0: 2001:1938:235:beef:21b:21ff:fe37:d799.11220 > 2001:1938:235:dead:226:b9ff:fe75:6e5e.21: Flags [S], seq 413041093, win 65535, options [mss 1440,nop,nop,sackOK,nop,wscale 1,nop,nop,TS val 3435338387 ecr 0], length 0 ext_if="bge0" epsilon# ifconfig -a bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM> ether 00:26:b9:75:6e:5e inet 10.10.11.5 netmask 0xffffffe0 broadcast 10.10.11.31 inet6 fe80::226:b9ff:fe75:6e5e%bge0 prefixlen 64 scopeid 0x1 inet 10.10.11.8 netmask 0xffffffe0 broadcast 10.10.11.31 inet6 2001:1938:235:dead:226:b9ff:fe75:6e5e prefixlen 64 autoconf media: Ethernet autoselect (1000baseT <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 options=3<RXCSUM,TXCSUM> inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 pflog0: flags=0<> metric 0 mtu 33152 Notice, that it works as expected with IPv4; meaning that when I use "to ($ext_if)" and use ipv4 to connect, connection passes through, unlike IPv6. Also, OpenBSD pf works as expected with both IPv{4,6}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091212012507.GD27716>