a.k.a. what to do when your ISP starts blocking sites :(
Set the SOCKS proxy to local SSH tunnel
networksetup -setsocksfirewallproxy "Ethernet" localhost 8080
To clear the domain and port
networksetup -setsocksfirewallproxy "Ethernet" "" ""
To turn the SOCKS proxy off
networksetup -setsocksfirewallproxystate "Ethernet" off
Use this command to list the network interface
networksetup -listnetworkserviceorder