<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" data-setdir="false">Eeehhhh, you were right.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">It was a configuration directive. Even though putting 'http_access deny all' didn't fix the issue, I was able to make the loop run by commenting out the following configuration directives:</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><div>acl authenticated proxy_auth REQUIRED<br>http_access allow authenticated</div><div><br></div><div dir="ltr" data-setdir="false">Completely didn't realize they were preventing Squid from passing input into the script.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Thanks Alex!</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Adrian<br></div></div><div id="yahoo_quoted_1360197551" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Saturday, September 26, 2020, 10:17:53 AM CDT, Alex Rousskov <rousskov@measurement-factory.com> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div dir="ltr">On 9/25/20 4:28 PM, Ajb B wrote:<div class="yqt3060622981" id="yqtfd94481"><br clear="none">> So I have a external_acl_type helper script and it's not reading input<br clear="none">> from Squid.<br clear="none">> <br clear="none">> Here it is:<br clear="none">> <br clear="none">> redis-cli HSET 'test' data 'SCRIPT DID RUN' >/dev/null<br clear="none">> <br clear="none">> while read -s line; do<br clear="none">>   redis-cli HSET 'test' data 'LOOP STARTED ' >/dev/null<br clear="none">>   printf '%s\n' 'OK'<br clear="none">> done<br clear="none">> <br clear="none">> And here are my Squid configuration directives:<br clear="none">> <br clear="none">> external_acl_type ex_parent_proxy %LOGIN /etc/squid/squid-access-control.sh<br clear="none">> acl parent_proxy_1 external ex_parent_proxy<br clear="none">> http_access allow parent_proxy_1<br clear="none">> <br clear="none">> When I test it out, the 'SCRIPT DID RUN' value does get set in the<br clear="none">> database. However, 'LOOP STARTED' does not. Any idea why?</div><br clear="none"><br clear="none">Perhaps access is granted (or denied) by an earlier http_access rule?<br clear="none"><br clear="none">If no test transactions are currently denied, then, to test the above<br clear="none">theory, you can add an "http_access deny all" rule immediately<br clear="none">before/above your "http_access allow parent_proxy_1" rule and see<br clear="none">whether Squid starts denying any test transactions. If it does not, the<br clear="none">theory is probably correct.<br clear="none"><br clear="none">Alex.<div class="yqt3060622981" id="yqtfd96959"><br clear="none"></div></div></div>
            </div>
        </div></div></body></html>