Networking – Let your Android device browse the Internet using OSX as a proxy server

My OSX machine uses SSH on a server acting as a proxy server.

ssh -D "*: 12345" user name @ ip_address

So, all I need to do is set in my Firefox OSX browser: use the SOCKS 5 proxy and all my browsing must use the proxy server and everything works fine.

How to make my Android device use my OSX computer (already connected to the proxy server) as a proxy server? Which means that when I surf the Internet on my Android, it will be:

Android <-> OSX machine <-> Proxy server <-> Destination

And also, what settings should I set in my Android WiFi proxy configuration?