badvpn/tun2socks/CMakeLists.txt
Ben Schwartz ae4edfbf3e 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
2020-02-01 15:02:11 -08:00

16 lines
354 B
CMake

add_executable(badvpn-tun2socks
tun2socks.c
SocksUdpGwClient.c
)
target_link_libraries(badvpn-tun2socks system flow tuntap lwip socksclient udpgw_client socks_udp_client)
install(
TARGETS badvpn-tun2socks
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
install(
FILES badvpn-tun2socks.8
DESTINATION ${CMAKE_INSTALL_MANDIR}/man8
)