also....
in the PI4 do you have a folder /sharedfolders ?
what do you see there? (subfolders and files)
also....
in the PI4 do you have a folder /sharedfolders ?
what do you see there? (subfolders and files)
Sorry for late answers.
It works!!!
Thanks for the help.
I will investigate if the tun device was the problem, or not. Torrents download, but I can't find the Transmission settings: where are they?
I wanna copy my stats there.
also....
in the PI4 do you have a folder /sharedfolders ?
what do you see there? (subfolders and files)
Yes, there is a sharedfolders on Pi.
Oh, now I can't open 10.8.0.1:9093 with VPN connected.
Can I add multiple LOCA_NETWORK variables? If I could 10.8.0.0/24 then I could reach it through VPN.
Found it: had to configure TRANSMISSION_HOME=/data/appdata/transmissionovpn
MISSION COMPLETED
After a long and painful journey in finding the solution, I found it:
version: '2'
services:
transmission:
image: haugene/transmission-openvpn:latest-armhf
container_name: vpntrans
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
restart: unless-stopped
ports:
- 9093:9091
# - 8888:8888
# dns:
# - 1.1.1.1
#sysctls:
# - net.ipv6.conf.all.disable_ipv6=1
volumes:
- /etc/localtime:/etc/localtime:ro
- /sharedfolders/:/data
- /sharedfolders/appdata/vpntrans:/config
environment:
- OPENVPN_PROVIDER=xxxxxx
- OPENVPN_CONFIG=xxxxxx
- OPENVPN_USERNAME=xxxxxx
- OPENVPN_PASSWORD=xxxxxx
- OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60
- LOCAL_NETWORK=192.168.0.0/24 10.8.0.0/24
- WEBPROXY_ENABLED=false
- TRANSMISSION_PORT_FORWARDING_ENABLED=true
- TRANSMISSION_PEER_PORT=51414
- PUID=1000
- PGID=100
- TRANSMISSION_WATCH_DIR=/data/torrent/watch
- TRANSMISSION_WATCH_DIR_ENABLED=true
- TRANSMISSION_RPC_AUTHENTICATION_REQUIRED=true
- TRANSMISSION_RPC_USERNAME=xxxxxxxxxxxx
- TRANSMISSION_RPC_PASSWORD=xxxxxxxxxxxx
- TRANSMISSION_RPC_PORT=9091
- TRANSMISSION_INCOMPLETE_DIR_ENABLED=false
- TRANSMISSION_DOWNLOAD_DIR=/data/video
- TRANSMISSION_PEER_LIMIT_GLOBAL=500
- TRANSMISSION_ALT_SPEED_DOWN=2400000
- TRANSMISSION_ALT_SPEED_UP=4000
- TRANSMISSION_ALT_SPEED_TIME_ENABLED=true
- TRANSMISSION_ALT_SPEED_TIME_BEGIN=630
- TRANSMISSION_ALT_SPEED_TIME_DAY=0
- TRANSMISSION_ALT_SPEED_TIME_END=1650
- TRANSMISSION_SPEED_LIMIT_DOWN_ENABLED=true
- TRANSMISSION_SPEED_LIMIT_DOWN=80000
- TRANSMISSION_SPEED_LIMIT_UP_ENABLED=true
- TRANSMISSION_SPEED_LIMIT_UP=1
- TRANSMISSION_HOME=/data/appdata/transmissionovpn
# - TRANSMISSION_WEB_HOME=/data/appdata/transmissionovpn/ui
- TRANSMISSION_WEB_UI=transmission-web-control
# - HEALTH_CHECK_HOST=google.com
Alles anzeigen
Multiple LOCAL_NETWORKs could be added with e.g. LOCAL_NETWORK=192.168.0.0/24 10.8.0.0/24 (separated with spaces).
New, better UI could be applied with TRANSMISSION_WEB_UI=transmission-web-control
If somewhy it doesn't work just stop your VPN Server with systemctl stop openvpn@server. Then start the container/stack. In the end, you can use systemctl status openvpn@server to check or systemctl start openvpn@server to start VPN Server again. (Exit with q)
Anyone can use this config, just please, customize it before running! I have several options, ports reconfigured and your IP address may be different.
Special thanks for sabamimi who helped me even when I was silly. Some parts of this code belongs to them.
P.S: Use stacks, they're cool.
But one last question:
If proxy is disabled in the stack, does the VPN work? (Is my IP address hidden?)
But one last question:
If proxy is disabled in the stack, does the VPN work? (Is my IP address hidden?)
You really, really need to be running a torrent that tells you what IP address is being seen by the trackers. There are a few of these, here is one.
Thank you!
Using a plug-in in Firefox called Torrent Control I could add the magnet link to Transmission by right-clicking then selecting Torrent Control --> Add torrent.
VPN is working (Proxy is disabled).
Note: Transmission will show and error but it's okay, just go back to https://torguard.net/checkmytorrentipaddress.php and you will see your IP.
New problem ahead:
Transmission doesn't download nor upload torrents.
Portainer shows "Healthy" put ping is
PING google.com (216.58.214.238) 56(84) bytes of data. --- google.com ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms Network is down |
HELP
Stack:
version: '2'
services:
transmission:
image: haugene/transmission-openvpn:latest-armhf
container_name: vpntrans
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
restart: unless-stopped
ports:
- 9093:9091
# - 8888:8888
# dns:
# - 1.1.1.1
#sysctls:
# - net.ipv6.conf.all.disable_ipv6=1
volumes:
- /etc/localtime:/etc/localtime:ro
- /sharedfolders/:/data
- /sharedfolders/appdata/vpntrans:/config
environment:
- OPENVPN_PROVIDER=VPNBOOK
- OPENVPN_CONFIG=de4-udp53
- OPENVPN_USERNAME=vpnbook
- OPENVPN_PASSWORD=8AKctYE
- OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60
- LOCAL_NETWORK=192.168.0.0/24 10.8.0.0/24
- WEBPROXY_ENABLED=false
- TRANSMISSION_PORT_FORWARDING_ENABLED=true
- TRANSMISSION_PEER_PORT=51413
- PUID=1000
- PGID=100
- TRANSMISSION_WATCH_DIR=/data/torrent/watch
- TRANSMISSION_WATCH_DIR_ENABLED=true
- TRANSMISSION_RPC_AUTHENTICATION_REQUIRED=true
- TRANSMISSION_RPC_USERNAME=admin
- TRANSMISSION_RPC_PASSWORD=adminadmin
- TRANSMISSION_RPC_PORT=9091
- TRANSMISSION_INCOMPLETE_DIR_ENABLED=false
- TRANSMISSION_DOWNLOAD_DIR=/data/video
- TRANSMISSION_PEER_LIMIT_GLOBAL=500
- TRANSMISSION_ALT_SPEED_DOWN=2400000
- TRANSMISSION_ALT_SPEED_UP=4000
- TRANSMISSION_ALT_SPEED_TIME_ENABLED=true
- TRANSMISSION_ALT_SPEED_TIME_BEGIN=390
- TRANSMISSION_ALT_SPEED_TIME_DAY=127
- TRANSMISSION_ALT_SPEED_TIME_END=1350
- TRANSMISSION_SPEED_LIMIT_DOWN_ENABLED=true
- TRANSMISSION_SPEED_LIMIT_DOWN=80000
- TRANSMISSION_SPEED_LIMIT_UP_ENABLED=true
- TRANSMISSION_SPEED_LIMIT_UP=1
# - TRANSMISSION_SPEED_LIMIT_UP=4000
- TRANSMISSION_HOME=/data/appdata/transmissionovpn
# - TRANSMISSION_WEB_HOME=/data/appdata/transmissionovpn/ui
- TRANSMISSION_WEB_UI=transmission-web-control
# - HEALTH_CHECK_HOST=google.com
Alles anzeigen
Hi,
Did you tried to restart the container?
Did it worked for a while? or not at all?
Yes, I did.
It wasn't working...
Now uploading gets sometimes to 300kB/s then drop to 0.
OK, then it is because of the VPN does not support port forwarding
(most VPN do not.....)
....But it is not the end
You can still seed and download with the Torrent software (transmission in our case) port closed but you need an active peer to initiate the "conversation"
(so you have less peers)
Note : you can check the port status in the transmission web interface
the full explanation is the following:
YES, you can seed with closed port too.
So it works like this: A client in passive mode can connect to a client which is in active mode, but not to a client which is in passive mode. A client in active mode can connect to both active and passive clients.
So if your port is closed that only means you can't connect to other peers with closed ports. That means that you may get less peers and because of that worse speed. But if the torrent is frequent and there are lot of peers your client will likely be able to find enough active peers to max out your connection. If the torrent has few peers then it is likely that with active mode you would get much better speed. (If that rare case happens that all the peers are in passive mode, then you won't be able to download/upload anything. Actually non of the peers would be able to do anything as everyone is passive, you will have to wait until an active peer comes in.)
https://askubuntu.com/question…-but-seeding-is-happening
You can try:
- changing torrent source
and also (sometime helped me):
- restarting the container
- changing the VPN server in the configuration (- OPENVPN_CONFIG=)
good luck !
And how can I open port 51413? (and yes, it is closed)
You cannot....
The VPN server need to provide this functionality
So, what should I do?
So, what should I do?
You have to ask your VPN service provider if they support port forwarding, and if so to enable it for you or tell you where and how on their web site you can enable it yourself.
What if I disable port forwarding?
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!