Jump to content

Unable to access docker Web UI after enabling 'VPN Tunneld access for docker'


Go to solution Solved by ThatIcyPolarBear,

Recommended Posts

So here's the problem: I can't access the web ui of my docker application after i set the network type to my vpn provider (mullvad).
I have correctly added a tunnel for Mullvad by downloading a configuration from then and then importing it into unraids build in wireguard and then setting the 'Peer type of access' to 'VPN Tunneld access for do docker'.
When I change the network Type in my docker application to that wireguard tunnel I can't access the web UI anymore.
I've searched around reddit and google but can't seem to find a solution that works for me.
Here are some pictures of my settings:
image.thumb.png.65253561719449f76484bb683d33f34e.pngimage.thumb.png.aa55efcc6bd6ce6b80e7b0a957769f67.png

It MIght Be importont to add that the local ip of my server is 192.168.1.20 (default gateway 192.168.1.1) and that I don't really understand subnetting, even after looking it up a few times.
I would appreciate any help.

Link to comment

You can and I have set up a wg tunnel to vpn into my server (the 'remote acces to server' connection type), but I also want to have docker applications go through a vpn provider like for example for torrenting. The manual sais that this can be achieved via the 'VPN tunneld access (for docker)' connection type. More info of outgoing VPN connections can be found here. I followed the guide included in the manual and got my config directly from mullvad. On my own windows laptop I can enable a setting in the mullvad app so that I'm able to access LAN adresses. This setting however doesn't seem to be present in either the mullvad wireguard config generator, or the unraid settings. Since the mullvad app uses wireguard I can't understand why I can't enable lan connections in the unraid settings. It might have something to do with allowed IP's setting but I tried lot's of different combinations there and none of them worked.

  • Upvote 1
Link to comment
  • Solution

I managed to finally solve the issue! I also found a link to this forum thread which add some important details the manual just doesn't mention.

So first of all to fix the issue you want to edit your container and add a port. Specifically the port of your web ui. I found out that some containers already have this at default (like linuxserver's firefox) and some (like the official plex media server) don't. Which was the reason why I couldn't access the plex web ui

If you add the port it should look something like this. You probably want to change the port tho.

image.thumb.png.b09602cd4b4218324a8c3796d532e6aa.png

After that you can access the web ui without issue but if you go to any dns leak test you will probably find that your leaking dns.
The mentioned thread above mentions how to fix that. Basically you want to add a '--dns=<DNS>' to the extra parameters setting which you can change by going into advanced view. Then replace the <DNS> with any dns provider that isn't your isp's. You can use google's: 8.8.8.8 or preferably the one which came with your vpn config. (The DNS in the vpn config doesn't get imported when you import a config) I would  read the rest of the forum thread just to be safe tho.
IMPORTANR NOTE: setting the dns in the vpn settings ('peer dns server') doesn't work. You HAVE to do it via the extra parameters otherwise your dns will leak!

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