Created
February 13, 2018 04:46
-
-
Save aodhan-domhnaill/e2e8782327499bdf543a40a2e62ab37a to your computer and use it in GitHub Desktop.
socks.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo networksetup -setsocksfirewallproxy "Wi-Fi" localhost 9990 | |
echo "SOCKS ON" | |
ssh -N acsweb | |
sudo networksetup -setsocksfirewallproxy "Wi-Fi" "" "" | |
sudo networksetup -setsocksfirewallproxystate "Wi-Fi" off | |
echo "SOCKS OFF" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment