by yjftsjthsd-h · 10mo ago · 0 comments
However, I personally would just do it in userspace, especially for that simple of a use. I'm doing the opposite; I have a webapp that somehow doesn't handle IPv6, so to access it over a pure-v6 network I just run this on the same host:
socat TCP6-LISTEN:8002,fork TCP4:127.0.0.1:8000
I believe you could trivially reverse this; socat TCP4-LISTEN:8002,fork TCP6:[::1]:8000
should serve [::1]:8000 as 0.0.0.0:8002 (I don't remember if changing ports was strictly required; that may be a quirk of my exact setup).If your machine has both IPv6 and IPv4 addresses you don't need to any translation.
> I got some services with only ipv6 addresses and want clients with only ipv4 (sadly still exists) to at least be able to reach them.
then that seems like overkill. Although it depends on your network, of course.