nekromantik Posted July 22, 2023 Share Posted July 22, 2023 Hello So I set up unraid wireguard vpn for tunnel for docker containers and it created a wg0 interface for the vpn. I created new container and set its network to wg0. However now I cannot access the container UI over port 8888 as its IP is in the 172.x range. Normally I use br0 and it gets 192.168. IP and it works. My unraid server is on a different LAN to my clients and so far I just have route between those 2 LANs to allow clients to talk to Unraid from the other LAN. thanks Quote Link to comment
Squid Posted July 22, 2023 Share Posted July 22, 2023 This might help In my particular case though, I found it far easier to remotely access a barebones VM via WG (or Connect) and then connect to the containers. Quote Link to comment
nekromantik Posted July 22, 2023 Author Share Posted July 22, 2023 39 minutes ago, Squid said: This might help In my particular case though, I found it far easier to remotely access a barebones VM via WG (or Connect) and then connect to the containers. I dont mean using WG to access my server externally. I am using a commercial VPN and set up WG connection within UnRaid and selected tunnel docker so I can run containers to use the VPN. But doing this means I can no longer access the container from my LAN. Not sure if it makes a difference but my LAN client is on different subnet then unraid. Quote Link to comment
loki_racer Posted November 16, 2023 Share Posted November 16, 2023 Were you ever able to figure this out? Quote Link to comment
Houmi Posted December 10, 2023 Share Posted December 10, 2023 @nekromantik, were you ever able to use the docker container to use wg0 ? Quote Link to comment
nekromantik Posted December 13, 2023 Author Share Posted December 13, 2023 On 12/10/2023 at 10:39 PM, Houmi said: @nekromantik, were you ever able to use the docker container to use wg0 ? i did not bother and went back to using container Quote Link to comment
david0161 Posted January 22 Share Posted January 22 On 7/22/2023 at 3:13 PM, nekromantik said: I dont mean using WG to access my server externally. I am using a commercial VPN and set up WG connection within UnRaid and selected tunnel docker so I can run containers to use the VPN. But doing this means I can no longer access the container from my LAN. Not sure if it makes a difference but my LAN client is on different subnet then unraid. I am using it in this exact scenario as well. Unraid lives on my main LAN and any device on my main LAN can hit the containers. Any device on a different subnet is a no go. As a test I made sure nothing was blocked between VLANS with the same issues, explicitly wrote allow rules, tried adding routes etc with no success. I use a commerical provider that supports port forwarding and run Emby behind that over the tunnel. Absolutley hate having to put the firesticks etc on the main network to be able to access Emby locally. I wasted most of my day setting up a VPN client on my UDMP, enabling VLANs in Unraid and assigning the containers to a VLAN, just to realize Unifi doesn't support forwarding on the interface. Saw a forum post on modifying the IP tables on the UDMP and tried that, even if it worked, they don't persist after a reboot. It sounds like you abandoned the built in Unraid wireguard tunnel in favor of a container. Are you able to access your resources properly now? Quote Link to comment
nekromantik Posted January 30 Author Share Posted January 30 On 1/22/2024 at 6:12 AM, david0161 said: I am using it in this exact scenario as well. Unraid lives on my main LAN and any device on my main LAN can hit the containers. Any device on a different subnet is a no go. As a test I made sure nothing was blocked between VLANS with the same issues, explicitly wrote allow rules, tried adding routes etc with no success. I use a commerical provider that supports port forwarding and run Emby behind that over the tunnel. Absolutley hate having to put the firesticks etc on the main network to be able to access Emby locally. I wasted most of my day setting up a VPN client on my UDMP, enabling VLANs in Unraid and assigning the containers to a VLAN, just to realize Unifi doesn't support forwarding on the interface. Saw a forum post on modifying the IP tables on the UDMP and tried that, even if it worked, they don't persist after a reboot. It sounds like you abandoned the built in Unraid wireguard tunnel in favor of a container. Are you able to access your resources properly now? yup everything works Quote Link to comment
Recommended Posts
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.