Quantcast
Viewing all articles
Browse latest Browse all 17854

Configure UFW on eth0 to eth0 only

Possibly a stupid question but I'll ask it anyway :-)

I've got Consul running in a Docker container which has to bind to the local ethernet adapter (eth0). I've configured Docker not to use iptables as I use UFW instead. I need to allow Consul to communicate with other local services on the server via eth0 on port 8500. However, I don't want to open port 8500 to the outside world, just so other services on the same server can talk to Consul on 8500 over eth0.

What's the best way of achieving this with UFW? I know UFW is the issue as when I disable it, everything can talk to each other again. I can't bind Consul to the local loopback adapter as other servers communicate via eth0 on other ports.

I'm sure there's an obvious answer staring me in the face but wondered what others would do.

Thanks

submitted by /u/OmegaHarvest
[link] [comments]

Viewing all articles
Browse latest Browse all 17854