Skip to content

Simple way to issue a command to restart the VPN. #1747

Answered by sboger
sboger asked this question in Q&A
Discussion options

You must be logged in to vote

Answering my own question. One can utilize a "bug" (per qdm12) that triggers auto-healing to rotate to a new vpn endpoint by issuing this to the control server:

docker exec -ti [gluetun container id] 'wget' '-qO-' '--method=PUT' '--body-data={"status":"stopped"}' 'http://127.0.0.1:8000/v1/openvpn/status'

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sboger
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants