Skip to content

ProtonVPN #7

@AndiLavera

Description

@AndiLavera

Hello, I am new to kubernetes so this might be a common issue but i figured this was the best place to try.

There seems to be an error with ProtonVPN. I can't tell if it's your chart, the actual docker image or my configuration.

Create a secret:

kubectl create secret generic openvpn \
    --from-literal username=<VPN_USERNAME> \
    --from-literal password=<VPN_PASSWORD> \
    --namespace media

Create a configmap:

kubectl create configmap openvpn-common-config --from-file my_proton_vpn_file.ovpn --namespace media

Apply the install your transmission chart with:

helm install transmission bananaspliff/transmission-openvpn \
    --values media.transmission-openvpn.values.yml \
    --namespace media

Here is what my config looks like:

replicaCount: 1

image:
  repository: "haugene/transmission-openvpn"
  tag: "latest-armhf" # Suffixed by -armhf to pull the ARM image
  pullPolicy: "IfNotPresent"
  
dnsPolicy: "None"

dnsConfig:
  nameservers:
    - 8.8.8.8
    - 8.8.4.4

env:
  - name: OPENVPN_PROVIDER
    value: "PROTONVPN" # VPN provider. List of supported providers: https://haugene.github.io/docker-transmission-openvpn/supported-providers/
  - name: OPENVPN_USERNAME
    valueFrom: # Reference to the secret | openvpn.username
      secretKeyRef:
        name: "openvpn"
        key: "username"
  - name: OPENVPN_PASSWORD
    valueFrom: # Reference to the secret | openvpn.password
      secretKeyRef:
        name: "openvpn"
        key: "password"
  - name: LOCAL_NETWORK
    value: "192.168.0.1"
  - name: TRANSMISSION_PEER_PORT
    value: "47444"
  - name: TRANSMISSION_DOWNLOAD_DIR
    value: "/downloads/transmission"
  - name: PUID
    value: "1000"
  - name: PGID
    value: "1000"

service:
  type: ClusterIP
  port: 80

volumes:
  - name: "media-ssd"
    persistentVolumeClaim:
      claimName: "media-ssd" # PersistentVolumeClaim created earlier
  - name: dev-tun
    hostPath:
      path: "/dev/net/tun"
  - name: config
    configMap:
      name: "openvpn-common-config"
      

volumeMounts:
  - name: "media-ssd"
    mountPath: "/data"
    subPath: "configs/transmission-data" # Path /mnt/ssd/media/configs/transmission-data where transmission writes the configuration
  - name: "media-ssd"
    mountPath: "/downloads/transmission"
    subPath: "downloads/transmission" # Path /mnt/ssd/media/downloads/transmission where transmission downloads Torrents
  - name: dev-tun
    mountPath: "/dev/net/tun"
  - name: config
    mountPath: /etc/openvpn/protonvpn/default.ovpn

securityContext:
  capabilities: # Needed for VPN
    add:
      - NET_ADMIN

The error:

Using OpenVPN provider: PROTONVPN
No VPN configuration provided. Using default.
Setting OPENVPN credentials...
adding route to local network 192.168.0.1 via 10.42.1.1 dev eth0
RTNETLINK answers: File exists
Wed May 13 18:20:54 2020 disabling NCP mode (--ncp-disable) because not in P2MP client or server mode
Options error: You must define TUN/TAP device (--dev)
Use --help for more information.

Note: I do not receive this error when doing sudo openvpn my_proton_vpn_file.ovpn on my local machine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions