UDPTunnel
UDPTunnel tunnels UDP packets bi-directionally over a TCP connection. It enables multi-media conferences to traverse firewalls allowing only outgoing TCP connections and supports security tests in networks.
Description
UDPTunnel is a small program designed to tunnel UDP packets over TCP connections in both directions. Its primary purpose is to facilitate multi-media conferences through firewalls that permit only outgoing TCP connections, bypassing restrictions on UDP traffic.
Additionally, UDPTunnel serves security testing purposes within networks, allowing penetration testers and security researchers to simulate or transport UDP-based traffic over TCP where direct UDP is blocked.
The tool operates in server or client modes, with optional RTP support for multimedia applications requiring even port pairs.
How It Works
UDPTunnel establishes a TCP connection to encapsulate and forward UDP packets bidirectionally. In server mode (-s), it listens on a specified TCP port for incoming connections and forwards traffic to a UDP address/port. In client mode (-c), it connects to a remote TCP address/port and tunnels to the local UDP endpoint. RTP mode (-r) uses consecutive even ports (N and N+1) for both UDP and TCP to support multimedia streams. TTL can be specified for UDP packets.
Installation
sudo apt install udptunnelFlags
Examples
udptunnel -s TCP-port UDP-addr/UDP-portudptunnel -s TCP-port -r UDP-addr/UDP-portudptunnel -s TCP-port -v UDP-addr/UDP-portudptunnel -s TCP-port UDP-addr/UDP-port/ttludptunnel -c TCP-addr/TCP-port UDP-addr/UDP-portudptunnel -c TCP-addr/TCP-port -r UDP-addr/UDP-portudptunnel -c TCP-addr -v UDP-addr/UDP-port