Jump to content

Connect to VPN Tunneled Docker Container via PFsense Wireguard VPN


Recommended Posts

Hi everyone 👋

 

I'm currently facing an issue that I can't quite wrap my head around.

 

I have a setup with two Wireguard configurations. One is setup on my Unraid server to have vpn tunneled access for some of my docker container. They connect through the internet via a VPN provider and have a docker network "wg0". These container are accessible via my local network 192.168.1.0/24 as long as the client connecting to it is on my local network.

 

On my pfSense router I have a second Wireguard configuration to connect from outside to my local network. The tunnel has the network 172.16.16.0/24. If I now connect from outside via that Wireguard configuration I can access my Unraid server via its local address 192.168.1.31, however I cannot access the docker containers anymore. Docker containers not having the "wg0" docker network work fine. 

 

It there any why to tell the docker network to not any accept connections from 192.168.1.0/24, but also from 172.16.16.0/24? 

 

I've read about configuring a static route in the router, however I haven't figured out how to do that with gateway and destination network based on my described setup. Any tips? 

Thank you very much! 

 

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.

×
×
  • Create New...