How do I make a ip tunnel that forwards an ip to another ip?
Title. I'm trying to expose my nextdns ip (running on docker) to another network.
Thanks in advance.
Title. I'm trying to expose my nextdns ip (running on docker) to another network.
Thanks in advance.
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
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/