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

Add setting to allow proxifying localhost #30

Closed dbeniamine closed 3 years ago

dbeniamine commented 3 years ago

First of all container proxy is awesome, and way more subtle than foxyproxy.

Sadly following #21 I had to switch back to foxyproxy. Indeed I use container proxy to acces services only available on localhost by sending all trafic through a ssh tunnel.

Would it be possible to add a setting on the proxy configuration that let the user choose if localhost, 127.0.0.1 and :::1 are to be proxified or not.

This would replace #29.

bekh6ex commented 3 years ago

Let me try to clarify: you have another server where there is a service listening on 127.0.0.1. Also on that server there is a proxy running which you set up in the extension in order to access service running locally (on that server).

Did I get it right? If not, can you explain?

dbeniamine commented 3 years ago

I have a server which has some services (docker) that are only accessible via 127.0.0.1 (blocked by firewall).

  1. This connection is not possible : blocked by firewall
    laptop --> server:8080
  2. So I do a tunnel ssh -D <port> server
    laptop -->|ssh tunel| server
  3. At the end of the day, on Firefox I go tho http://localhost:8080 with the proxy set to send all trafic to <port> including localhost
    laptop -->|proxy| localhost:8080

In other words, localhost is now the server not my laptop

bekh6ex commented 3 years ago

Oh! Didn't know you can do that! Ok will fix ASAP, which is probably next week. If someone wants to crate a PR, you're more than welcome.

bekh6ex commented 3 years ago

That's been a long week 😄 Sorry for that. Please check version 0.1.15, should work. If doesn't, please reopen the issue.

dbeniamine commented 3 years ago

It's perfect !

I just had to uncheck this setting on my proxies (screenshot in case it helps someone):

image

thanks a lot for this feature !