Robert Hardy wrote:
I've been fighting with stunnel, trying to get its transparent proxy support to work. No matter what I do, as soon as transparent = source support is turned on, tests with my mail client just time out.
If I turn transparent proxy support off it works but appears as if connections are from localhost, which is undesirable.
[cut]
2011.03.20 15:26:57 LOG6[23220:3073874832]: local_bind succeeded on the original port 2011.03.20 15:26:57 LOG6[23220:3073874832]: connect_blocking: connecting MY_EXTERNAL_IP:25 2011.03.20 15:26:57 LOG7[23220:3073874832]: connect_blocking: s_poll_wait MY_EXTERNAL_IP:25: waiting 60 seconds 2011.03.20 15:27:57 LOG3[23220:3073874832]: connect_blocking: s_poll_wait MY_EXTERNAL_IP:25: TIMEOUTconnect exceeded
Interesting. I can't see any obvious mistake in your configuration.
With these type of problems "tcpdump", "iptables -L -v", and "dmesg" are your friends.
Best regards, Michal Trojnara