Skip to content

lhl/autotunnel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •