Jump to content
Not connected, Your IP: 3.147.49.219
M1lw4uk33

ANSWERED Multiple wireguard instances on same machine

Recommended Posts

Hello, I am attempting to run 3 wireguard VPNs on the same machine. Linux user here. I have generated the configs and everything works as expected (with port forwarding, etc.) when I bring up 1 VPN, but things fall down when I bring up all 3 VPNs. I noticed they all get the same IP address (as specified in the generated configs).

I have tried running them on different wireguard ports (no change), and I am now wondering if the local interface address (as setup in the generated configs) can be edited  locally or if the AirVPN servers are only expecting that 1 address for all my (wireguard) connections.

Please advise if this should work, or what I have to do to get it to work.

Thanks

Share this post


Link to post

Might have been a bit premature. As soon as I bring up the 3 VPN instances, resolving on all my other apps (like browsers) fails with a cloudflare error. I am specifically trying to not make the VPNs used by default (I bind my BT clients directly to the interfaces), but for some reason it seems like the VPNs are getting used when they should not.

The odd thing is, I can't even go back to a single VPN now, which did work fine before.

Share this post


Link to post

OK, it looks like I was getting a default gateway added by way of the wg-quick tool. I brought a test wg up manually from the cmd line and my browsers are able to resolve as expected. Guess I will need to study up on using wg manually ... unless anyone knows how to use the pre-generated configs (with wg-quick), but not have it add a default route to the table.

Share this post


Link to post

A final note on this thread. It turns out the underlying cause of all the issues I was seeing was a IP address conflict. For some weird reason my router (Unifi Cloud Gateway Ultra) decided to move the fixed IP (Unifi's version of static) that I was using, to a completely different device on Wifi.

Odd since I had not made any config changes in months to the router and it seems like it spontaneously moved the IP override to the wrong device yesterday, which started this wild goose chase to diagnose and fix the assumed VPN issue after the Wifi device decided to renew and grab the same IP as I had assigned to the Ethernet that AirVPN was going out over. May be a bug in the Unifi, I don't know. 🙄

The exercise was still worth it though. Now I can have multiple VPN instances running locally to really saturate my upstream, and I also know for sure that Wireguard is much faster than OpenVPN. 😀

Share this post


Link to post

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.   Paste as plain text instead

  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...
We do NOT use cookies to profile or track users.I understandMore information