Skip to content

Manually renew IP address without restarting the container #1593

Answered by DcR-NL
seth100 asked this question in Q&A
Discussion options

You must be logged in to vote

You can stop and start the VPN using the Control Server. It also allows you to query your public IP.

For example, using curl:

# curl -X PUT --fail --silent --show-error http://localhost:8000/v1/openvpn/status -H "Content-Type: application/json" -d '{"status":"stopped"}'
{"outcome":"stopped"}
# curl -X PUT --fail --silent --show-error http://localhost:8000/v1/openvpn/status -H "Content-Type: application/json" -d '{"status":"running"}'
{"outcome":"running"}

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@seth100
Comment options

Answer selected by seth100
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