-
When my gluetun container starts up, it randomly picks an endpoint from env COUNTRY list. I want to regularly rotate through endpoints without disturbing my other containers that are using network_mode: "service:gluetun". Can this be done? Is auto-healing the method to do it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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' |
Beta Was this translation helpful? Give feedback.
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'