Link to home
Create AccountLog in
Avatar of Balbir Singh
Balbir SinghFlag for United States of America

asked on

What is SOCKS and can we use SSH port forwarding to achieve it?

I have been playing with SSH local and remote port forwarding and have a little understanding of it. I am wondering if it is same as SOCKS protocol and how using SSH dynamic port we can achieve it.

Also, I am wondering what is the use case of SOCKS when we have VPN and port forwarding.

Thanks in Advance
Avatar of David Favor
David Favor
Flag of United States of America image

Describe exactly what you're trying to accomplish.

This context will help shape answers.
Avatar of noci
noci

ssh port forwarding is protocol agnostic.  When ssh receives a connection request, it will pass this on to the system mentioned the linked settings.
And it will forward all data...  There is no communication about the connection between program & SSH.

Socks is a protocol where your program talks to the proxy to request several things on it's behalf.  So there is active communication between the proxy & the program about the connections.

This better explains Socks proxies and where they belong.
https://surfshark.com/learn/socks-proxy

Socks does NOT encrypt, it can authenticate.
ASKER CERTIFIED SOLUTION
Avatar of noci
noci

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account