[squid-users] external IP from DB

Alexeyяр Gruzdov my.shellac at gmail.com
Tue Oct 17 11:48:20 UTC 2023


Hello guys!
Thank you for your support.

Could you explain me one more  things:

Case1:
1. I have a squid 6.2 and a lot of IP addresses on the server (assigned on
the virtual dummy interfaces)
2. I use the specific acl policy rules to pass the users with  different
external IP to the internet

For example this is acl like :
                "acl 1.2.3.4  localip 1.2.3.4"
 and then
                tcp_outgoing_address 1.2.3.4 1.2.3.4
That means if to connect to proxy on the  1.2.3.4  you will be passed to
the internet with source ip like 1.2.3.4

A Question:  Is the way to transfer these policy to DB ?  Something like
this:
        user connects to the 1.2.3.4 by proxy request, then squid looks to
DB (by ext_acl ) if there is ip 1.2.3.4 there and if it does  - that this
acl will be triggered and ip will be used as outgoing_ip for this
transaction.


Case2:
Also I use the random mechanism of squid to rotate the external IP of the
users. This works well. But I would to transfer this policy to the DB also.
May be somehow to use the ext_acl that will get the answer like an IP
address and use this IP in the tcp_ougoing address option.
Is there way to implement that?

Thank you

Alex Gru
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20231017/c6c88d13/attachment.htm>


More information about the squid-users mailing list