WireGuard - VPN Tunneled Access to a commercial VPN provider


ljm42

Recommended Posts

Hi! I don't know if this has been covered but I don't find a solution. I managed to make a Remote tunneled access via wireguard to remotely access my unraid and network. But the guide in OP says that we cannot have to wireguard configs enabled at the same time.

So is there any way to set up unraid to route all of its traffic outsite via a commecial vpn for privacy and also have another way to vpn into my unraid and lan from outside?

Link to comment
  • 3 weeks later...
On 5/24/2021 at 11:21 PM, ljm42 said:

 

I'm glad you got it working, but this definitely falls outside the scope of what I would consider to be supported :)  I modified the OP accordingly. If you would like to start a new guide of your own specific to PIA I'd be happy to link to that.

I've created a fork of the PIA scripts to simplify the install process on unRaid, it's still not as simple as importing a configuration, but the scripts now generate a file following the "wg#.conf" convention which gets picked up by the Dynamix WireGuard plugin, it also fills the public key and VPN type fields correctly (which exist in "wg#.cfg").

 

I also added a user script to be used with the User Scripts plugin to make configuration changes (like re-selecting a server) easy to make, all you really need to fill to be up and running are the PIA account credentials.

 

You can find my fork at https://github.com/DorCoMaNdO/pia-wireguard-unraid, the user script is part of the repo at unraid_userscript.sh

Edited by Dor
  • Thanks 3
Link to comment
  • 3 weeks later...

I am currently unable to get this to work with Mullvad, not sure what I am doing wrong. I download my config file, import it, the tunnel shows up with everything filled in, but when I change the slider to active, nothing happens. My logs don't show the tunnel starting at all. I have confirmed that everything with mullvad is working fine since I can use it with my phone. All other tunnels are also disabled. Any hints?

Link to comment
On 8/27/2021 at 5:19 PM, Dor said:

I've created a fork of the PIA scripts to simplify the install process on unRaid, it's still not as simple as importing a configuration, but the scripts now generate a file following the "wg#.conf" convention which gets picked up by the Dynamix WireGuard plugin, it also fills the public key and VPN type fields correctly (which exist in "wg#.cfg").

 

I also added a user script to be used with the User Scripts plugin to make configuration changes (like re-selecting a server) easy to make, all you really need to fill to be up and running are the PIA account credentials.

 

You can find my fork at https://github.com/DorCoMaNdO/pia-wireguard-unraid, the user script is part of the repo at unraid_userscript.sh

 

Hi, tried running it and hit an error

 

./get_region.sh: line 242: ./setup_wireguard_with_token.sh: Permission denied
 

This was after it auto-selected the nearest server for me

 

Edit:  Made it executable and all good now.

Edited by dalben
Link to comment
On 9/12/2021 at 9:14 PM, Moises said:

I am currently unable to get this to work with Mullvad, not sure what I am doing wrong. I download my config file, import it, the tunnel shows up with everything filled in, but when I change the slider to active, nothing happens. My logs don't show the tunnel starting at all. I have confirmed that everything with mullvad is working fine since I can use it with my phone. All other tunnels are also disabled. Any hints?

Switch to advanced mode and set your peer tunnel address to an available IP in your local tunnel network pool.

Link to comment
  • 1 month later...
  • 1 month later...

I am using IVPN and they do not provide a configuration file to import into unraid. 

 

They expect you to give them the public key then they assign you an IP address. 

How can i use the unraid wireguard VPN tunneled access if i do not have a config file from my preferred VPN provider?

 

Here is the relavent documentaion: Not public. :( Here is what i could find  IVPN Wireguard

 

This also applies to trying to setup a docker container like delugevpn that requires a config file.

 

Link to comment

It sounds like you need to generate a set of private and public keys, hopefully when you give them the public key they will give you a full config file and not just an ip addess.

 

There are many ways to generate a set of keys, probably the easiest would be to go into the webgui and create a dummy wireguard tunnel and peer, and then press "Generate Keypair". You can delete this dummy tunnel and peer, but be sure to keep a copy of the public and private keys.

 

Once you get the config file from the provider you would import it per the instructions on the first post of this thread. Then add the public and private keys you created earlier as the "Local" public and private keys.

 

If they expect you to build the config file on your own I would probably move on to a different provider.

Link to comment
On 1/12/2022 at 10:32 AM, ljm42 said:

It sounds like you need to generate a set of private and public keys, hopefully when you give them the public key they will give you a full config file and not just an ip addess.

 

There are many ways to generate a set of keys, probably the easiest would be to go into the webgui and create a dummy wireguard tunnel and peer, and then press "Generate Keypair". You can delete this dummy tunnel and peer, but be sure to keep a copy of the public and private keys.

 

Once you get the config file from the provider you would import it per the instructions on the first post of this thread. Then add the public and private keys you created earlier as the "Local" public and private keys.

 

If they expect you to build the config file on your own I would probably move on to a different provider.

This is what i had thought has well. I went through the process and did not get a config files they only gave me an IP. They do give detailed instructions on how to add wireguard to a linux in this specific manner but i do not know how to apply this to the unraid wireguard setup. Here are some instrutions : https://www.ivpn.net/setup/linux-wireguard-netman/

Edited by Ender Wiggin
Link to comment

Hi, I was looking around the wireguard capabilities (other post) and in the meanwhile i'm looking around trying to understand which commercial provider is the best one, evaluating also the compatibility with the built-in client or any docker container acting as man in the middle. I saw that some providers implemented their own privacy layer due to wireguard protocol specifications, but I'm disoriented. Do you have any suggestion?

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.