[squid-users] Make all IPv6 ips on system to be used as a proxy
Aaron Turner
synfinatic at gmail.com
Sat Sep 30 00:42:14 UTC 2017
Run multiple instances of squid, one per IP address? I'm not aware of
some magic config option to do what you want.
Seriously though, using a proxy to control your outgoing IP address is
weird. Use setsockopt(SO_BINDTODEVICE) in your code.
--
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 5:13 PM, xpro6000 <xpro6000 at gmail.com> wrote:
> 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 at gmail.com> 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 at gmail.com> 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 at lists.squid-cache.org
>> > http://lists.squid-cache.org/listinfo/squid-users
>> >
>
>
More information about the squid-users
mailing list