-
-
Notifications
You must be signed in to change notification settings - Fork 373
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
Feature request: send ports forwarded to control server #2369
Comments
@qdm12 is more or less the only maintainer of this project and works on it in his free time.
|
I'm not sure I follow what you request here? 🤔 |
The basic idea was to implement a HTTP PUT route for the port forwarded API endpoint. With this people could implement external solutions for their port forwarding scenario where Gluetun doesn´t yet support the provider, like running their own scripts in another container and controlling Gluetun from there. However, seeing how fast support for Perfect Privacy got implemented there probably is no need for this feature, Lastly, #1785 would definitely allow for custom solutions like this, but being able to use the Control Server API to control Gluetun externally seems generally more elegant to me, especially as with scripting within the Gluetun container people would need to install all the additional tools they would want to use within their scripts. |
Can you give an example? Let's say for perfect privacy, how would you apply this? 🤔 |
In the case of Perfect Privacy one could create an additional container connected to Gluetun and monitor the internal tunnel address changes. When a change happens you run Perfect Privacy's script to calculate the new forwarded ports and then PUT them at Alas, my proficiency with Go as well as my understanding of the port forwarding code still needs quite a bit of work before I would attempt a pull request. 😅 |
That's interesting. The current workarounds are implement the code in Go in Gluetun AND use |
What's the feature 🧐
I suggest adding runtime control of the forwarded ports to the control server.
This would greatly improve the users ability to create their own port forwarding solutions for VPN providers that have no native port forwarding implementation within Gluetun (i.e. Perfect Privacy #2368).
Extra information and references
No response
The text was updated successfully, but these errors were encountered: