[tproxy] foreign-tcp-connect times out...

Ben Pfountz bpfountz@ben.pfountz.com
Tue, 26 Apr 2005 15:45:49 -0400


I am trying to write a patch for stunnel to support tproxy, but I am
having difficulty getting tproxy configured correctly.  I compiled and
run the foreign-tcp-connect test program, but after waiting a minute or
two, I get the error message:

'connect: connection timed out'.

I have the following IP addresses defined in the program:

/* an IP address bound to one of the local interfaces */
#define LOCAL_IP ""
/* the IP address to use as source address */
#define FOREIGN_IP ""
/* IP address to connect to */
#define DEST_IP  ""

While the program is running, my netstat looks like this:

Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address
tcp        0      0
tcp        0      0
tcp        0      1
tcp        0      0

I am using the Linux 2.4.29 kernel, and patch version 
cttproxy-2.4.29-2.0.0.tar.gz.  The kernel and iptables have both been 
patched and installed.

I'm not sure what the problem is, does anyone have any advice?

Thanks for your time.