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?
On Fri, Sep 29, 2017 at 6:37 PM, Aaron Turner <synfinatic@xxxxxxxxx> wrote:
If you don't need a proxy server for other reasons, there are better
ways. Example, per-process routing:
http://www.evolware.org/?p=369
Or if you have control over the source code of the software,
setsockopt() will do it for you as well.
--
Aaron Turner
https://synfin.net/ Twitter: @synfinatic
My father once told me that respect for the truth comes close to being
the basis for all morality. "Something cannot emerge from nothing,"
he said. This is profound thinking if you understand how unstable
"the truth" can be. -- Frank Herbert, Dune
On Fri, Sep 29, 2017 at 2:01 PM, xpro6000 <xpro6000@xxxxxxxxx> wrote:
> I have multiple IPs on my Linux system and I need one of my programs to be
> able to choose which IP to use. One way to achieve this is to use a proxy
> server. But with Squid's default config file, the IP I connect to, is not
> the IP used for the outgoing connection.
>
> Is there anything I can do to enable Squid to use the same incoming IP for
> the outgoing IP?
>
> _______________________________________________
> squid-users mailing list
> squid-users@lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users