Shar Edcoin 3 Posted ... (edited) For anybody wanting to utilize AirVPN via a Docker VPN client container, Gluetun has now added AirVPN support for both OpenVPN and WireGuard connections. The container itself is very lightweight and fast.https://github.com/qdm12/gluetun Here's an example of a Portainer Stack using Gluetun as the path to the Internet for a Firefox container: version: '3.7' services: gluetun: image: qmcgaw/gluetun:latest container_name: gluetun cap_add: - NET_ADMIN ports: - 8100:8000 # Remote Control VPN - 3000:3000 # Firefox environment: - VPN_SERVICE_PROVIDER=airvpn - VPN_TYPE=openvpn - SERVER_COUNTRIES=Canada - OPENVPN_CIPHERS=AES-256-GCM - PUID=1000 - PGID=1000 - TZ=America/Denver volumes: - /data/openvpn:/gluetun # /data/openvpn contains client.crt and client.key firefox: image: lscr.io/linuxserver/firefox:latest container_name: firefox environment: - PUID=1000 - PGID=1000 - TZ=America/Denver volumes: - /data/firefox:/config shm_size: '1gb' network_mode: 'service:gluetun' depends_on: - gluetun You'll need to add client.crt and client.key files to the directory you have mapped to /config for OpenVPN. For WireGuard, change the VPN_TYPE= to wireguard, and add WIREGUARD_PRIVATE_KEY=, WIREGUARD_PRESHARED_KEY=, and WIREGUARD_ADDRESSES= environment variables to your stack. In both cases, you can get the data you need from the Config Generator in the AirVPN Client Area. The Gluetun container can also be configured to provide an HTTP or Shadowsocks proxy to your entire network. AirVPN rocks, and the ability to connect to it through a Docker VPN Client container makes it that much better! Edited ... by Shar Edcoin 2 1 SimonM, Tiritibambix and Staff reacted to this Quote Share this post Link to post
OpenSourcerer 1442 Posted ... Honorable mention, similar thing but with AirVPN's Hummingbird client: Quote Hide OpenSourcerer's signature Hide all signatures NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT. LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too! Want to contact me directly? All relevant methods are on my About me page. Share this post Link to post
Sarkani 0 Posted ... On 10/25/2022 at 10:31 AM, Shar Edcoin said: For anybody wanting to utilize AirVPN via a Docker VPN client container, Gluetun has now added AirVPN support for both OpenVPN and WireGuard connections. The container itself is very lightweight and fast.https://github.com/qdm12/gluetun Here's an example of a Portainer Stack using Gluetun as the path to the Internet for a Firefox container: version: '3.7' services: gluetun: image: qmcgaw/gluetun:latest container_name: gluetun cap_add: - NET_ADMIN ports: - 8100:8000 # Remote Control VPN - 3000:3000 # Firefox environment: - VPN_SERVICE_PROVIDER=airvpn - VPN_TYPE=openvpn - SERVER_COUNTRIES=Canada - OPENVPN_CIPHERS=AES-256-GCM - PUID=1000 - PGID=1000 - TZ=America/Denver volumes: - /data/openvpn:/gluetun # /data/openvpn contains client.crt and client.key firefox: image: lscr.io/linuxserver/firefox:latest container_name: firefox environment: - PUID=1000 - PGID=1000 - TZ=America/Denver volumes: - /data/firefox:/config shm_size: '1gb' network_mode: 'service:gluetun' depends_on: - gluetun You'll need to add client.crt and client.key files to the directory you have mapped to /config for OpenVPN. For WireGuard, change the VPN_TYPE= to wireguard, and add WIREGUARD_PRIVATE_KEY=, WIREGUARD_PRESHARED_KEY=, and WIREGUARD_ADDRESSES= environment variables to your stack. In both cases, you can get the data you need from the Config Generator in the AirVPN Client Area. The Gluetun container can also be configured to provide an HTTP or Shadowsocks proxy to your entire network. AirVPN rocks, and the ability to connect to it through a Docker VPN Client container makes it that much better! For noobs like me, the client.crt and client.key files are user.crt and user.key that you download from AirVPN client area. Quote Share this post Link to post
choline_bugler_0b 0 Posted ... This works great to connect to the AirVPN. Though, does anyone know what is the trick to getting the port forwarding to work through gluetun? I added FIREWALL_VPN_INPUT_PORTS as an environment variable for the gluetun service, but when I test if the port is open on the AirVPN site, I get an error that says "Connection refused (111)." Quote Share this post Link to post