[squid-users] Can I force certain destinations to ipv4?

Ralf Hildebrandt Ralf.Hildebrandt at charite.de
Thu Nov 21 13:44:23 UTC 2024


Hi!

Can I force certain destinations to be reached using ipv4 only?

I found this:
https://superuser.com/questions/994728/force-squid-to-connect-to-sites-over-ipv4-rather-than-ipv6

and implemented:

acl apiendpoint dstdomain api.endpoint.example
tcp_outgoing_address 193.175.73.216 apiendpoint

193.175.73.216 being the IP of my squid's extern a interface.
But alas, It doesn't work. Sometimes an ipv4, sometimes an ipv6
address is being used...

Using:
======

# squid --version
Squid Cache: Version 6.12-VCS

more precisely:
squid-6.12-20241031-r3b53538eae

-- 
Ralf Hildebrandt
Charité - Universitätsmedizin Berlin
Geschäftsbereich IT | Abteilung Netz | Netzwerk-Administration
Invalidenstraße 120/121 | D-10115 Berlin

Tel. +49 30 450 570 155
ralf.hildebrandt at charite.de
https://www.charite.de


More information about the squid-users mailing list