Sunday, April 02, 2023

IPv4 to IPv6 mapping

Hello,

Is it possible, with pf, to expose an ipv6 server on an ipv4 port?

Something like this:

-req on 1.2.3.4:80->pf->[1:2:3:4::1]:80

I know this doesn't work:

pass in on any proto {tcp, udp} to $wan_ip port {80, 443} rdr-to
$some_ipv6

I know af-to can map between families, but I don't know if I can couple
it with rdr-to in some way.




Thanks

--
Nicolas Goy
Developer & Engineer

https://kuon.ch
https://goyman.com

No comments:

Post a Comment