Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aodhan-domhnaill/e2e8782327499bdf543a40a2e62ab37a to your computer and use it in GitHub Desktop.
Save aodhan-domhnaill/e2e8782327499bdf543a40a2e62ab37a to your computer and use it in GitHub Desktop.
socks.sh
#!/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