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
282 stars 32 forks source link

Enabling reroute asks session password 3 times #35

Closed jchatard closed 11 years ago

jchatard commented 12 years ago

I don't know if this specific to my setup, but when I enable the Reroute Traffic Through Proxy Server Now Lion asks me my user session password 3 times before actually rerouting.

Any solution to reduce or remove this requirement?

I don't know if this could be related by the built-in Firewall is activated.

chetan51 commented 12 years ago

Try setting up passwordless login (http://burnz.wordpress.com/2007/10/17/sshssh2-password-less-authentication/).

jchatard commented 12 years ago

No luck, I can login without password from the terminal, but still asked 3 times for my OS X session password when re-routing traffic. It is asked by networksetup (is trying to modify your system settings...)

chetan51 commented 12 years ago

I've seen this before, but I'm not sure how to get around it. Sorry! Please update this issue if you figure out a workaround.

jchatard commented 12 years ago

After upgrading to OS X 10.7.3 (11D50b) I'm not asked any password anymore.

chetan51 commented 12 years ago

Weird, but I guess that's a good thing!

JJJ commented 12 years ago

This is back after an update to Mountain Lion, using Sidestep 1.3.1.

chetan51 commented 12 years ago

Try opening System Preferences > Network, and then click the lock on the bottom left corner of the window to make sure it's unlocked. Let me know if that fixes the problem or not.

JJJ commented 12 years ago

No change. The same prompt also appears (once, rather than 3 times) when turning off Sidestep, and when Sidestep launches for the first time (on boot.)

asenchi commented 12 years ago

I also have this issue on Lion (latest patch).

markjaquith commented 12 years ago

Screenshot of the issue in OS X 10.8 Mountain Lion.

Details:

chetan51 commented 12 years ago

Figured out the cause of this problem: The networksetup command and the airport command in Mountain Lion must be run as root. So when Sidestep tries to run shell scripts that call those commands to check the network status and change the proxy settings, those password prompts come up.

So basically, these annoying prompts are due to Mountain Lion's more stringent security policies. From what I've seen so far, getting around this won't be an easy matter. I'll keep looking.

asenchi commented 12 years ago

I suspect the same is true for Lion, since I have the issue there as well.

justinmayer commented 12 years ago

The same problem appeared for me after the upgrade to 10.8, and the incessant triplicate dialogs are cumbersome enough for me to disable Sidestep until a workaround has been found. Any progress in resolving this issue?

Dhutz commented 12 years ago

I just went to a Genius bar and called Apple care. Couldn't have been more useless.

sydneystufff commented 12 years ago

I am having the very same issue, as markjaquith above: "Screenshot of the issue in OS X 10.8 Mountain Lion".

My issue is when using my Telstra 4G USB modem.

When connecting, I need to authenticate 3 times - very annoying. If I select cancel, I can connect but the internet fails to be usable.

I have tried as above, nothing stops it...

hannesgassert commented 12 years ago

+1

hannesgassert commented 12 years ago

sudo chmod +s /usr/sbin/networksetup is not nice, not even as a workaround, but looks like it gets rid of the password prompts.

An actual solution problem is something like https://github.com/jerrykrinock/AuthorizedTasksInCocoa, which sounds painful indeed.

dgomes commented 12 years ago

My patch actually only fixes the ProxtSetter... but the same logic can be re-applied to the other classes.