GNU HTTP Tunnel (http://www.nocrew.org/software/httptunnel.html)
Собираю: ./configure && make
Потом пробую запускать hts (сервер) два варианта:sh-3.1# ./hts -help
Usage: ./hts [OPTION]... [PORT]
Listen for incoming httptunnel connections at PORT (default port is 8888).
When a connection is made, I/O is redirected to the destination specified
by the --device or --forward-port switch.
-c, --content-length BYTES use HTTP PUT requests of BYTES size
(k, M, and G postfixes recognized)
-d, --device DEVICE use DEVICE for input and output
-F, --forward-port HOST:PORT connect to PORT at HOST and use it for
input and output
-h, --help display this help and exit
-k, --keep-alive SECONDS send keepalive bytes every SECONDS seconds
(default is 5)
-M, --max-connection-age SEC maximum time a connection will stay
open is SEC seconds (default is 300)
-S, --strict-content-length always write Content-Length bytes in requests
-V, --version output version information and exit
-p, --pid-file LOCATION write a PID file to LOCATION
Report bugs to bug-httptunnel@gnu.org.
Запускаю (этот вариант работает)
sh-3.1# ./hts --forward-port localhost:22 80
sh-3.1# netstat -a | grep LISTEN
tcp 0 0 *:http *:* LISTEN
sh-3.1# ps aux | grep hts
root 31863 0.0 0.1 1536 380 ? Ss 16:47 0:00 ./hts --forward-port localhost:22 80
sh-3.1# kill -9 31863
А вот этот - нет :(
sh-3.1# ./hts --device eth1 80
sh-3.1# netstat -a | grep LISTEN
sh-3.1# ps aux | grep hts
sh-3.1#