-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing instructions for determing what port has been fowarded #75
Comments
@pops64 You can find the port from the logs of gluetun, e.g. docker logs dockers-gluetun-1 | grep "port forwarded is" | awk '{print $NF}' Will return you the port number assigned for forwarding (assuming you get the same output as me) If you want to do this automatically, for example because your vpn provider changes the port, you could look into programmatically changing the port in your Torrent Client. |
I would love for this to be included in the Wireguard API, like it is here in the OpenVPN section: https://github.com/qdm12/gluetun-wiki/blob/main/setup/advanced/control-server.md#openvpn |
Just as a heads up, this actually already works - even though the URL says |
This is not the case for my setup |
Here is a working configuration for ProtonVPN:
Then the forwarded port is available either on your Docker host |
Does this ProtonVPN forwarded port stay up for a user forever or does it change occasionally? I wonder if I need to reconfigure my torrent client each time I restart my docker compose project. |
It changes. Not sure on the schedule. I have had some where it changes on a gluetun server restart and other where I have had it going for a long time. Defiantly would suggest automating this into your torrent client. Would be a nice feature request of gluetun not to sure how feasible due to the sheer amount of clients out there |
Here's what I have observed about the port forwarding behavior:
|
Thanks for the explanation! In that case, I'd rather just use other service as this way too much guesswork to deal with, I need something more reliable just didn't find such provider yet. Seems lately forwarded ports became real scarcity for some reason. |
Please subscribe to qdm12/gluetun#1751 there has been quite some discussion on how to do it. I'm working on a built-in solution, ideally to solve it for qbitorrnet, transmission and deluge, since this is rather popular and it has been itching me for years to do it 😄 I'll close this issue in favor of 1751. Now regarding:
It is. I've also updated the documentation yesterday I think, to reflect some routes work for both openvpn and wireguard. It's a bit horrible naming due to historical reasons, when wireguard wasn't supported. @kainzilla awesome final write-up, thanks 💯 @pentago AFAIK
There are also other providers (for exmaple I think Torguard) supporting port forwarding without custom code to obtain and maintain the port, but I have no clue when/if it expires. |
Closed issues are NOT monitored, so commenting here will NOT be seen by the maintainer. This is an automated comment setup because @qdm12 is the sole maintainer of this project |
I have been looking through the wiki as I was thinking of migrating to proton for my VPN service provider. I plan on using Wiregraud. And I understand the instructions on how to set up the connection. But there seems to be no steps on how to determine what port has been forwarded to gluetun by Proton. As the instructions provided by proton state that you have to request a port and this is when it is determined. Is it printed in the logs? Is there some command I can run to retrieve it short of using grep on the logs? I saw the HTTP control server will print it out for openvpn, but I am using wiregraud would this also work or would it be a differnt get request?
I need this information for my torrent client. Or does enabling UPnP on my torrent client automatically fetch the correct port that is forwarded, I would still prefer to manual configure it?
The text was updated successfully, but these errors were encountered: