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

    Squid errors

    Scheduled Pinned Locked Moved pfSense Packages
    60 Posts 17 Posters 43.0k 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.
    • F
      fernandotcl
      last edited by

      I've noticed that too. The problem is that 127.0.0.1 can't be resolved. It's that the loopback interface isn't assigned an address some times. To quick fix it, just do ifconfig lo0 127.0.0.1, and then restart all the services that bind to a port on 127.0.0.1.

      1 Reply Last reply Reply Quote 0
      • S
        sullrich
        last edited by

        Anyone having problems with squid installs should make sure they are on the latest testing snapshot.

        NO, beta 1 WILL NOT WORK.  Upgrade if you're on beta 1 having problems.

        http://www.pfsense.com/~sullrich/1.0-BETA1-TESTING-SNAPSHOT-1-29-06/ is the latest testing snapshot.

        1 Reply Last reply Reply Quote 0
        • R
          rcasas
          last edited by

          @jeroen234:

          well that one is gone but…...

          it is replaced by this one

          
          Fatal error: Call to undefined function: global_eval_auth_options() in /usr/local/www/pkg_edit.php(164) : eval()'d code on line 1
          

          I don't know if this was corrected, but in 1.0-BETA1-TESTING-SNAPSHOT-2-5-06, I have needed to put the "" at the end of the file squid_auth.inc because I was having the same error.

          I've also had to change the fwrite who writes the xml heading in each auth funcion (dynamic_no_auth, …) with this one:

          fwrite($fout, "\n");

          1 Reply Last reply Reply Quote 0
          • S
            sullrich
            last edited by

            Thanks, I just corrected those issues.

            1 Reply Last reply Reply Quote 0
            • R
              rcasas
              last edited by

              @sullrich:

              Thanks, I just corrected those issues.

              I'm still having some problems with the squid package.

              When I add a new local user, I get this error page:

              "Warning: Unexpected character in input: '' (ASCII=92) state=1 in /usr/local/www/pkg_edit.php(167) : eval()'d code on line 1 Warning: Unexpected character in input: '' (ASCII=92) state=1 in /usr/local/www/pkg_edit.php(167) : eval()'d code on line 1 Parse error: syntax error, unexpected $end in /usr/local/www/pkg_edit.php(167) : eval()'d code on line 1 Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/pkg_edit.php(167) : eval()'d code:1) in /usr/local/www/pkg_edit.php on line 186"

              After this, I can see the user in the web listing, but he is not in the /usr/local/etc/squid/advanced/ncsa/passwd file. Also, although I configure user authentification, the squid permit browsing through it.

              1 Reply Last reply Reply Quote 0
              • R
                rcasas
                last edited by

                @rcasas:

                @sullrich:

                Thanks, I just corrected those issues.

                I'm still having some problems with the squid package.

                When I add a new local user, I get this error page:

                "Warning: Unexpected character in input: '' (ASCII=92) state=1 in /usr/local/www/pkg_edit.php(167) : eval()'d code on line 1 Warning: Unexpected character in input: '' (ASCII=92) state=1 in /usr/local/www/pkg_edit.php(167) : eval()'d code on line 1 Parse error: syntax error, unexpected $end in /usr/local/www/pkg_edit.php(167) : eval()'d code on line 1 Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/pkg_edit.php(167) : eval()'d code:1) in /usr/local/www/pkg_edit.php on line 186"

                After this, I can see the user in the web listing, but he is not in the /usr/local/etc/squid/advanced/ncsa/passwd file. Also, although I configure user authentification, the squid permit browsing through it.

                Hi, I've solved also this problem.

                PHP doesn't interpret \n characters in strings between single quotes.

                To solve this, Ive changed this 2 lines:

                fwrite($fout, '        require_once("/usr/local/pkg/squid_ng.inc");\n');
                fwrite($fout, '        mwexec("/usr/local/sbin/squid -k reconfigure");\n');

                with these:

                fwrite($fout, "        require_once("/usr/local/pkg/squid_ng.inc");\n");
                fwrite($fout, "        mwexec("/usr/local/sbin/squid -k reconfigure");\n");

                in the generation of the custom_add_php_command_late of each function,

                1 Reply Last reply Reply Quote 0
                • S
                  sullrich
                  last edited by

                  @rcasas:

                  PHP doesn't interpret \n characters in strings between single quotes.

                  To solve this, Ive changed this 2 lines:

                  fwrite($fout, '        require_once("/usr/local/pkg/squid_ng.inc");\n');
                  fwrite($fout, '        mwexec("/usr/local/sbin/squid -k reconfigure");\n');

                  with these:

                  fwrite($fout, "        require_once("/usr/local/pkg/squid_ng.inc");\n");
                  fwrite($fout, "        mwexec("/usr/local/sbin/squid -k reconfigure");\n");

                  in the generation of the custom_add_php_command_late of each function,

                  Thanks, these are changed!

                  1 Reply Last reply Reply Quote 0
                  • R
                    rexster
                    last edited by

                    just did clean install on snapshot 2-19-06

                    the gui said squid is running. but when i ssh to pfsense and try squid -k reconfigure,
                    it said squid is not running.

                    when i try squid start, it gives me:

                    2006/02/25 12:55:35| aclParseIpData: Bad host/IP: '/'
                    2006/02/25 12:55:35| aclParseAclLine: WARNING: empty ACL: acl localnet src /
                    2006/02/25 12:55:35| aclParseAclLine: WARNING: empty ACL: acl pf_ips    dst
                    2006/02/25 12:55:35| parseConfigFile: line 64 unrecognized: 'header_access X-Forwarded-For deny all'
                    2006/02/25 12:55:35| parseConfigFile: line 65 unrecognized: 'header_access Via deny all'

                    even that i have already put my network address into allowed subnet.

                    anything i did wrong??

                    rgds
                    rex

                    http://www.GoBlogLah.com

                    1 Reply Last reply Reply Quote 0
                    • R
                      rexster
                      last edited by

                      just installed squid on pfsense beta2.

                      it works fine right after it's installed.

                      but when i start configure things from the gui,
                      it gives me error just like the one in my post before this.

                      why the options in the gui is not same with default installed squid.conf ??

                      tia
                      rex

                      http://www.GoBlogLah.com

                      1 Reply Last reply Reply Quote 0
                      • S
                        sullrich
                        last edited by

                        @rexster:

                        just installed squid on pfsense beta2.

                        it works fine right after it's installed.

                        but when i start configure things from the gui,
                        it gives me error just like the one in my post before this.

                        why the options in the gui is not same with default installed squid.conf ??

                        tia
                        rex

                        Bugs.  Squids maintainer seems to be MIA so we are trying to mop up the issues as they arise but I am pretty burned out on the situation.

                        Patches accepted.

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