I have a Windows 10 machine that connects to internet via px-proxy using localhost and port 1234 without login what works just fine; PowerShell & Co. can successfully connect to the internet. Now I'm using Ubuntu 20.04 LTS over WSL2 and from there I'm unable to connect to the internet.
I tried
> more etc/resolv.conf
nameserver 8.8.8.8
- exporting the proxy settings in
.bashrc(also tried with port 4000):
> tail .bashrc
...
export http_proxy="123.456.78.9:1234";
export https_proxy="123.456.78.9:1234";
- configuring
/etc/apt/apt.conf/proxy.conf(also tried with port 4000):
> more /etc/apt/apt.conf.d/proxy.conf
Acquire {
HTTP::proxy "http://123.456.78.9:1234";
HTTPS::proxy "http://123.456.78.9:1234";
}
netsh interface portproxy add v4tov4 listenport=4000 listenaddress=0.0.0.0 connectport=4000 connectaddress=123.456.78.9
and combinations of. I made sure the IP of the host...
> ipconfig
...
Ethernet adapter vEthernet (WSL):
Connection-specific DNS Suffix . :
IPv4 Address. . . . . . . . . . . : 123.456.78.9
Subnet Mask . . . . . . . . . . . : abc.abc.abc.a
Default Gateway . . . . . . . . . :
... matches those of WSL2 Ubuntu:
> ip route
default via 123.456.78.9 dev eth0
123.456.78.9/10 dev eth0 proto kernel scope link src xyz.xyz.ba.b
Now I am lost with the various possibilities and not sure, if I am doing something obviously wrong here or if I am overlooking something. Thank you in advance for any hints! :)