Closed helio58 closed 3 years ago
How are you launching gluetun? Are you using --name gluetun
?
Maybe try again with:
sudo docker run -it --rm --network_mode=container:gluetun alpine:3.12 wget -qO- https://ipinfo.io
Hi thanks, Im launching gluetun with:
sudo docker run -d --name gluetun -e PUID=1000 -e PGID=1000 --cap-add=NET_ADMIN -e VPNSP="private internet access" -e REGION="Sweden" -e USER=p6450000 -e PASSWORD=password -v /volume3/docker/gluetun:/gluetun qmcgaw/private-internet-access
Tried your suggestion.
sudo docker run -it --rm --network_mode=container:gluetun alpine:3.12 wget -qO- https://ipinfo.io
Getting the error : unknown flag: --network_mode
I have try on macbook works very well. Is just is best if i get it running on synology. I m using portainer and in the state it says "starting" for a long time and then after same time "unhealthy"
First of all, a few side notes;
private internet access
1000
.Portainer says it's starting for a while because it waits for the healthcheck to set the container status as healthy or unhealthy, which happens after a 5 minutes if I recall correctly.
Now the fact it says it's unhealthy
might be that there is indeed a problem, although it seems to work within the container (it has access to github.com once the tunnel is ready).
Can you try launching it
sudo docker run -d --name gluetun -e USER=user -e PASSWORD=password -e REGION=Sweden --cap-add=NET_ADMIN qmcgaw/private-internet-access
Then shell into it with
docker exec -it gluetun /bin/sh
# Check https works
wget -qO- https://ipinfo.io
# Check DNS works
nslookup github.com
exit
And see if it works?
Hi thanks, I have change the password. Try your commands:
/ # nslookup github.com
Server: 127.0.0.1
Address: 127.0.0.1:53
Non-authoritative answer:
Name: github.com
Address: 140.82.121.3
Non-authoritative answer:
/ # wget -qO- https://ipinfo.io
wget: error getting response: Connection reset by peer
/ #
But if I use:
/ # wget -qO- http://ipinfo.io
{
"ip": "195.246.120.140",
"hostname": "195-246-120-140-static.serverhotell.net",
"city": "Wembley",
"region": "England",
"country": "GB",
"loc": "51.5524,-0.2969",
"org": "AS42708 GleSYS AB",
"postal": "HA0",
"timezone": "Europe/London",
"readme": "https://ipinfo.io/missingauth"
}/ #
http is working but not https.
Instead of docker run -it --rm --network_mode=container:gluetun alpine:3.12 wget -qO- https://ipinfo.io
you can try docker run -it --rm --network=container:gluetun alpine:3.12 wget -qO- https://ipinfo.io
Thanks Frepke, Getting the same error
:~$ sudo docker run -it --rm --network=container:gluetun alpine:3.12 wget -qO- https://ipinfo.io
Password:
Unable to find image 'alpine:3.12' locally
3.12: Pulling from library/alpine
188c0c94c7c5: Already exists
Digest: sha256:c0e9560cda118f9ec63ddefb4a173a2b2a0347082d7dff7dc14272e7841a5b5a
Status: Downloaded newer image for alpine:3.12
wget: error getting response: Connection reset by peer
And maybe without sudo?
or
docker run -it --rm --network=container:gluetun cirrusci/wget wget -qO- https://ipinfo.io
Hi,
docker run -it --rm --network=container:gluetun cirrusci/wget wget -qO- https://ipinfo.io
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.39/containers/create: dial unix /var/run/docker.sock: connect: permission denied.
BUT
sudo docker run -it --rm --network=container:gluetun cirrusci/wget wget -qO- https://ipinfo.io
Hurra
Unable to find image 'cirrusci/wget:latest' locally
latest: Pulling from cirrusci/wget
4fe2ade4980c: Already exists
627e7bf66393: Pull complete
Digest: sha256:3030b225419dc665e28fa2d9ad26f66d45c1cdcf270ffea7b8a80b36281e805a
Status: Downloaded newer image for cirrusci/wget:latest
{
"ip": "195.246.120.140",
"hostname": "195-246-120-140-static.serverhotell.net",
"city": "Wembley",
"region": "England",
"country": "GB",
"loc": "51.5524,-0.2969",
"org": "AS42708 GleSYS AB",
"postal": "HA0",
"timezone": "Europe/London",
"readme": "https://ipinfo.io/missingauth"
So must be working
Strange I used REGION="Sweden" but wget "region": "England" any way to change that?
Tested speedtest
sudo docker run --rm --network=container:gluetun tianon/speedtest speedtest --accept-gdpr --accept-license
==============================================================================
You may only use this Speedtest software and information generated
from it for personal, non-commercial use, through a command line
interface on a personal computer. Your use of this software is subject
to the End User License Agreement, Terms of Use and Privacy Policy at
these URLs:
https://www.speedtest.net/about/eula
https://www.speedtest.net/about/terms
https://www.speedtest.net/about/privacy
==============================================================================
License acceptance recorded. Continuing.
==============================================================================
Ookla collects certain data through Speedtest that may be considered
personally identifiable, such as your IP address, unique device
identifiers or location. Ookla believes it has a legitimate interest
to share this data with internet providers, hardware manufacturers and
industry regulators to help them understand and create a better and
faster internet. For further information including how the data may be
shared, where the data may be transferred and Ookla's contact details,
please see our Privacy Policy at:
http://www.speedtest.net/privacy
==============================================================================
License acceptance recorded. Continuing.
Speedtest by Ookla
Server: A3 Allmänna IT - och Telekomaktiebolaget - Stockholm (id = 20783)
ISP: GleSYS Internet Services AB
Latency: 1.69 ms (0.04 ms jitter)
Download: 120.14 Mbps (data used: 143.9 MB)
Upload: 158.19 Mbps (data used: 177.6 MB)
Packet Loss: 0.5%
Result URL: https://www.speedtest.net/result/c/6e605cf6-232c-4c1e-b4c4-55ba1dd4745b
You have to contact ipinfo for that, did it a dozen of times. In the end I switched to https://api.ipdata.co\?api-key\=test
sudo docker run -it --rm --network=container:gluetun cirrusci/wget wget -qO- https://api.ipdata.co\?api-key\=test
Oops, closed issue accidentally :(
You have to contact ipinfo for that, did it a dozen of times. In the end I switched to https://api.ipdata.co?api-key=test
sudo docker run -it --rm --network=container:gluetun cirrusci/wget wget -qO- https://api.ipdata.co\?api-key\=test
Thanks that did it.
Is it possible to route one computer in lan 192.168.20.xxxx through the gluetun container? if so how? Thanks
I use the shadowsocks option myselve on my Macbook. You can find the info in the readme file https://github.com/qdm12/gluetun#connect-to-it in the section: Connect LAN devices through the built-in *Shadowsocks* proxy (per app, system wide, etc.)
So strange that https didn't work but http worked. Amyway, maybe an issue with Alpine's built-in wget who knows. Probably ipinfo.io misbehaving.
Even weirder that ipinfo.io returns a different country, but if it returns the right data with ipdata, fair enough. I'll update the documentation.
To tunnel lan devices you can use the http proxy with tinyproxy (careful your proxy credentials from client to gluetun go in plaintext, which is fine in your lan though) or use shadowsocks where the traffic & credentials are encrypted with a pre-shared password (plus it tunnels udp on top of tcp).
If you want to try tinyproxy, you might want to try the docker image with tag :http-proxy
which replaces tinyproxy, I've been coding this the weekend 😉
Finally, thanks Frepke for your help!
I use the shadowsocks option myselve on my Macbook. You can find the info in the readme file https://github.com/qdm12/gluetun#connect-to-it in the section: Connect LAN devices through the built-in Shadowsocks proxy (per app, system wide, etc.)
Does this looks the right way to enable Shadowsocks?
sudo docker run -d --name gluetun -e USER=xxxxx -e PASSWORD=xxxxx -e SHADOWSOCKS=on -e SHADOWSOCKS_PASSWORD=xxxxx -e SHADOWSOCKS_METHOD=aes-128-gcm -p 8388:8388/tcp -p 8388:8388/udp -e REGION=Sweden --cap-add=NET_ADMIN qmcgaw/private-internet-access
Thanks
Looks okay to me
Thanks
Also note that the container will complain if anything's wrong, it's quite foolproof. It also logs all the settings at start where you can check what you've set is correct. Enjoy!
Also note that the container will complain if anything's wrong, it's quite foolproof. It also logs all the settings at start where you can check what you've set is correct. Enjoy!
Thanks. For me works 100% on a mac. In Synology i think i can connect to Shadowsocks but can't connect to the internet. The idea was having Gluetun running on a synology. Will run on a mac. I know this do not have much to do with this issue. But say I have Gluetun running on mac. Have a docker container running on synology how do i connect the synology container to Gluetun on mac ? (both mac and synology same lan)
Why not run it on your Synology NAS though? Do you encounter any error?
Why not run it on your Synology NAS though? Do you encounter any error?
YES found the error. Really can't believe. Have the wrong port. Thanks for your patience and thanks for this great container.
Alright great! Feel free to open another issue if you have a problem or some feedback. Happy tunneling!
TLDR: Describe your issue in a one liner here
Is this urgent?
What VPN service provider are you using?
What's the version of the program?
See the line at the top of your logs
Running version latest built on 2020-10-24T22:59:33Z (commit f29707f)
What are you using to run the container?
Extra information
Logs:
Configuration file:
Host OS:Synology
Is there something i can do to make it running? Thanks