Replies: 1 comment
-
Hi @Yaytay, thanks for your post. Socket-proxy resolves the hostname using the Go standard library net.LookupIP (https://pkg.go.dev/net#LookupIP), which looks up the host using the local DNS resolver. So, the resolving should work with Swarm if the hostname is known. But I haven't worked with Swarm by myself. The hostnames of both replicas look dynamically created, and I don't see where the client IP addresses 10.0.18.6 and 10.0.18.6 come from. I guess an experienced Docker captain like @BretFisher could tell easily :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I really like socket-proxy, but I can't get allowfrom to work with hostnames in swarm (it works with IP addresses and it's on a private network so nothing else should be able to reach it, but hostnames would look better - would make the compose file work in more situations without needing use 0.0.0.0/0).
This is my compose file:
The logs for socket-proxy report this:
Using nsenter I can do a bit of rummaging around DNS:
None of which match the client IP that socket-proxy is seeing.
Do you know whether there is a hostname that can work in this scenario?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions