<div dir="ltr">The program is multithreaded so the process based routing won't work. There is no simple way to make Squid use the connecting IP for the outgoing IP?</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 29, 2017 at 6:37 PM, Aaron Turner <span dir="ltr"><<a href="mailto:synfinatic@gmail.com" target="_blank">synfinatic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you don't need a proxy server for other reasons, there are better<br>
ways.  Example, per-process routing:<br>
<br>
<a href="http://www.evolware.org/?p=369" rel="noreferrer" target="_blank">http://www.evolware.org/?p=369</a><br>
<br>
Or if you have control over the source code of the software,<br>
setsockopt() will do it for you as well.<br>
--<br>
Aaron Turner<br>
<a href="https://synfin.net/" rel="noreferrer" target="_blank">https://synfin.net/</a>         Twitter: @synfinatic<br>
My father once told me that respect for the truth comes close to being<br>
the basis for all morality.  "Something cannot emerge from nothing,"<br>
he said.  This is profound thinking if you understand how unstable<br>
"the truth" can be.  -- Frank Herbert, Dune<br>
<br>
<br>
On Fri, Sep 29, 2017 at 2:01 PM, xpro6000 <<a href="mailto:xpro6000@gmail.com">xpro6000@gmail.com</a>> wrote:<br>
> I have multiple IPs on my Linux system and I need one of my programs to be<br>
> able to choose which IP to use. One way to achieve this is to use a proxy<br>
> server. But with Squid's default config file, the IP I connect to, is not<br>
> the IP used for the outgoing connection.<br>
><br>
> Is there anything I can do to enable Squid to use the same incoming IP for<br>
> the outgoing IP?<br>
><br>
> ______________________________<wbr>_________________<br>
> squid-users mailing list<br>
> <a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.<wbr>org</a><br>
> <a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/<wbr>listinfo/squid-users</a><br>
><br>
</blockquote></div><br></div>