Open Svenman2 opened 2 years ago
Copy and paste this into a new stack in Portainer:
version: '3.2'
services:
qbittorrent:
image: dyonr/qbittorrentvpn
cap_add:
- NET_ADMIN
ports:
- "8999:8999"
- "8999:8999/udp"
- "8090:8080"
- "8118:8118"
devices:
- /dev/net/tun
volumes:
- /volume1/docker/qbittorrentvpn/config:/config
- /volume1/docker/qbittorrentvpn/downloads:/downloads
environment:
- VPN_ENABLED=yes
- VPN_TYPE=openvpn
- LAN_NETWORK=192.168.1.0/24
- VPN_USERNAME=
- VPN_PASSWORD=
restart: unless-stopped
Change ports, volumes & your credentials as needed.
The trick here that's getting it to work (at least for me and a few others) is the /dev/net/tun
device & the NET_ADMIN
bit. On most devices, these changes aren't needed, but on Synology NAS devices (like what I'm using), the 2 changes are needed.
Hope this helps.
I'm not sure what could be causing your issue. For me, the fix was to do the 2 things I added to the docker-compose
file and the different container (since this one appears to no longer be maintained). Have you tried the dyonr one (the one listed in my other comment here)?
I'm not sure what could be causing your issue. For me, the fix was to do the 2 things I added to the
docker-compose
file and the different container (since this one appears to no longer be maintained). Have you tried the dyonr one (the one listed in my other comment here)?
Hey, i got this working, thanks so much. My container mounts "volume1\docker\qbittorrentvpn\downloads" as download for qBittorent. Is there any way to move files in that mount to shared folders outside the container?
I was running this up until an hour ago and it ran fine. After upgrading my NAS to DSM 7, I'm getting this error. It's obviously a permissions issue, I'm just unsure where to start to resolve it....
EDIT: Apparently having the container privileged flag set caused this. As soon as I realized this and removed the line, it works...
Is anyone using the healthcheck on this? I had it going previously, but there are now environment variables I didn't have before. The old check is apparently still viable, but if there's a built in script, I'd like to use it....
@MYeager1967 ,
Yes it is definitely some type of permissions issue with DSM 7... the way I fixed it is to stop the container, uncheck "execute container using highest privilege", apply changes, start back up the container, wait a few minutes, stop the container again and re-check "execute container using highest privilege", apply changes, and start it back up and OpenVPN then worked!
I removed the privileged line from my docker-compose and it's running. Might try to put it back now that you say it's working for you. Thanks for the reply! Any idea about the health check variables?
Hi everybody,
I'm trying to get this Docker image to work via Portainer but I get the following message: Options error: In [CMD-LINE]:1: Error opening configuration file: /config/openvpn/Netherlands.ovpn
I use PIA as my openvpn provider and I see more people have problems with it?! has anyone had this already? or is diet a new issue also i had problem with /dev/net/tun i solved that thanks to this ticket
Here's the error code I get with multiple openvpn files