
Problems installing VPN container
-
-
calling for trouble
One of the thing I really enjoyed in your Nextcoud guide was exactly that:
create a user dedicated for docker in the GUI of OMV, let's call him "docker1"
in the CLI determine UID (user ID) and GID (group ID) of user "docker1" id docker1This showed that you care for safety,
-
Thanks everyone for the advice. Have applied it and all works good now I believe. Will update previous post.
Kind regards
-
-
-
An easier way to accomplish this is to use a Socks5 proxy instead of a VPN if your client app can use it. Your VPN provider probably provides a Socks5 too.
-
I have no idea what that is and how to get that to work. But thank you for your suggestion. Will look into it in the future. For now I have switched back to my first attempt with the 'stalled' problem. That uses the vpn connection when the curl ipconfig.io command outputs a different public ip. This is what I am running at the moment:
Code
Display Moreversion: "3" services: vpn: image: bubuntux/nordvpn network_mode: bridge cap_add: - NET_ADMIN - SYS_MODULE sysctls: - net.ipv4.conf.all.rp_filter=2 devices: - /dev/net/tun environment: - USER=blabla - PASS=blabla - PUID=1001 - PGID=100 - WEBUI_PORT_ENV=8080 - INCOMING_PORT_ENV=8999 - VPN_ENABLED=yes - NAME_SERVERS=1.1.1.1 - CONNECT=Netherlands - TECHNOLOGY=NordLynx - NETWORK=192.168.1.0/24 ulimits: memlock: soft: -1 hard: -1 ports: - 8080:8080 qbittorrent: image: ghcr.io/linuxserver/qbittorrent container_name: qbittorrent environment: - PUID=1001 - PGID=100 - TZ=Europe/Amsterdam - WEBUI_PORT=8080 volumes: - /srv/dev-disk-by-id-md-name-openmediavault-DataRaid1/Configs/QBittorrentbubuntor:/config - /srv/dev-disk-by-id-md-name-openmediavault-DataRaid1/Torrent:/Torrent restart: unless-stopped network_mode: service:vpn depends_on: - vpn
-
-
You get a torrent client to work with a Socks5 proxy by configuring it. First see if your VPN provider offers a free Socks5 proxy with a VPN account, most do. Then look around in your torrent client for the proxy settings page and configure it.
No matter what you wind up doing you should be running a torrent IP check torrent to reveal to you the IP address the trackers see. I use this one but there are others:
https://torguard.net/checkmytorrentipaddress.php
The other thing you could do is make things easier if you can't or won't use Socks5 by using a docker that already combines qbittorrent and OpenVPN:
https://github.com/guillaumedsde/alpine-qbittorrent-openvpn
One thing you may or may not know about qbittorrent dockers is that they are all based on qbittorrent-nox. This variant has no GUI RSS feed support - for some reason they stripped it out. If you need RSS feed capability, then you will have to find another way to incorporate it. FlexGet is an option but I don't use it. I use Deluge for torrenting and it has RSS capability in the docker. Deluge also has a plugin that directly shows you your exit IP address.
-
My vpn provider does offer socks5 and have a tutorial how to use it with qbittorrent. They state that:
''Should you use SOCKS5 with a VPN?
The main difference between proxies and VPNs is that VPNs encrypt your traffic and proxies don’t. VPNs provide more stable connections while proxy connections drop more often. There are few reasons to use both together, so your best bet is to choose the right tool for the job. Fortunately, NordVPN’s servers also support SOCKS5 connections. For full instructions on how to use SOCKS5 proxy on different platforms, visit our tutorial page.''
''VPNs and proxies can be used together but this can take some work to configure. We also advise against it as the proxy would simply add another middle-man that slows down your connection without significant benefits. It’s better to switch to one or the other when using them.''
The link you provided shows that the trackers see the vpn ipaddress, not my public one. Nice tool btw.
My first attempt was with markusmcnugen/qbittorrentvpn. Got it working but it was slow due to openvpn.
I want encryption by using the nordlynx protocol not openvpn, because it is slow and cpu hungry.
Not using rss feed (for now). But the image that I am using now (ghcr.io/linuxserver/qbittorrent) says the following in the webgui:
'Fetching of RSS feeds is disabled now! You can enable it in application settings.'
And indeed there is a tab in the options window where I can enable it. If you like I could make a screenshot and post it for you.
Greetings.
-
I fired up a copy of that docker and saw the RSS stuff. Thanks. You can enable encryption in qbittorrent as I do in Deluge.
-
-
Cool, glad to be of assistance.
Turns out that the 'stalled' problem no longer exists with my composed stack above. Now, half a day later, added torrents starts immediately . Logging into qbittorrent and bubuntor2 (vpn) console and execute command:
Still outputs a vpn ipaddress and verified with:
https://torguard.net/checkmyto…60c0208040cdbd0f5da8cdf88
I am happy
. So solved then?
Greetings
-Update-
Still get the 'stalled' message. After a few torrents have completed their upload ratio after downloading (status:completed) and the system is idle for a random time, manual adding a linux distro torrent does work. But the other newly added torrents from a different tracker (rarbg) are 'stalled'. Manual restart of the container is still necessary.
-
Tried it with tranmission client using the following stack:
Code
Display Moreversion: "3" services: vpn: image: bubuntux/nordvpn network_mode: bridge cap_add: - NET_ADMIN - SYS_MODULE sysctls: - net.ipv4.conf.all.rp_filter=2 devices: - /dev/net/tun environment: - USER=blabla - PASS=blabla - PUID=998 - PGID=100 - WEBUI_PORT_ENV=8080 - INCOMING_PORT_ENV=8999 - VPN_ENABLED=yes - NAME_SERVERS=1.1.1.1 - CONNECT=Netherlands - TECHNOLOGY=NordLynx - NETWORK=192.168.1.0/24 ulimits: memlock: soft: -1 hard: -1 ports: - 8080:8080 - 9091:9091 - 51413:51413 - 51413:51413/udp restart: unless-stopped transmission: image: linuxserver/transmission container_name: transmission environment: - PUID=1001 - PGID=100 - TZ=Europe/Amsterdam - TRANSMISSION_WEB_HOME=/transmission-web-control/ - USER=user - PASS=password - HOST_WHITELIST=dnsnane list volumes: - /srv/dev-disk-by-id-md-name-openmediavault-DataRaid1/Configs/bubuntrans:/config - /srv/dev-disk-by-id-md-name-openmediavault-DataRaid1/Torrent:/Torrent network_mode: service:vpn restart: unless-stopped
Now a day later and all works fine. Downloading a ubuntu torrent hits 50MB/s. Newly added torrents from a different tracker doesn't get ''stalled'' and no restart is required . curl ifconfig.io shows a different ip and is verified by torguard. Perhaps future updates of qBittorrent images will solve these problems. No rss feed in this tranmission client thou.
Greetings
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!