2009年12月22日 星期二

httptunnel usage

Q. How to configure the httptunnel as a debug mode package
A.
# ./configure --enable-debug --prefix=/usr/local/httptunnel

Afterwards, you will find the DEBUG config turn on in the config.h
# cat config.h | grep DEBUG
#define DEBUG_MODE 1

// Then you can compile the httptunnel package as usual to produce a debug-version program
# make clean all


// Test Cases as following examples
// Non-Proxy example
// In server side, listen on port 80, telnetd (port 23) is the real service
# ./hts -F localhost:23 -D 4 80

// In client side, listen on the port 23 (for user fully transparency), redirect to the server port 80 using HTTP POST as the intermediate protocol
# ./htc -F 23 -D 4 Server-IP:80

沒有留言: