Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ambrop72/badvpn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Schwartz <bemasc@google.com>2018-12-14 18:35:40 +0300
committerAmbroz Bizjak <abizjak.pro@gmail.com>2020-02-02 02:02:11 +0300
commitae4edfbf3e047926bb329c8603e83aa30425cc0c (patch)
treec2fbd651ca49055015e05f7a425e1662b1cc42d0 /CMakeLists.txt
parent4c1c128a66ce0017d33983c53f3678996c86c604 (diff)
Implement optional support for SOCKS5-UDP
This change adds a new option, --socks5-udp. If this option is present, and no UDP gateway is specified, UDP packets will no longer be dropped. Instead, the client will use the SOCKS5 UDP ASSOCIATE command to route UDP packets through the proxy server. This implementation is intended for use with any UDP data, and it includes an optimization for packets containing DNS queries. However, this implementation is currently limited to localhost SOCKS5 servers. SOCKS5-UDP does not perform well over actual network links, as it requires several roundtrips to the server and is not compatible with NAT. This implementation is currently in use in a fork of tun2socks used by Outline (https://getoutline.org) and Intra (https://getintra.org). Fixes https://github.com/ambrop72/badvpn/issues/56
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 02c6ddc..6751e13 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -332,6 +332,7 @@ endif ()
if (BUILD_TUN2SOCKS)
add_subdirectory(socksclient)
add_subdirectory(udpgw_client)
+ add_subdirectory(socks_udp_client)
add_subdirectory(lwip)
endif ()