I am using the KAME DHCP6 client on a FreeBSD 10 server to acquire an IPv6 address and prefix from Comcast. I created a pf rule to allow access to httpd but it does not work:
It will work if I remove the dynamic address feature:
I suspect it is because the dynamic address feature is not picking up the correct inet6 address. (possibly using the local link instead) but I don't know how to prove it. Is there another way to encourage pf to track the leased IPv6 address similar to how it can track the IPv4 lease?
Code:
pass in on $EXT inet6 proto tcp from any to ($EXT) port http
It will work if I remove the dynamic address feature:
Code:
pass in on $EXT inet6 proto tcp from any to $EXT port http
I suspect it is because the dynamic address feature is not picking up the correct inet6 address. (possibly using the local link instead) but I don't know how to prove it. Is there another way to encourage pf to track the leased IPv6 address similar to how it can track the IPv4 lease?