Closed erphise closed 9 months ago
@erphise
You haven't opened port 8000 in your list of ports:
ports: - 8888:8888/tcp # HTTP proxy - 8388:8388/tcp # Shadowsocks - 8388:8388/udp # Shadowsocks - 8080:8080/tcp # qBittorrent
Also, if you're using Portainer for your docker-compose, you'll probably want to map port 8000 to something else, since Portainer typically uses 8000.
Mine looks like this:
ports:
- 8100:8000 # Remote Control VPN
I just did exactly that and still same issue. Nothing changed 😕 Not using Portainer btw.
@erphise
I just did exactly that and still same issue. Nothing changed 😕
What does docker ps
show? If the port isn't mapped, you have a conflict elsewhere. Here's mine -- and I just tried a GET to confirm it's working:
And are you doing an actual GET and not just the partial you posted above? Something like:
http://server:8000/v1/dns/status
As described here:
https://github.com/qdm12/gluetun-wiki/blob/main/setup/advanced/control-server.md
@erphise
Not making an actual API call would result in an error like you're seeing. You can't just use http://server:8000
. The control server is described in the Wiki -- as linked to above.
Sorry for my ignorance, but I am not sure how to do this 😅 I guess I have to go to the command line on unraid and then type docker ps
?
Sorry for my ignorance, but I am not sure how to do this 😅 I guess I have to go to the command line on unraid and then type
docker ps
?
That's right.
@erphise
I guess I have to go to the command line on unraid and then type
docker ps
?
Yes, although Unraid may have some way to see if ports are actually being mapped in their container WebUI too.
Sorry I could not respond sooner. This is what pops up on docker ps
:
Also, when I do that GET thing, it shows: {"status":"running"}
@erphise
Also, when I do that GET thing, it shows: {\"status\":\"running\"}
That's the correct response -- so it's working as designed.
Then I don't understand why I can not see anything when going to the webGUI.
@erphise
Then I don't understand why I can not see anything when going to the webGUI.
Gluetun doesn't have a WebUI.
Well, I know, I was refering to the Control Server. The place where I am supposed to see the forwarded port that was assigned to me. I just want that.
@erphise
Well, I know, I was refering to the Control Server. The place where I am supposed to see the forwarded port that was assigned to me. I just want that.
The control sever is just a basic API that does what's defined in the Wiki I linked to you earlier. You can get the public IP assigned to you -- if that's what you're after.
If you're looking for a randomly forwarded port that's assigned to you by a VPN provider -- that's a more involved topic, and is specific to your VPN provider. There are other issues and discussions around port forwarding, and you should search for one regarding your specific provider. And, of course, before all else, check the Wiki to see if there's any guidance available for your VPN provider.
I am aware of all of that, and I already did that. As I stated on this issue, my provider is ProtonVPN. GlueTUN says in their wiki how to properly set it up with custom providers, and also says that you then can check the port on the Control Server. Here says:
You can enable it with VPN_PORT_FORWARDING=on. The forwarded port can be accessed: through the control server through the file written at /tmp/gluetun/forwarded_port (will be deprecated in v4.0.0 release)
I did all of that. Followed all the wiki properly and all the steps. So I am here asking for help on how I can access the Control Server to know that forwarded port. (Since the other option is no longer available).
@erphise
Followed all the wiki properly and all the steps. So I am here asking for help on how I can access the Control Server to know that forwarded port.
So, we fixed access to the Control Server, since you didn't have port 8000 set up. And, the control server is responding, which you proved using the GET earlier.
Have you tried querying the Control Server at the endpoint described in the Wiki?
As in: http://<your-docker-host-ip>:8000/v1/openvpn/portforwarded
God it had to be that simple. Sorry I bothered you all for this, and thank you so much for your patience. I have 0 knowledge on programming and wasn't intuitive for me that I had to do that.
Is this urgent?
No
Host OS
Unraid OS 6.12.4
CPU arch
x86_64
VPN service provider
ProtonVPN
What are you using to run the container
docker-compose
What is the version of Gluetun
Running version latest built on 2024-01-01T18:24:19.221Z (commit c826707)
What's the problem 🤔
Unable to access Control Server on
http://<your-docker-host-ip>:8000
. Error:unversioned API: requested URI not found
Share your logs (at least 10 lines)
Share your configuration