Proxy

On a Mac, setting a proxy is a bit annoying because you should open system preferences and navigate through the menus. To set up a proxy using SSH tunneling, you can do the following:

networksetup -setsocksfirewallproxy Wi-Fi localhost 10000 off; ssh -D 10000 -X yyyy@xxxxx
exit
networksetup -setsocksfirewallproxystate Wi-Fi off

You can still set up a proxy for Firefox browser.