Difference between HTTP(s) Reverse Proxy, TCP Proxy, Socks5 Proxy?
Here are my understandings about these and I see few gaps there; especially when and where to use
HTTP(s) proxy:
TCP Proxy
My question(s)
SOCKS5 Proxy
Socket Secure (SOCKS) is an Internet protocol that exchanges network packets between a client and server through a proxy server. SOCKS5 additionally provides authentication so only authorized users may access a server. Practically, a SOCKS server proxies TCP connections to an arbitrary IP address, and provides a means for UDP packets to be forwarded.
SOCKS performs at Layer 5 of the OSI model (the session layer, an intermediate layer between the presentation layer and the transport layer). SOCKS server accepts incoming client connection on TCP port 1080
My questions
If I only accept HTTP web traffic what are the use cases where we should use TCP proxy instead of HTTP Proxy
A TCP proxy terminates the incoming TCP socket, opens an outbound socket and moves data in between. It doesn't/can't change the data in between.
An HTTP proxy looks at the incoming HTTP request and uses an outbound, potentially different HTTP request to fulfill the request. It is aware of the the HTTP application level which a TCP proxy isn't.
Is this understanding connect? TCP clients can connect to a single socket on TCP proxy and TCP Proxy can open up multiple connections to the backend servers something similar load balancers
Yes.
Difference between TCP and SOCKS5 proxy
SOCKS5 is a general proxy protocol that can do more than a TCP proxy, including one-to-many connections, listening ports, and UDP.
In TCP/IP model is it a transport layer protocol
To me, SOCKS5 is an application layer protocol to arbitrate a transport protocol connection. Some argue that SOCKS5 is a session layer protocol in between transport and application layer - that holds some truth but the session layer is ill-defined in TCP/IP.
What are the use cases for proxying UDP connections
For instance, SOCKS5 can be used for private-to-public Internet access or for (insecure) public-to-private LAN access.
链接地址: http://www.djcxy.com/p/62652.html上一篇: Java Swing GUI的自动化测试