Open TuRDMaN opened 2 years ago
It works fine if I don't require username/password, but I don't want to have this exposed on the web without password protection. Or I'd be happy with just allowing LAN clients to access the HTTP proxy, but I haven't figured out how to do that either.
:warning: Communication client -> HTTP proxy is unencrypted so that means your http proxy credentials can be spied on, as well as http (not https) traffic. You might want to use shadowsocks if you want to expose it outside a safe network (or even within a safe network). The HTTP proxy is really here for devices like TVs that only support this.
Now, back to the http proxy (and I'd be happy if you figure out the reason it was failing), commit cb804577a93d77c2b2739ebc7cd1e5f58ca2ec21 now logs the credentials sent from the user (so re-pull the latest image), do you spot anything obvious? Have you tried with dumb http proxy user and password i.e. abc
?
Thanks for following up, and sorry for the slow reply.
I set up a dummy user/pass, but when I try to connect using those credentials, it looks like it's not receiving the username/password from the client correctly: 2022-10-07T13:18:02-04:00 INFO [http proxy] Username ("") or password ("") mismatch from <ip>:<port>
What's your HTTP proxy client?
I was just trying it out with my web browser (using the SwitchyOmega extension)
From the top of my head, I recall authentication isn't supported on chrome + switchy omega + http proxy. You can authenticate with an https proxy or socks5 though (not implemented in gluetun yet). Maybe I'm mistaken, but I have some foggy memory about pulling my hair over that one.
I was testing out FoxyProxy browser extension and I run into the same issue as @TuRDMaN . No deal breaker for me as I can leave the credentials off in my homelab.
Is this urgent?
Yes
Host OS
Almalinux
CPU arch
x86_64
VPN service provider
ProtonVPN
What are you using to run the container
Portainer
What is the version of Gluetun
Running version latest built on 2022-09-14T13:28:28.429Z (commit e5be20d)
What's the problem 🤔
I am trying to use the environment variables to set a username and/or password
When I attempt to connect to the HTTP proxy using those credentials, I get the following error in my logs:
Username or password mismatch from <ip:port>
This happens if I set just a username, or a username and password.
I assume I'm doing something wrong, but I can't figure out what.
It works fine if I don't require username/password, but I don't want to have this exposed on the web without password protection. Or I'd be happy with just allowing LAN clients to access the HTTP proxy, but I haven't figured out how to do that either.
Share your logs
Share your configuration