Kayn 0 Posted ... 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 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 Quote Share this post Link to post
cheapsheep 6 Posted ... 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** Quote Share this post Link to post
Kayn 0 Posted ... 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 ? Quote Share this post Link to post
Kayn 0 Posted ... Ok I got it: https://superuser.com/questions/1104467/how-to-convert-a-ovpn-file-to-a-conf-for-openvpn They're basically the same thing, so I can just change the extension to .conf and so It'll work Quote Share this post Link to post
Kayn 0 Posted ... 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 ? Quote Share this post Link to post
cheapsheep 6 Posted ... - 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 Quote Share this post Link to post
Kayn 0 Posted ... 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) Quote Share this post Link to post