Jump to content
Not connected, Your IP: 3.15.146.43
Sign in to follow this  
Pulse2492

ANSWERED gluetun port forwarding not supported?

Recommended Posts

gluetun docker log

ERROR VPN settings: provider settings: port forwarding: port forwarding cannot be enabled: value is not one of the possible choices: airvpn must be one of perfect privacy, private internet access, privatevpn or protonvpn
2024-11-17T20:13:01+01:00 INFO Shutdown successful
docker compose
version: "3.9"
services:
  vpn:
    image: qmcgaw/gluetun
    container_name: vpn
    networks:
      proxy:
        ipv4_address: 10.0.0.4
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun:/dev/net/tun
    ports:
      - 1637:1637/udp
      - 13660:13660/tcp
      - 13660:13660/udp
      - 8096:8096
    volumes:
      - ./:/gluetun
    environment:
      - VPN_SERVICE_PROVIDER=airvpn
      - VPN_TYPE=wireguard
      - VPN_PORT_FORWARDING=on
      - FIREWALL_VPN_INPUT_PORTS=13660
      - WIREGUARD_PRIVATE_KEY=X
      - WIREGUARD_ADDRESSES=X
      - WIREGUARD_PRESHARED_KEY=X
      - WIREGUARD_ENDPOINT_PORT=1637
      - SERVER_COUNTRIES=Netherlands
      - TZ=X
      - DNS_ADDRESS=10.128.0.1
    restart: unless-stopped

Share this post


Link to post
@Pulse2492

Hello!

Since an AirVPN port reserved to an account does not change and since all AirVPN servers support remote inbound port forwarding, GlueTun does not need a specific AirVPN auto port forwarding setup, which is required only for clunky implementations where the port changes at each re-connection and/or port forwarding works only on some servers.

You just need to configure (on both the listening program and the compose file) the port that you previously managed and reserved through your AirVPN account port panel. For more details please check GlueTun documentation.

Kind regards
 

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