chetan51 / sidestep

A Mac OS X application that automatically secures your Internet connection in unprotected wireless networks through SSH tunneling.
http://chetansurpur.com/projects/sidestep
MIT License
283 stars 32 forks source link

Ignoring /etc/hosts file #32

Open cbetta opened 12 years ago

cbetta commented 12 years ago

Not sure if this is inherent to how proxies work, but when I connect it seems to ignore any records in my /etc/hosts file. As a developer I kind of need those and it's now a choice between hosts file and secure proxy :/

sillygwailo commented 12 years ago

Take a look at the pull request at https://github.com/chetan51/sidestep/pull/30

I use a custom TLD for my local development (currently .lallafa). If you look at /Applications/Sidestep.app/Contents/Resources/TurnProxyOn.sh you can add the TLD (or whatever you're calling your hostname if it's not 'localhost') to the list near the bottom of the file. So in my case, just before *.local I added *.lallafa.

AaronHolbrook commented 11 years ago

I see #30 - but unfortunately it's still redirecting localhost, 127.0.0.1 and a custom *.dev network that I added.

I restarted the program and turned the proxy on and off, but no change, it's still acting like my 'localhost' is the localhost of the machine I'm proxied on to!

honza commented 11 years ago

Bump. This is a pretty big problem for me. I'm not really sure how this happens. I'm happy to help in any way I can (not an OSX dev though).

unbracketed commented 11 years ago

@AaronHolbrook @honza I was having the same problem and worked around it by editing the system proxy settings (Network -> select device -> Advanced -> Proxies -> Bypass proxy settings)

dcalhoun commented 11 years ago

@unbracketed's solution seems to have worked for me. Thanks!

AaronHolbrook commented 11 years ago

@unbracketed yup - that also works for me! Thanks @unbracketed!

honza commented 11 years ago

@unbracketed Yes, that works for me, too. Thanks

jkintscher commented 10 years ago

@unbracketed Thanks for the tip, worked well for me on 10.9.2 and saved me quite a bit of hassle.

dbishoponline commented 8 years ago

@unbracketed years later.... thank you :)

allendav commented 7 years ago

@unbracketed even more years later - thank you :)