<html><head></head><body><div class="ydpf387dc23yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;" dir="ltr" data-setdir="false"><div dir="ltr" data-setdir="false">Hi Daniele.</div><div dir="ltr" data-setdir="false">I haven't looked at exact scenario.  Have you considered stunnel+HAproxy?</div><div dir="ltr" data-setdir="false"><br></div></div><div id="ydp789772b8yahoo_quoted_9843366444" class="ydp789772b8yahoo_quoted"><div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;"><div><br><div dir="ltr">Dear group,<br></div><div dir="ltr">I've to configure a couple of tunneled connections (call them TC1 and<br></div><div dir="ltr">TC2), client side, on a linux system.<br></div><div dir="ltr">The target of both such connections is the same (destination ip and port<br></div><div dir="ltr">are the same, call it DST).<br></div><div dir="ltr">At source side (my server) I have a two IP addresses (call them IP1 and<br></div><div dir="ltr">IP2) assigned and currently working to its unique NIC. I normally use<br></div><div dir="ltr">iptables SNAT to split the traffic between IP1 and IP2 depending on<br></div><div dir="ltr">destination addresses but in this case I've to distinguish it at<br></div><div dir="ltr">application level (TC1 and TC2).<br></div><div dir="ltr">I'd like to get TC1 to set the outgoing traffic with source address IP1 and<br></div><div dir="ltr">TC2 to set outgoing traffic with source address IP2.<br></div><div dir="ltr"><br></div><div dir="ltr">    Tunnel           Tunnel<br></div><div dir="ltr">    Client           Server<br></div><div dir="ltr"><br></div><div dir="ltr">TC1:  IP1    --\<br></div><div dir="ltr">                >-->   DST<br></div><div dir="ltr">TC2:  IP2    --/<br></div><div dir="ltr"><br></div><div dir="ltr">I'm thinking to set one entry in stunnel.conf for each TC1 and TC2 and use<br></div><div dir="ltr">*transparent* = source  clause to set the source address but it seems my<br></div><div dir="ltr">case is not so common and I didn't find documentation.<br></div><div dir="ltr">Please could you suggest a solution.<br></div><div dir="ltr"><br></div><div dir="ltr">Thanks<br></div><br></div>
            </div>
        </div></body></html>