this post was submitted on 21 Nov 2023
5 points (100.0% liked)

Linux 101 stuff. Questions are encouraged, noobs are welcome!

1086 readers
1 users here now

Linux introductions, tips and tutorials. Questions are encouraged. Any distro, any platform! Explicitly noob-friendly.

founded 2 years ago
MODERATORS
 

Title. I'm trying to expose my nextdns ip (running on docker) to another network.

Thanks in advance.

top 2 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 1 year ago* (last edited 1 year ago)

The tunnel won’t forward by itself - it’s just another network link. On your other network you need to forward a local ip through the tunnel, or make sure the IP on the far side of the tunnel is routed on the side that needs access

So either route or nat

[–] bulwark 0 points 1 year ago

Docker has 4 different types of network modes. Bridge, Host, Overlay, Macvlan. If you want your container to have an external IP your should use Host.

https://docs.docker.com/network/network-tutorial-host/