First, download and install chromium (because running a browser with SSL verification turned off is insecure -- only use this browser for accessing mesos).
Window 1:
ssh -D 9999 <hostname>
Window 2:
open -a /Applications/Chromium.app \
--args \
--proxy-server=socks5://127.0.0.1:9999 \
--host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE 127.0.0.1" \
--ignore-certificate-errors
IMPORTANT
This browser should only be used to access resources where disabling SSL verification is desired. This is not a secure way to just browse the net.
thanks