]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connection: Upstream SOCKS4 proxy support
authorAlexander Liu <alec@atplatform.net>
Wed, 22 May 2019 11:44:48 +0000 (19:44 +0800)
committerWilly Tarreau <w@1wt.eu>
Fri, 31 May 2019 15:24:06 +0000 (17:24 +0200)
commit2a54bb74cd7eaec573941a74b165d3586a8ea528
treeef4e4c9493e514292c9102c479ac938b6af71c75
parentcfbb3e6560c8177752a6a29ca5736f0678784818
MEDIUM: connection: Upstream SOCKS4 proxy support

Have "socks4" and "check-via-socks4" server keyword added.
Implement handshake with SOCKS4 proxy server for tcp stream connection.
See issue #82.

I have the "SOCKS: A protocol for TCP proxy across firewalls" doc found
at "https://www.openssh.com/txt/socks4.protocol". Please reference to it.

[wt: for now connecting to the SOCKS4 proxy over unix sockets is not
 supported, and mixing IPv4/IPv6 is discouraged; indeed, the control
 layer is unique for a connection and will be used both for connecting
 and for target address manipulation. As such it may for example report
 incorrect destination addresses in logs if the proxy is reached over
 IPv6]
12 files changed:
doc/SOCKS4.protocol.txt [new file with mode: 0644]
doc/configuration.txt
examples/socks4.cfg [new file with mode: 0644]
include/proto/connection.h
include/types/checks.h
include/types/connection.h
include/types/server.h
src/backend.c
src/checks.c
src/connection.c
src/proto_tcp.c
src/server.c