Jump to content
Not connected, Your IP: 3.139.70.69
Sign in to follow this  
Kayn

TrueNAS Gluetun OpenVPN variables setup

Recommended Posts

Hi, I'm using TrueNAS Scale with Gluetun VPN add-on; I managed to get a working connection with AirVPN following this guide: https://github.com/qdm12/gluetun-wiki/blob/main/setup/providers/airvpn.md  So far so good :D 
The setup works by adding variables; I added VPN_SERVICE_PROVIDER, OPENVPN_KEY, OPENVPN_CERT and SERVER_COUNTRIES. In the guide there's no mention of other parameters that are vital, or at least I think so, for AirVPN to work in the best way. Like for example the connection port, the type of encryption and the entry IP address. Obviously all these infos are written in the .ovpn file generated by the config generator, but I'm wondering if it's possible to add these missing infos to Gluetun as variables ?

Maybe someone more familiar with TrueNAS can help me with this. Thanks 

Share this post


Link to post
11 hours ago, cheapsheep said:
https://github.com/qdm12/gluetun-wiki/blob/main/setup/providers/custom.md

-e VPN_SERVICE_PROVIDER=custom -e VPN_TYPE=openvpn \
-e OPENVPN_CUSTOM_CONFIG=**generated .conf from client area**

Thanks. Actually I'd already seen the "custom option", but since it uses a .conf file I haven't been able to configure the connection in that way. Now the question is: how do I get a .config file from the config generator ? 

Share this post


Link to post
On 8/23/2023 at 9:30 AM, cheapsheep said:
https://github.com/qdm12/gluetun-wiki/blob/main/setup/providers/custom.md

-e VPN_SERVICE_PROVIDER=custom -e VPN_TYPE=openvpn \
-e OPENVPN_CUSTOM_CONFIG=**generated .conf from client area**

I've tried, resoult: ERROR VPN settings: provider settings: server selection: OpenVPN server selection settings: configuration file: file does not exist

The path is correct, maybe the file must have a specific name ? 

Share this post


Link to post

- Create a gluetun directory in your home directory: mkdir ~/gluetun
- Generate a AirVPN OpenVPN 2.5 .ovpn file from Client Area.
- Rename the .ovpn file to custom.conf and put it into ~/gluetun
- Run the following command:
 

docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=custom -e OPENVPN_CUSTOM_CONFIG=/gluetun/custom.conf -v ~/gluetun/custom.conf:/gluetun/custom.conf:ro qmcgaw/gluetun


 

Share this post


Link to post
Quote

 

- Create a gluetun directory in your home directory: mkdir ~/gluetun
- Generate a AirVPN OpenVPN 2.5 .ovpn file from Client Area.
- Rename the .ovpn file to custom.conf and put it into ~/gluetun
- Run the following command:
 

docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=custom -e OPENVPN_CUSTOM_CONFIG=/gluetun/custom.conf -v ~/gluetun/custom.conf:/gluetun/custom.conf:ro qmcgaw/gluetun

 


I tried and: ERROR default route not found: in 4 route(s)

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.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...