Create Socks Proxy Server with SSH & make it locally accessible

Hi everyone,

Can anyone advise how to setup socks proxy server which allows other devices to connect to it & forwards it through ssh?

Setup:
Lets say both phone & laptop connected to same wifi, with 192.168.0.2 & 192.168.0.3 respectively.

Then, I will create the dynamic port forwarding for SSH, lets say port 3000. Then, I need to create the proxy server which will listen to, lets say port 1080.

If I set proxy in my phone to be 192.168.0.3:1080 (proxy), it will redirect my data through SSH via SOCKS.

Is this possible? I have done this using Windows by ssh & ccproxy (socks bind), but I cannot find how to do this in linux.

Diagram:

Phone -> Proxy Server(laptop) -> SSH(laptop -> remote server)

Appreciate your help. Thanks all.

Forum kindly sponsored by