I did this with the local dns. Unbound for example you can set specific items 
to resolve only ipv4, if Squid points to a dns that provides the resolves for 
it, it can be controlled on that side, again requires NAT a firewall with ACLs 
etc 
Sent from my iPhone

> On Nov 21, 2024, at 05:52, Ralf Hildebrandt <ralf.hildebra...@charite.de> 
> wrote:
> 
> 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.hildebra...@charite.de
> https://www.charite.de
> _______________________________________________
> squid-users mailing list
> squid-users@lists.squid-cache.org
> https://lists.squid-cache.org/listinfo/squid-users
_______________________________________________
squid-users mailing list
squid-users@lists.squid-cache.org
https://lists.squid-cache.org/listinfo/squid-users

Reply via email to