Open AndiLavera opened 4 years ago
I think your network value should be like this:
- name: LOCAL_NETWORK
value: "192.168.0.0/24"
@andrewc910 Did you ever figure out what was the issue?
@razagill I a pretty sure the error was due to miss configuration of the local network IP value.
I tried the value you provided. It didnt end up working. I ended up switching to nordvpn and that just worked.
However, i just moved and i need to resetup my server. I can give another tey to proton if youd like. I still have the config file.
@andrewc910 Sure, I also tried it with 2 different providers (expressvpn and premiumize) and both give the same error. I even tried the CREATE_TUN_DEVICE
environment variable from the underlying docker image itself here but still the same error.
replicaCount: 1
image:
repository: "haugene/transmission-openvpn"
tag: "latest"
pullPolicy: "IfNotPresent"
dnsPolicy: "None"
dnsConfig:
nameservers:
- 8.8.8.8
- 8.8.4.4
env:
- name: OPENVPN_PROVIDER
value: "CUSTOM" # 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.0/24"
- 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"
- 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/custom/default.ovpn"
securityContext:
#privileged: true
capabilities: # Needed for VPN
add:
- NET_ADMIN
i got it working with the following values:
image:
repository: "haugene/transmission-openvpn"
tag: "latest"
pullPolicy: "IfNotPresent"
env:
- name: OPENVPN_PROVIDER
value: "PROTONVPN"
- name: OPENVPN_USERNAME
valueFrom:
secretKeyRef:
name: "openvpn"
key: "username"
- name: OPENVPN_PASSWORD
valueFrom:
secretKeyRef:
name: "openvpn"
key: "password"
- name: OPENVPN_CONFIG
value: "ch-05.protonvpn.com.udp,ch-08.protonvpn.com.udp,nl-04.protonvpn.com.udp,nl-11.protonvpn.com.udp"
- name: LOCAL_NETWORK
value: "192.168.3.0/24"
- 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"
- name: "dev-tun"
hostPath:
path: "/dev/net/tun"
volumeMounts:
- name: "media-ssd"
mountPath: "/data"
subPath: "configs/transmission-data"
- name: "media-ssd"
mountPath: "/downloads/transmission"
subPath: "downloads/transmission"
- name: "dev-tun"
mountPath: "/dev/net/tun"
securityContext:
capabilities:
add:
- NET_ADMIN
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:
Create a configmap:
Apply the install your transmission chart with:
Here is what my config looks like:
The error:
Note: I do not receive this error when doing
sudo openvpn my_proton_vpn_file.ovpn
on my local machine.