qdm12 / gluetun

VPN client in a thin Docker container for multiple VPN providers, written in Go, and using OpenVPN or Wireguard, DNS over TLS, with a few proxy servers built-in.
https://hub.docker.com/r/qmcgaw/gluetun
MIT License
7.14k stars 344 forks source link

Feature request: Webhook call when forwarded port change #2351

Open antanilol opened 1 month ago

antanilol commented 1 month ago

What's the feature 🧐

I use gluetun with PIA and forwarding. I have seen many ways to read the forwarded port from gluetun (most of them using the fwd_port file, wich I read is being deprecated) but I think the best way would be gluetun that makes a web request by itself calling a user-configured webhook when the port is being changed and maybe at the start of gluetun too. Making the web request entirely configurable with a template inside the docker compose file (or a separate config file) would be ideal. I understand it can take some time to implement such a thing, so a simple GET or POST request with the forwarded port to a user-configurable endpoint it'd be nice too.

I found a program (written in Go) that implement this, if you want to take a look

Thank you for your work!

Extra information and references

No response

github-actions[bot] commented 1 month ago

@qdm12 is more or less the only maintainer of this project and works on it in his free time. Please: