Show HN: ip2unix – Turn IP sockets into Unix domain sockets
1–10 of 24 posts
Re: Show HN: ip2unix – Turn IP sockets into Unix domain sockets
#2Re: Show HN: ip2unix – Turn IP sockets into Unix domain sockets
#3Re: Show HN: ip2unix – Turn IP sockets into Unix domain sockets
#4Re: Show HN: ip2unix – Turn IP sockets into Unix domain sockets
#5I do not see an advantage over socat, which can listen on _TCP_-sockets (among 20 other „socket“ inputs) and forward them into unix-sockets. Please tell me? :-/
Re: Show HN: ip2unix – Turn IP sockets into Unix domain sockets
#6I do not see an advantage over socat, which can listen on _TCP_-sockets (among 20 other „socket“ inputs) and forward them into unix-sockets. Please tell me? :-/
socat as a TCP to unix socket proxy is doing a different job.
Re: Show HN: ip2unix – Turn IP sockets into Unix domain sockets
#7I do not see an advantage over socat, which can listen on _TCP_-sockets (among 20 other „socket“ inputs) and forward them into unix-sockets. Please tell me? :-/
So for example if you have a service listening to TCP port 1234, you could do something like this:
socat UNIX-LISTEN:foo.sock TCP:localhost:1234
Now the service will still listen to port 1234 and you now have another socket that redirects to the other. This not only comes with a bit of overhead, but port 1234 is still reachable.
While using packet filtering on that port might lower the attack surface a bit, this won't prevent other (possibly compromised) services/users on the system to access port 1234.
Sure you could also filter based on uid, but IMHO it's better if that port isn't accessible in the first place.
Re: Show HN: ip2unix – Turn IP sockets into Unix domain sockets
#8Re: Show HN: ip2unix – Turn IP sockets into Unix domain sockets
#9very interesting. A docker integration would be fun too (something like "docker run -p /tmp/socket:8080 ...") :)