bekh6ex / firefox-container-proxy

[Firefox extension] Assign a proxy to a Firefox container
https://addons.mozilla.org/en-US/firefox/addon/container-proxy/
BSD 2-Clause "Simplified" License
137 stars 14 forks source link

DNS not working #52

Open GRBurst opened 2 years ago

GRBurst commented 2 years ago

Hey 👋 ,

thanks for this awesome extension. Sadly, I do not get DNS resolution to work with the extension, so I hope you can point me to e.g. conflicting configurations or have some advice for me.

I am using firefox 94.0.2 with extension version 0.1.22.

My use case is as follows:

I have a docker container running, which connects to a VPN and exposes a socks5 (port 8889) and http proxy on localhost. I now assigned a particular firefox container to use that proxy and reach websites from within the VPN. However, this is only working when I try to reach a website via ip, but urls are not translated. In the container itself, I can do a nslookup mydomain.com and it works just fine. With curl from my host machine, it works fine too: curl -k --socks5-hostname 127.0.0.1:8889 https://mydomain.com. Important part for curl is to let the proxy resolve the host name (--socks5-hostname, not --socks5)

So it seems like the problem is related to firefox. Neither the newly build-in options to assign a proxy to a tab nor this extension do work for me, but I the build-in options seem to be broken for many others so I'd like to get it working with this extension.

Edit:

Do you have any advice?

Thanks in advance :-)

Kind regards

GRBurst commented 2 years ago

Mhm - okay. Maybe firefox itself is broken right now because even if I configure the proxy manually in the settings, I does not resolve the dns entries.