Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

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

    Scheduled Pinned Locked Moved Cache/Proxy
    16 Posts 9 Posters 7.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • U Offline
      utikawa
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • marcellocM Offline
        marcelloc
        last edited by

        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.

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • P Offline
          paulxb
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • S Offline
            salehpf
            last edited by

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

            1 Reply Last reply Reply Quote 0
            • P Offline
              paulxb
              last edited by

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

              1 Reply Last reply Reply Quote 0
              • M Offline
                magokbas
                last edited by

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

                1 Reply Last reply Reply Quote 0
                • marcellocM Offline
                  marcelloc
                  last edited by

                  @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.

                  Treinamentos de Elite: http://sys-squad.com

                  Help a community developer! ;D

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    gumergs
                    last edited by

                    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

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      magokbas
                      last edited by

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

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        anutma
                        last edited by

                        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

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          magokbas
                          last edited by

                          @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

                          1 Reply Last reply Reply Quote 0
                          • M Offline
                            magokbas
                            last edited by

                            @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 :)

                            1 Reply Last reply Reply Quote 0
                            • C Offline
                              chowtamah
                              last edited by

                              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?

                              2.0.2-RELEASE (amd64)  &  2.2.2-RELEASE (amd64)

                              Always trying to learn!!

                              1 Reply Last reply Reply Quote 0
                              • L Offline
                                laren626
                                last edited by

                                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/

                                1 Reply Last reply Reply Quote 0
                                • marcellocM Offline
                                  marcelloc
                                  last edited by

                                  @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.

                                  Treinamentos de Elite: http://sys-squad.com

                                  Help a community developer! ;D

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post
                                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.