-
Hi everyone, please help me figure out if I made a mistake or if there's some part of the documentation missing. I'm pretty sure I properly understood the docs of this docker image but let me describe the problem. my VPN for testing this is GhostPath. It works just fine. Tested the VPN connection and checked my public IP from inside the docker container. All good. I'm using this image: image: haugene/transmission-openvpn - should be version 4.0. I chose port 49994 as peer port in transmission. ufw is enabled. transmission settings => network => peer listening port is permanently displayed as "closed" even though I opened it on my VPN provider's side. I then entered the docker image: and checked the ufw status:
all good so far. I then re-read the documentation:
Now this sounds like ufw would let traffic to the peer port through but that port is not in above allow list. Reading it again, it then sounded like it would only block stuff from the LOCAL_NETWORK and the internal docker gateway, depending on the comma situation in this sentence. Not sure if English not being my first language is at fault here. Maybe someone could clarify this sentence for me please? Reading the part about "if TRANSMISSION_PEER_PORT_RANDOM_ON_START is enabled" made me think that ufw is actually aware of transmissions settings and so allows traffic to the peer port which is totally wrong as my port is marked closed. I then made a quick test and allowed all traffic to my peer port:
and the status inside transmission immediately jumped to "peer listening port open". So obviously what I was doing was the right thing so I tried using
Please somebody help me figure out this know in my brain: is it the documentation or is it me being wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
I have followed these instructions: https://haugene.github.io/docker-transmission-openvpn/config-options/#custom_scripts and mounted /scripts/ then placed a script named transmission-pre-start.sh inside with this content and all seems to work as desired.
Please let me know if there's something wrong with my solution and the fact that nobody else who's having enabled ufw is reporting a closed peer port? |
Beta Was this translation helpful? Give feedback.
-
Looks like the behaviour of ufw / transmission changed, I am not missing the rules allowing access to the control port.
if I now enter the container with docker exec -ti transmission-openvpn bash
This is only my manually added rule, the default ones are missing :-/ |
Beta Was this translation helpful? Give feedback.
-
If anyone is curious, I manually fixed it with the same pre script:
|
Beta Was this translation helpful? Give feedback.
-
It is mentioned here:
http://haugene.github.io/docker-transmission-openvpn/config-options/
All transmission options are referred to the official transmission
documentation
…On Mon, Dec 6, 2021 at 17:16 ovizii ***@***.***> wrote:
oh, btw. I just tried it and added TRANSMISSION_PEER_PORT=49994 to my
docker-compose.yml and low and behold it works as expected. I just wish
that had been documented ;-)
ufw status verbose
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), deny (routed)
New profiles: skip
To Action From
-- ------ ----
49994 ALLOW IN Anywhere
9091 ALLOW IN 192.168.48.1
9091 ALLOW IN 10.10.10.0/24
There was another update last night apparently:
Found new haugene/transmission-openvpn:latest image (38671380faf0)
Stopping /transmission-openvpn (b609ca2ecf0a) with SIGTERM
Creating /transmission-openvpn
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2073 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA7OFYTNI23RJ7N2R42TH6TUPRWONANCNFSM5IXEPI6Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Hello, sorry for coming of a bit harsh there.. I do believe the
documentation has many areas to be improved and some small things like you
mentioned at the end need to be updated as they have slightly changed
afaik..
It’s always a hassle to get documentation done to everyone’s liking :/
Suggestions are always welcome or even updates directly
…On Mon, Dec 6, 2021 at 19:20 ovizii ***@***.***> wrote:
OK, I see what you mean. In this case, it might be a misunderstanding on
my side.
The docs say that:
You may still override Transmission options by setting environment
variables if that's your thing.
That is not my thing so i read the above sentence thinking that this
container image to read the transmission peer port from what I had set in
the transmission config and allow it through ufw which seems not to happen
unless I explicitly override TRANSMISSION_PEER_PORT inside my
docker-compose.yml
I might have misunderstood that sentence because English isn't my first
language or there's something else afoot.
I also found this part of the documentation:
Firewall configuration options¶
When enabled, the firewall blocks everything except traffic to the peer port and traffic to the rpc port from the LOCAL_NETWORK and the internal docker gateway.
which led me to think that whatever peer port I set inside transmission
will be allowed through.
Again, I may have misread this part of the documentation. If you think its
stated clear enough, lets just close this thread. Alternatively it could be
worded clearer.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2073 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA7OFYUFBAUVCHQO3RIXC3LUPSFANANCNFSM5IXEPI6Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
I have followed these instructions: https://haugene.github.io/docker-transmission-openvpn/config-options/#custom_scripts
and mounted /scripts/ then placed a script named transmission-pre-start.sh inside with this content and all seems to work as desired.
Please let me know if there's something wrong with my solution and the fact that nobody else who's having enabled ufw is reporting a closed peer port?