-
Hi, I am using gluetun in a docker compose stack running other containers connected. My VPN provider is Mullvad with multiple server countries and I use the Wireguard protocol. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Anyone? There is really no way to do that? |
Beta Was this translation helpful? Give feedback.
-
You can stop and start the VPN using the Control Server. It also allows you to query your public IP. For example, using curl:
|
Beta Was this translation helpful? Give feedback.
-
Works fine, for reference, for wireguard, it should probably be now something like (seems "/vpn" endpoints are now exposed) : URL="https://<basicauth, ...>@gluetun-api.domain"
curl -X PUT --fail --silent --show-error ${URL}/v1/vpn/status -H "Content-Type: application/json" -d '{"status":"stopped"}'
curl -X PUT --fail --silent --show-error ${URL}/v1/vpn/status -H "Content-Type: application/json" -d '{"status":"running"}' |
Beta Was this translation helpful? Give feedback.
You can stop and start the VPN using the Control Server. It also allows you to query your public IP.
For example, using curl: