<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:"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;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>What OS?</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986">Mail</a> for Windows 10</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:0xff1f@gmail.com">Ahmad Alzaeem</a><br><b>Sent: </b>Saturday, May 23, 2020 11:40 PM<br><b>To: </b><a href="mailto:squid-users@lists.squid-cache.org">Squid Users</a><br><b>Subject: </b>Re: [squid-users] Squid marking QOS and matching marks with linux iptables problem !</p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hello Folks , any one in the mailing list can help me on the case ?</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>> On May 21, 2020, at 3:03 AM, Ahmad Alzaeem <0xff1f@gmail.com> wrote:</p><p class=MsoNormal>> </p><p class=MsoNormal>> Hello Folks ,</p><p class=MsoNormal>> </p><p class=MsoNormal>> Im trying to mark outgoing squid request based on Mark linux matching .</p><p class=MsoNormal>> </p><p class=MsoNormal>> I added to squid conf :</p><p class=MsoNormal>> </p><p class=MsoNormal>> qos_flows mark local-hit=0xd7</p><p class=MsoNormal>> qos_flows mark local-miss=0xd7</p><p class=MsoNormal>> </p><p class=MsoNormal>> -A OUTPUT -m mark --mark 0xd7 -j ACCEPT</p><p class=MsoNormal>> </p><p class=MsoNormal>> But on iptables there is no match with the mark 0xd7 </p><p class=MsoNormal>> </p><p class=MsoNormal>> </p><p class=MsoNormal>> Im testing marking with squid and matching with iptables but its not matching , always statistics = 0 on linux iptables That mean its not matched .</p><p class=MsoNormal>> </p><p class=MsoNormal>> Squid version is 4.8</p><p class=MsoNormal>> Also squid was complied with '--enable-zph-qos’ flag </p><p class=MsoNormal>> </p><p class=MsoNormal>> So not sure if I need specific config for squid .</p><p class=MsoNormal>> </p><p class=MsoNormal>> Following :</p><p class=MsoNormal>> </p><p class=MsoNormal>> https://wiki.squid-cache.org/Features/QualityOfService</p><p class=MsoNormal>> </p><p class=MsoNormal>> Based on it we need kernel patch for TOS , but I dont need TOS , I just need Layer 3 DSP , Linux mark rule based .</p><p class=MsoNormal>> </p><p class=MsoNormal>> </p><p class=MsoNormal>> i even tried to match traffic by mark and connmark and both did not help .</p><p class=MsoNormal>> </p><p class=MsoNormal>> -A OUTPUT -m mark --mark 0xd7 -j ACCEPT</p><p class=MsoNormal>> -A OUTPUT -m connmark --mark 0xd4 -j ACCEPT</p><p class=MsoNormal>> </p><p class=MsoNormal>> </p><p class=MsoNormal>> So both rules above was not able to pickup squid marking .</p><p class=MsoNormal>> </p><p class=MsoNormal>> Any helping Team on this case ?</p><p class=MsoNormal>> </p><p class=MsoNormal>> </p><p class=MsoNormal>> Thank you</p><p class=MsoNormal><o:p> </o:p></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>