[SOLVED] Docker Network from VM help please


Recommended Posts

Hi All,

 

I am on a quest to get CGNat bypassed through wireguard and a VPS.

my journey so far I have access from the vps to my local network working via a ubuntu VM running Unraid with out issue. I can ping my local Lan and can even serve the unraid web GUI. I am also able to connect the a host Docker container tested this on netdata docker. I can also ping the local network inside the dockers

 

The issue I have is trying to connect to the docker container - even when i forward the ports and ip address it just is having none of it. 

sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to-destination xx.xx.xx.xx:180

sudo iptables -A FORWARD -p tcp -d xx.xx.xx.xx --dport 180 -j ACCEPT

 

I am trying to connect to the user created proxynet network which was done by spaceinvader 

 

Here are some ideas not sure how to test these

1 - Docker does not know where to send the data back and is trying to use the router gateway

2 - the Docker needs another network to send an receive the data

3 - Setup another Unraid static route / gateway pointing to the VM IP address

 

I don't know how to do any of those 3 things any help will be welcome    

------------------------------

PS: My dockers work fine when traffic is routed on my network via my router ADSL line i have 

 

 

Edited by Angryman
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.