Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make Firefox use a proxy server for localhost connections [closed]

Tags:

ssh

proxy

firefox

I have a SOCKS proxy forwarding port 9999 on my local machine to a remote development server. I use that proxy connection with Firefox so that I can access the dev server's network, but I also want to be able to forward localhost connections in Firefox to the remote server's localhost to connect to various services running there. I have removed localhost and 127.0.0.1 from the "No proxy for" setting and it still doesn't work. How do I make it work?

like image 618
Connor Avatar asked Aug 08 '19 19:08

Connor


People also ask

How do I toggle proxy in Firefox?

The Firefox proxy settings are in: [Options > General > Network Settings > Configure Proxy Access to the Internet]. To change the proxy configuration or the default on/off state: Disable the extension.

Can I use localhost as proxy?

As one uses "localhost" instead of ip it resolved to default ip 127.0. 0.1 and both "localhost" and "127.0. 0.1" are explicitly listed as "no proxy for".


1 Answers

You have to change another setting, in addition to removing localhost and 127.0.0.1 from the "No proxy for" box: set network.proxy.allow_hijacking_localhost to true in about:config.

This was changed recently. Source: https://bugzilla.mozilla.org/show_bug.cgi?id=1535581

like image 136
Connor Avatar answered Sep 19 '22 13:09

Connor