Avatar of Balbir Singh
Balbir Singh
Flag 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
SSH / Telnet SoftwareLinux NetworkingVPN

Avatar of undefined
Last Comment
noci

8/22/2022 - Mon
David Favor

Describe exactly what you're trying to accomplish.

This context will help shape answers.
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.
Scott Silva

Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER CERTIFIED SOLUTION
noci

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.