Edit: For anyone having this issue and finding this in the future: I was able to fix the issue by going to my network settings and taking a look at the routes section at the very bottom. The issue causing this problem was having my gateway entered on my static IP on the LAN only network, removing the gateway on that LAN only network stopped things from trying to access the internet, thus setting my internet to the internet network (192.168.7.x). This fixed the issue, and I am able to access all my services on 192.168.7.x and internet services through 192.168.1.x.
Hi folks,
I just migrated unraid over from an old server to a new server -- changing the motherboard and everything else but my hard drives. Everything is working great except for my binhex-qbittorrentvpn container and its internet connection. I previously (and currently) have two ethernet ports on my motherboard. I use one ethernet port for LAN only traffic (192.168.7.x) which connects all of my devices together - there is no internet available on this connection - it is for local traffic only. I also have a second ethernet port (192.168.1.x) that is used for binhex-qbittorrentvpn, which all my other docker containers go through to access the internet. After migrating unraid, my binhex qbittorrentvpn container is unable to establish a connection to the vpn server. I have the container network set to bridge so it can see both my ethernet ports -- for local lan and internet networks. However it appears the container is grabbing the wrong connection or gateway and appears to be sending requests to connect to the vpn by using the gateway of the local lan only network -- this causes the connection to fail. I receive this message in my logs when starting the container.. which repeats over and over. Looking at the FAQ Q17 stuck out to me, and it makes sense this is the case as this network does not have internet access.
2022-12-24 04:49:17,059 DEBG 'start-script' stderr output:
Error: error sending query: Could not send or receive, because of network error
I have tried assigning the network type to eth1 (which is the ethernet port with internet aka 192.168.1.x network, and qbittorrentvpn container works/connects, however it then changes all of my port mappings to the internet lan, making the container inaccessible from the local lan side (192.168.7.x) completely and the other containers relying on the qbittorrentvpn privoxy tunnel also will not function (since the port mappings are going to 192.168.1.x and not 192.168.7.x.
Before migrating I had this working perfectly and I did not change any settings after the migration, however with upgrading to all new hardware, I am afraid something happened with the ethernet ports and caused everything to be messed up. I was under the impression using bridge network would make use of both eth0 and eth1 and the container would use some sort of check or failover, if it could not connect on the LAN only network (192.168.7.x), to the internet network and then be able to connect to the vpn provider.
I have been looking for solutions on google/reddit/documentation but have yet to find out why this happened. I do think there is possibility an option I missed somewhere that could fix this, but I am hoping someone here can assist. I did have this working on my old hardware, using the same exact settings (or at least they appear to be the same after migrating) as I have now with bridge network type -- the container was accessible via lan (192.168.7.x) and also could access the internet lan (192.168.1.x) simultaneously. How can I achieve this again? Is there a simple way to do this that I am overlooking?
Thank you!