<div dir="ltr">Dear group,<div>I've to configure a couple of tunneled connections (call them TC1 and TC2), client side, on a linux system.</div><div>The target of both such connections is the same (destination ip and port are the same, call it DST).</div><div>At source side (my server) I have a two IP addresses (call them IP1 and IP2) assigned and currently working to its unique NIC. I normally use iptables SNAT to split the traffic between IP1 and IP2 depending on destination addresses but in this case I've to distinguish it at application level (TC1 and TC2).</div><div>I'd like to get TC1 to set the outgoing traffic with source address IP1 and TC2 to set outgoing traffic with source address IP2. </div><div><br></div><div><font face="monospace">    Tunnel           Tunnel</font></div><div><font face="monospace">    Client           Server</font></div><div><br></div><div><font face="monospace">TC1:  IP1    --\</font></div><div><font face="monospace">                >-->   DST </font></div><div><font face="monospace">TC2:  IP2    --/</font></div><div><font face="monospace"><br></font></div><div><font face="arial, sans-serif">I'm thinking to set one entry in stunnel.conf for each TC1 and TC2 and use </font><b style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium">transparent</b><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"> = source  </span><span style="color:rgb(0,0,0)"><font face="arial, sans-serif" style="">clause to set the source address but it seems my case is not so common and I didn't find documentation. </font></span></div><div><font color="#000000" face="arial, sans-serif">Please could you suggest a solution.</font></div><div><span style="color:rgb(0,0,0)"><font face="arial, sans-serif" style=""><br></font></span></div><div><span style="color:rgb(0,0,0)"><font face="arial, sans-serif" style="">Thanks</font></span></div><div><span style="color:rgb(0,0,0)"><font face="arial, sans-serif" style=""><br></font></span></div></div>