Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxying to localhost no longer works #1762

Open
macinta opened this issue Mar 3, 2019 · 15 comments
Open

Proxying to localhost no longer works #1762

macinta opened this issue Mar 3, 2019 · 15 comments

Comments

@macinta
Copy link

macinta commented Mar 3, 2019

Hello,

Proxy requests to localhost have stopped working for me. I have a profile which uses a SOCKS4 proxy for all HTTP requests, including requests to localhost - i.e., I have an empty bypass list. This had been working for several months, but it no longer does. Now HTTP requests to localhost are not sent through the proxy. I think the last time I used this profile was about 3 weeks ago, so I guess a Chrome update since then broke things.

Thanks,

  • Tim Macinta

SwitchyOmega 2.5.20
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36

@benze
Copy link

benze commented Mar 22, 2019

I have the same issue; any endpoint that is 127.0.0.1 fails no matter the name in the URL. I've tried localhost, a machine name, a fake name in my hosts file that resolves to 127.0.0.1 and in all cases, the proxy setting is ignored altogether.

A little more testing seems to indicate that any hostname that contains the word localhost as a part of the name automatically skips the proxy settings. For instance adding to the hosts file

192.168.56.1  eric.localhost

still skips the proxy setting. I need to change it to:

192.168.56.1 eric-localhost

I have only started seeing this behaviour following an upgrade to Chrome 72.0.3626.121
Running on Win 10

Thanks,

Eric

@ViktorijaAdo
Copy link

Also, having the same issue. But at least it works if I use my machine IP.

Would be nice to have this fixed.

Thanks,
Viktorija

@mfigueroa
Copy link

Having this issue as well.

@yyysuo
Copy link

yyysuo commented Jun 10, 2019

got the same problem

@AndreGeng
Copy link

+1

@robxu9
Copy link

robxu9 commented Jun 26, 2019

I was looking for a solution for this as well and I saw this: https://www.reddit.com/r/chrome/comments/as84m3/chrome_doesnt_give_a_damn_about_proxy_on/eierebt/

tl;dr add <-loopback> to Proxy SwitchyOmega's bypass list and remove any other reference to localhost

@yyysuo
Copy link

yyysuo commented Jun 27, 2019

I was looking for a solution for this as well and I saw this: https://www.reddit.com/r/chrome/comments/as84m3/chrome_doesnt_give_a_damn_about_proxy_on/eierebt/

tl;dr add <-loopback> to Proxy SwitchyOmega's bypass list.

Like this?I can still access my hfs web page 127.0.0.1.

127.0.0.1
[::1]
localhost
<-loopback>

@yyysuo
Copy link

yyysuo commented Jun 27, 2019

even when i delete 127.0.0.1 in my bypass list and using an Incognito window

@robxu9
Copy link

robxu9 commented Jun 27, 2019

No, delete 127.0.01, [::1], and localhost

@yyysuo
Copy link

yyysuo commented Jun 27, 2019

No, delete 127.0.01, [::1], and localhost

I have checked <-loopback> and loopback,only one of them left in my bypass list,and when I access127.0.0.1 using Incognito window,I can still see the hfs web page load successfully。

@robxu9
Copy link

robxu9 commented Jun 27, 2019

it's <-loopback>, and are you allowing Proxy SwitchyOmega to run in incognito?
I'm out of suggestions otherwise, it's definitely working on my end.

@yyysuo
Copy link

yyysuo commented Jun 27, 2019

it's <-loopback>, and are you allowing Proxy SwitchyOmega to run in incognito?
I'm out of suggestions otherwise, it's definitely working on my end.

Thank you very much for your reply,I think I should check other configurations.

@teodor440
Copy link

Hey, so a hack to proxy localhost with switchy omega can be to enter a domain that points to localhost (127.0.0.1). One such domain is spoofed.burpcollaborator.net

@tianjianchn
Copy link

Or use Chrome 69 in mac with system proxy(or SwitchyOmega if you prefer such extra work)

@oscar6echo
Copy link

On Ubuntu 20.04 LTS I'm running - a local privoxy in docker: arch-delugevpn which is running a wireguard client, connected to a wireguard server on a VM somewhere in the cloud.

This works fine when I set the system proxy to localhost:8118 with IgnoreHosts=localhost,127.0.0.0/8,::1.
Then I can browse on chrome and check I am abroad with e.g.

But there is NO way to input these proxy settings in SwitchyOmega.
Whenever I visit a website with a proxy defined in SwitchyOmega, I get a ERR_TIMED_OUT error.
Obviously the request does not go through the local privoxy.
For some reasons, either SwitchyOmega config is ineffective and Chrome cannot reach the proxy on localhost:8118.
Note that all works as expected when I use [DIRECT] or [System Proxy].

I tried all combinations (I think) of:

  • IP: localhost, 127.0.0.1, public IP addr
  • Bypass list: <-loopback>, localhost, 127.0.0.1, ::1

The issue is clearly: Why does my privoxy config (localhost or equivalent:8118) get ignored by Chrome ?

Anybody has already met/solved this problem ?
Any hint appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants