Docker Network NAT'd to Additional IP


Orbsa

Recommended Posts

Hello,

Just got unraid and loving it so far.

I have two usable WAN IPv4 Addresses for my colo dedicated server. I'm using the first one for Unraid and most all my docker containers.

I'd like to setup a Docker network under the second IP address so that I can map used ports to it (e.g. 80,443 for a second web service on this second IP address)

I know how to use a custom network under my main adapter, eth0. But this would only be for a single container. I need a VLAN setup.

I cannot for the life of me figure out how to setup a second Docker VLAN network that is NAT'd to a secondary IP. I need something like 172.19.0.0/24 -> Single Secondary IP.

 

Also, if possible, the docker networks will need to be able to talk to each other. I plan on hosting an email service with poste.io and a DNS Server on the second IP, and some of my primary docker containers will need access to the SMTP server.

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.