Well, ok, I admit I have not reviewed the stunnel code tonight but I can say that stunnel "probably" use "gethostbyname" to resolve hostnames; so the solution of your problem is more in your system DNS and default route & gateway configuration than in stunnel.
under windows check "route print", "ipconfig /all", under linux check "route" and "resolv.conf".
If you need load balancing, this can be done in your DNS server, for example.
Yours sincerely, Pierre
Quoting Dave Fazio dave_fazio@me.com:
Group,
Need help confirming Stunnel can be configured the following way:
I have a server that has 5 local IPs, mapping to 5 public IPs on the outside.
For example purposes, my local IPs are "A", "B", "C", "D", and "E"...
If I connect to a stunnel port configured to "C", will Stunnel route the request outbound on "C" or will it use "A" outbound?
The way I have it configured, it's using "A" apparently, no matter what local stunnel IP I bind my connection to.
And help will be greatly appreciated.
- Dave
Windows Server 2003 64-bit Stunnel as a Service
Example Config:
[Connection-A] accept = 10.5.12.57:9000 connect = outbound.example.server:145 TIMEOUTidle = 4
[Connection-B] accept = 10.5.12.58:9005 connect = outbound.example.server:145 TIMEOUTidle = 4 _______________________________________________ stunnel-users mailing list stunnel-users@mirt.net http://stunnel.mirt.net/mailman/listinfo/stunnel-users