Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Change IP address without restarting the container #2689

Open
miltuss opened this issue Feb 5, 2025 · 2 comments
Open

Bug: Change IP address without restarting the container #2689

miltuss opened this issue Feb 5, 2025 · 2 comments

Comments

@miltuss
Copy link

miltuss commented Feb 5, 2025

Host OS

Debian

CPU arch

x86_64

VPN service provider

AirVPN

What are you using to run the container

docker-compose

What is the version of Gluetun

Latest

What's the problem 🤔

Each time I have to restart the Gluetun container to change IP address. I would like to change the IP address without restarting the container. How to do it?

Copy link
Contributor

github-actions bot commented Feb 5, 2025

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

@mjtbrady
Copy link

mjtbrady commented Feb 7, 2025

You could use the Control Server https://github.com/qdm12/gluetun-wiki/blob/main/setup/advanced/control-server.md

Something like

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants