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.

Home Page:https://hub.docker.com/r/qmcgaw/gluetun

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: Pre & Post connect execution

IdefixRC opened this issue · comments

What's the feature 🧐

Would be great if we can have an option to add simple pre & post connect commands to the container. This would make updating services based on connection status so much easier (not sure if there is another way currently?).
Thanks

Extra information and references

Example how Nordlynx does it:

PRE_UP/POST_UPPRE_DOWN/POST_DOWN
Script snippets which will be executed by bash before/after setting up/tearing down the interface, most commonly used to configure custom DNS options or firewall rules. The special string %i is expanded to INTERFACE.

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