<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:299726339;
mso-list-type:hybrid;
mso-list-template-ids:1188954660 -1 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Calibri",sans-serif;
mso-fareast-font-family:"Times New Roman";}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Just to clear out the doubts about the subject.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The decision on what IP version to use for outgoing connections is based on:</p><ul style='margin-top:0in' type=disc><li class=MsoListParagraph style='margin-left:0in;mso-list:l0 level1 lfo1'>DNS A and AAAA records</li><li class=MsoListParagraph style='margin-left:0in;mso-list:l0 level1 lfo1'>Reachability: Ping? Icmp? Happy Eyeballs?</li></ul><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am not sure what was the situation but,<br>some tests were done to run an IPv6 only network with IPv6 to IPv4 Gateways.</p><p class=MsoNormal>However I am not sure what happen with these trials.</p><p class=MsoNormal>As far as I remember the decision was to run full Dual Stack networking for a period of time until IPv4 will “die”.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The domain webpage has a notification:</p><p class=MsoNormal><b>“Oct 1, 2020 the A record for api6.ipify.org will be removed to make the subdomain only for IPv6 requests. For universal access please use api64.ipify.org.”</b></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>So.. there is time until you can test with this specific domain.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Eliezer</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>----<o:p></o:p></p><p class=MsoNormal>Eliezer Croitoru<o:p></o:p></p><p class=MsoNormal>Tech Support<o:p></o:p></p><p class=MsoNormal>Mobile: +972-5-28704261<o:p></o:p></p><p class=MsoNormal>Email: ngtech1ltd@gmail.com<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='border:none;padding:0in'><b>From: </b><a href="mailto:squid3@treenet.co.nz">Amos Jeffries</a><br><b>Sent: </b>Tuesday, June 23, 2020 10:28 AM<br><b>To: </b><a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a><br><b>Subject: </b>Re: [squid-users] Squid is using ipv4 for non-ssl connections</p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>On 23/06/20 9:14 am, Joshua Bazgrim wrote:</p><p class=MsoNormal>> Hi there,</p><p class=MsoNormal>> </p><p class=MsoNormal>> I'm still fairly new to squid. Hoping someone can help me out.</p><p class=MsoNormal>> I have a tcp_outgoing_address for ipv6 that routes to nftables to give</p><p class=MsoNormal>> me a rotating ipv6 address.</p><p class=MsoNormal>> </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hint: you cannot talk to IPv4 servers using IPv6 address.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>> However, on non-ssl calls, it uses ipv4 instead.</p><p class=MsoNormal>> Is there a way to have squid use ipv6 for non-ssl calls?</p><p class=MsoNormal>> </p><p class=MsoNormal>> curl -L -x PROXYIP:3128 http://api6.ipify.org # This returns an ipv4</p><p class=MsoNormal>> address through squid</p><p class=MsoNormal>> curl -L -x PROXYIP:3128 https://api6.ipify.org # This returns an ipv6</p><p class=MsoNormal>> address through squid</p><p class=MsoNormal>> </p><p class=MsoNormal>> If I don't use the squid proxy, it properly returns an ipv6 for non-ssl</p><p class=MsoNormal>> connections.</p><p class=MsoNormal>> </p><p class=MsoNormal>> squid 4.9</p><p class=MsoNormal>> The squid.conf file is default besides tcp_outgoing_address</p><p class=MsoNormal>> </p><p class=MsoNormal>> Any ideas?</p><p class=MsoNormal>> </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Tried investigating yet?</p><p class=MsoNormal><https://wiki.squid-cache.org/KnowledgeBase/DebugSections></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The domain you mention has a mix of both IPv6 and IPv4 addresses. Squid</p><p class=MsoNormal>should be using whichever it can connect to. There is a small bias</p><p class=MsoNormal>towards IPv6, but no guarantee.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Amos</p><p class=MsoNormal>_______________________________________________</p><p class=MsoNormal>squid-users mailing list</p><p class=MsoNormal>squid-users@lists.squid-cache.org</p><p class=MsoNormal>http://lists.squid-cache.org/listinfo/squid-users</p><p class=MsoNormal><o:p> </o:p></p></div></body></html>