[squid-users] variable/macro, setting outgoing address
Nishant Sharma
codemarauder at gmail.com
Wed Nov 25 16:13:22 UTC 2026
On 25 November 2026 2:39:21 pm UTC, Matus UHLAR - fantomas <uhlar at fantomas.sk> wrote:
>Is it possible to have kind of variable/macro that would be defined in included (conf.d) file, to be used in config_file instead of local IP address?
>
Would it work if you keep all the config same on all squids except one that you include from a conf.d directory - that config just has:
tcp_outgoing_address x.x.x.x special_hosts
Define the
acl special_hosts src "/path/to/hosts_file"
in main config which is common across the squids and you just have to manage the value of x.x.x.x on each squid server (can be scripted / squid init script be modified to populate x.x.x.x on start-up)
If the developers are expecting to identify those hosts on a webserver and if SSL Bump is an option, you could add a custom header the way google allows to restrict G-Suite domains - X-Goog-Allowed-Domains (IIRC).
Regards,
Nishant
More information about the squid-users
mailing list