Overview of udp2raw-tunnel
unifiedudp2raw-tunnel is a tool that uses raw sockets to wrap UDP packets with TCP or ICMP headers. This allows users to bypass UDP blocking or QoS (Quality of Service) restrictions imposed by ISPs. It is particularly useful for stabilizing connections when using tools like kcptun or finalspeed in environments where UDP traffic is throttled or blocked.
Key features include:
- Traffic Masking: Wraps UDP in TCP or ICMP headers to bypass restrictions.
- TCP Simulation: Simulates the TCP 3-way handshake and various TCP options (MSS, sackOk, TS, etc.) to make traffic look like standard Linux TCP traffic.
- Connection Recovery: Supports heartbeats and automatic reconnection. It can recover a session even if the underlying network connection drops or the IP changes (e.g., after re-dialing), keeping the upper-layer application connection alive.
- Security: Provides encryption (AES128CBC or XOR) and data integrity verification (HMAC-SHA1 or others), along with anti-replay protection.
- Multiplexing: Supports multiple connections on the client side and multiple clients on the server side.