https://tech.iprock.com/archives/9551
Enabling a SOCKS proxy via SSH tunnel in Ubuntu or Mac OS X at startup