PfSense 2.2 : squid3 3.4.10_2 pkg 0.2.6 Patch captive portal Crash



  • squid 3.4.10_2 is crashes when activated

    The check_cp helpers are crashing too rapidly, need help!



  • I have the same here. As you said, it is related to Captive Portal Authentication. If you disable it, Squid will start.
    I am trying to solve this issue. I think it is related to external acl setup.
    This link could be useful: https://forum.pfsense.org/index.php?topic=87648.15

    Marcelo



  • It's related to pbi on pfsense 2.2 the scripts looks for php libs but when it's called via squid, it fails to load/find.



  • I'm having the same problem with a fresh 2.2 install. Squid 3 with Captive Portal auth.

    Here's the bit from cache.log:

    2015/03/04 21:05:11 kid1| Starting Squid Cache version 3.4.10 for amd64-portbld-freebsd10.1...
    2015/03/04 21:05:11 kid1| WARNING: check_cp #Hlpr0 exited
    FATAL: The check_cp helpers are crashing too rapidly, need help!
    
    Squid Cache (Version 3.4.10): Terminated abnormally.
    CPU Usage: 0.074 seconds = 0.051 user + 0.022 sys
    Maximum Resident Size: 133072 KB
    Page faults with physical i/o: 0
    

    Paul



  • please could you tell me the solution of this problem if you solve it



  • I haven't found a way to solve the problem  :(
    All I did was disable authentication in Squid.



  • Unfortunately, the same problem persists in the new version (2.2.1).



  • @Mehmet:

    Unfortunately, the same problem persists in the new version (2.2.1).

    I think it will only work again without pbi(manual freebsd pkg install on 2.2) or on pfsense 2.3.



  • I'm having the same problem, please could you tell me the solution of this problem if you solve it.

    PfSense 2.2.1
    Squid 3.4.10_2 pkg 0.2.7
    captive Portal Auth



  • Unfortunately, the same problem persists in the new version (2.2.2).  I'm still waiting for correction  :-\



  • Found a fix here is what I did

    open a few terminals by sshing to pfsense box and goto command line

    term 1 - view cache log to see what is happening
    tail -f /var/squid/logs/cache.log

    term 2 - run the cmds to link files where squid can access them

    ln -s /usr/local/bin/php /usr/pbi/squid-amd64/local/bin/php
    ln -s /usr/local/lib/php /usr/pbi/squid-amd64/local/lib/php
    ln -s /usr/local/etc/php.ini /usr/pbi/squid-amd64/local/etc/php.ini
    ln -s /usr/local/lib/libsqlite3.so.0 /usr/pbi/squid-amd64/local/lib/

    Note removed the extra extensions from php.ini leaving only the sqlite3.so, so the cache log would not have so many warnings
    vi /usr/pbi/squid-amd64/local/etc/php.ini

    ; Extensions

    extension=sqlite3.so
    –--------------

    term 3 - run squid in debug mode, if it works, run squid -k shutdown and start from the gui
    squid -d 9



  • @anutma:

    Found a fix here is what I did

    open a few terminals by sshing to pfsense box and goto command line

    term 1 - view cache log to see what is happening
    tail -f /var/squid/logs/cache.log

    term 2 - run the cmds to link files where squid can access them

    ln -s /usr/local/bin/php /usr/pbi/squid-amd64/local/bin/php
    ln -s /usr/local/lib/php /usr/pbi/squid-amd64/local/lib/php
    ln -s /usr/local/etc/php.ini /usr/pbi/squid-amd64/local/etc/php.ini
    ln -s /usr/local/lib/libsqlite3.so.0 /usr/pbi/squid-amd64/local/lib/

    Note removed the extra extensions from php.ini leaving only the sqlite3.so, so the cache log would not have so many warnings
    vi /usr/pbi/squid-amd64/local/etc/php.ini

    ; Extensions

    extension=sqlite3.so
    –--------------

    term 3 - run squid in debug mode, if it works, run squid -k shutdown and start from the gui
    squid -d 9

    Hi anutma,

    I made them. The following errors output

    2015/05/09 16:52:58 kid1| Starting Squid Cache version 3.4.10 for amd64-portbld-freebsd10.1…
    2015/05/09 16:52:58 kid1| ipcCreate: /usr/pbi/squid-amd64/bin/check_ip.php: (2) No such file or directory
    2015/05/09 16:52:58 kid1| ipcCreate: /usr/pbi/squid-amd64/bin/check_ip.php: (2) No such file or directory
    2015/05/09 16:52:58 kid1| ipcCreate: /usr/pbi/squid-amd64/bin/check_ip.php: (2) No such file or directory
    2015/05/09 16:52:58 kid1| ipcCreate: /usr/pbi/squid-amd64/bin/check_ip.php: (2) No such file or directory
    2015/05/09 16:52:58 kid1| ipcCreate: /usr/pbi/squid-amd64/bin/check_ip.php: (2) No such file or directory
    2015/05/09 16:52:58 kid1| WARNING: check_cp #Hlpr0 exited
    2015/05/09 16:52:58| pinger: Initialising ICMP pinger ...
    FATAL: The check_cp helpers are crashing too rapidly, need help!

    Squid Cache (Version 3.4.10): Terminated abnormally.

    There are these files :

    ls -l /usr/pbi/squid-amd64/bin/check_ip.php
    lrwxr-xr-x  1 root  operator  27 May  8 22:10 /usr/pbi/squid-amd64/bin/check_ip.php -> /usr/local/bin/check_ip.php



  • @Mehmet:

    @anutma:

    Found a fix here is what I did

    open a few terminals by sshing to pfsense box and goto command line

    term 1 - view cache log to see what is happening
    tail -f /var/squid/logs/cache.log

    term 2 - run the cmds to link files where squid can access them

    ln -s /usr/local/bin/php /usr/pbi/squid-amd64/local/bin/php
    ln -s /usr/local/lib/php /usr/pbi/squid-amd64/local/lib/php
    ln -s /usr/local/etc/php.ini /usr/pbi/squid-amd64/local/etc/php.ini
    ln -s /usr/local/lib/libsqlite3.so.0 /usr/pbi/squid-amd64/local/lib/

    Note removed the extra extensions from php.ini leaving only the sqlite3.so, so the cache log would not have so many warnings
    vi /usr/pbi/squid-amd64/local/etc/php.ini

    ; Extensions

    extension=sqlite3.so
    –--------------

    term 3 - run squid in debug mode, if it works, run squid -k shutdown and start from the gui
    squid -d 9

    Hi anutma,

    I made them. The following errors output

    2015/05/09 16:52:58 kid1| Starting Squid Cache version 3.4.10 for amd64-portbld-freebsd10.1…
    2015/05/09 16:52:58 kid1| ipcCreate: /usr/pbi/squid-amd64/bin/check_ip.php: (2) No such file or directory
    2015/05/09 16:52:58 kid1| ipcCreate: /usr/pbi/squid-amd64/bin/check_ip.php: (2) No such file or directory
    2015/05/09 16:52:58 kid1| ipcCreate: /usr/pbi/squid-amd64/bin/check_ip.php: (2) No such file or directory
    2015/05/09 16:52:58 kid1| ipcCreate: /usr/pbi/squid-amd64/bin/check_ip.php: (2) No such file or directory
    2015/05/09 16:52:58 kid1| ipcCreate: /usr/pbi/squid-amd64/bin/check_ip.php: (2) No such file or directory
    2015/05/09 16:52:58 kid1| WARNING: check_cp #Hlpr0 exited
    2015/05/09 16:52:58| pinger: Initialising ICMP pinger ...
    FATAL: The check_cp helpers are crashing too rapidly, need help!

    Squid Cache (Version 3.4.10): Terminated abnormally.

    There are these files :

    ls -l /usr/pbi/squid-amd64/bin/check_ip.php
    lrwxr-xr-x  1 root  operator  27 May  8 22:10 /usr/pbi/squid-amd64/bin/check_ip.php -> /usr/local/bin/check_ip.php

    I found solution for this error : ipcCreate: /usr/pbi/squid-amd64/bin/check_ip.php: (2) No such file or directory

    rm /usr/pbi/squid-amd64/bin/check_ip.php
    cp /usr/local/bin/check_ip.php /usr/pbi/squid-amd64/bin/

    and worked :)



  • Hi all,

    After applying all these patches, squid 3 is working with captive portal authentication.
    But after 3 days, we observed that some mobile devices are connecting to https sites without authentication. Whatsapp, gmail and youtube apps displays the content without authentication. As this happens users internet usage is not counted.

    Any hint to check?



  • Everything works fine But there is a problem IDK why it is not serving as a proxy server I got this on my Squid Logs

    05.02.2016 10:25:21 Starting Squid Cache version 3.4.10 for amd64-portbld-freebsd10.1…

    05.02.2016 10:25:43 172.0.100.203 TAG_NONE_ABORTED/000 http://www.msn.com/



  • @laren626:

    Everything works fine But there is a problem IDK why it is not serving as a proxy server I got this on my Squid Logs

    05.02.2016 10:25:21 Starting Squid Cache version 3.4.10 for amd64-portbld-freebsd10.1…

    05.02.2016 10:25:43 172.0.100.203 TAG_NONE_ABORTED/000 http://www.msn.com/

    It may occur when you select loopback interface to listen squid on. Try to select only lan, restart the service and test again.