简介
UDPTunnel is a small program which can tunnel UDP packets bi-directionally over a TCP connection. Its primary purpose (and original motivation) is to allow multi-media conferences to traverse a firewall which allows only outgoing TCP connections.
安装
Source code for Unix is available here.
To build, unpack the tar file, then type:
1 | ./configure |
The configure script is a standard GNU autoconf-generated configure script; the usual options for it apply. The only option which should be necessary for normal use is –prefix=/path/to/install, which allows you to specify where make install will put the installed binary. Type ./configure –help for a full list of supported options.
UDPTunnel should compile on any Posix-compliant platform supporting sockets. It has been tested on Solaris 2.6, Linux 2.2.5 (RedHat 5.2), and FreeBSD 3.1. Information about success or failure on other platforms is welcomed.
使用
UDPTunnel can be run in two modes: a client mode and a server mode. The client mode initiates the TCP connection before relaying UDP; the server waits for an incoming connection before doing so. After the TCP connection is established, the behavior of the two modes is identical. If you are using UDPTunnel to traverse a firewall as discussed above, the client would be run inside the firewall, and the server would be run outside it.
1 | 启动服务端 |