Total Pageviews

Friday, 27 May 2022

autotunnel

 Automatically connects your Mac to ssh SOCKS proxy when switching to SOCKS-enabled Network Location.

This is a script that will help set up your Mac OS X system to automatically connect to your SSH SOCKS proxy when you switch to a SOCKS-enabled Network Location.

When you are traveling/on insecure wifi networks, using this will help make sure your traffic is secure.

INSTALL

Run the install script

HOW IT WORKS

We add a LaunchAgent to run the autotunnel script to detect when your active Network Location profile has changed. If set to a SOCKS-enabled profile, it enables another LaunchAgent to start an autossh session. If changed to a non-SOCKS profile, we disable that LaunchAgent, stopping autossh.

TROUBLESHOOTING

In macOS Catalina (and possibly earlier versions) bash needs to be given Full Disk Access. This can be done by going to System Preferences > Security & Privacy > Privacy > Full Disk Access and adding /bin/bash.

SEE ALSO

from https://github.com/lhl/autotunnel

 

No comments:

Post a Comment