Hello everyone,

I have an OpenBSD 7.7 server with two external addresses, IPv4 and IPv6. I 
would like to run the althttpd web server, but it is programmed in a way that 
it listens only on a tcp6 socket. IPv6 clients connect fine, but IPv4 clients 
cannot reach it.

I’m aware that one could use relayd or inetd as a proxy to handle IPv4 
connections, but I’d like to know if it’s possible to achieve the same directly 
at the PF level, e.g., redirect, NAT, or whatever, IPv4 traffic to the IPv6 
socket on the same machine so I can run althttpd as a standalone service 
without something in front of it.

I have read the pf.conf manual, especially the af-to option, as recommended by 
P. Hessler, but I’m not sure if it applies in this case. Additionally, the 
prefix length of my IPv6 address is /64, whereas the manual notes that the 
current implementation only supports lengths of 96 or higher.

I’m a bit of a looser when it comes to these PF networking things, could anyone 
help me figure this out? Any guidance or examples would be hugely appreciated.

Thank you.

Ufko.

Reply via email to