Skip to content

Nordvpn: running vpn container on a system already behind a VPN #2382

Closed Answered by gauravojha
gauravojha asked this question in Q&A
Discussion options

You must be logged in to vote

Seems MTU was the reason! The default value is 1400, I decreased it to 1300, and that got it working! This thread suggested to do so

Here is the compose I used

version: "3"
services:
  gluetun:
    image: qmcgaw/gluetun
    container_name: gluetun
    cap_add:
      - NET_ADMIN
    environment:
      - VPN_SERVICE_PROVIDER=nordvpn
      - VPN_TYPE=wireguard
      - WIREGUARD_PRIVATE_KEY=<redacted>
      - SERVER_COUNTRIES=Netherlands
      - WIREGUARD_MTU=1300
    devices:
      - /dev/net/tun:/dev/net/tun
    restart: unless-stopped

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by gauravojha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant