Jump to content
Not connected, Your IP: 52.55.55.239
Shar Edcoin

Gluetun Docker VPN Client adds AirVPN support!

Recommended Posts

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

Share this post


Link to post
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.

Share this post


Link to post

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)."

 

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

×
×
  • Create New...