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

    Squid Returned to Packages *** PLEASE TEST ***

    Scheduled Pinned Locked Moved pfSense Packages
    226 Posts 46 Posters 159.7k 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.
    • I
      ivanjong
      last edited by

      squid acls is still not working for now so the black list and whitelist should be not working for now. 1 more point on my system the squid start up is still buggy. it starts squid 2 times. and thus wont be able to auto start when pfsense boot. i need to click save on the webgui of pfsense for squid to make it run. i'll try to look into the problem later when i have time

      1 Reply Last reply Reply Quote 0
      • J
        Justinw
        last edited by

        @bender:

        @Justinw

        Ya that is a weird one… I am also now using pfSense 1.0.1-SNAPSHOT-12-28-2006 and squid 2.6.5_1-p6 and yes I am running in transparent mode, but I tried it both ways and it still works for me:

        Transparent:

        2007/01/05 02:35:33| Loaded Icons.
        2007/01/05 02:35:33| Accepting transparently proxied HTTP connections at 127.0.0.1, port 80, FD 12.
        2007/01/05 02:35:33| Accepting proxy HTTP connections at 192.168.1.33, port 3128, FD 13.
        2007/01/05 02:35:33| WCCP Disabled.
        2007/01/05 02:35:33| Ready to serve requests.

        Transparent off:

        2007/01/06 02:40:19| Loaded Icons.
        2007/01/06 02:40:19| Accepting proxy HTTP connections at 192.168.1.33, port 3128, FD 12.
        2007/01/06 02:40:19| WCCP Disabled.
        2007/01/06 02:40:19| Ready to serve requests.

        Did you use the .iso image to install pfSense from scratch or are you installing it on an existing FreeBSD rig?

        Thanks for the update bender, the install comes from the 1.0.1 release iso.  I will work with it more, it sounds like some other people are having a problem with it while others are not.  If I find out anything new I'll post an update.

        1 Reply Last reply Reply Quote 0
        • H
          hoba
          last edited by

          Afaik you have to use something newer than 1.0.1 release for squid to work correctly. Please update to a recent snapshot from http://snapshots.pfsense.com/FreeBSD6/RELENG_1/ and test again.

          1 Reply Last reply Reply Quote 0
          • J
            Justinw
            last edited by

            My snapshot at the time of the previous posts was 12-28, however bender wanted to know what my base load was from, that being the 1.0.1 release version and then I upgraded to the snapshot via the firmware upgrade…

            1 Reply Last reply Reply Quote 0
            • D
              databeestje
              last edited by

              Since the squid.sh is used by the start, stop and restart service I will not remove that one.

              What I have done instead is implement a delay in the proxy monitor script to wait 5 seconds after launhing to trigger a squid start or not.

              This is reflected as version p7. I have also moved the proxy start script after our attempt to start it.

              1 Reply Last reply Reply Quote 0
              • D
                databeestje
                last edited by

                Enter version p8.

                This should have working blacklist support.
                MAC acls are removed since they do not work with 2.6

                Please Test.

                1 Reply Last reply Reply Quote 0
                • N
                  Neversky
                  last edited by

                  So does Squid not actually work, or is it only partially working. Sorry for the newb question, but I cannot get the service to start at all. Even after a few installs/reinstalls. Here's what my log keeps displaying:

                  Jan 10 00:56:28 last message repeated 3 times
                  Jan 10 00:56:23 php: : SQUID is installed but not started. Not installing redirect rules.
                  Jan 10 00:56:20 check_reload_status: reloading filter
                  Jan 10 00:56:15 squid: Bungled squid.conf line 60: http_access allow unrestricted_hosts
                  Jan 10 00:56:15 php: /pkg_mgr_install.php: Starting Squid
                  Jan 10 00:56:15 squid: Bungled squid.conf line 60: http_access allow unrestricted_hosts
                  Jan 10 00:56:15 squid: Bungled squid.conf line 60: http_access allow unrestricted_hosts
                  Jan 10 00:56:14 check_reload_status: reloading filter
                  Jan 10 00:56:10 squid: Bungled squid.conf line 60: http_access allow unrestricted_hosts
                  Jan 10 00:56:09 php: /pkg_mgr_install.php: Creating squid cache subdirs in /var/squid/cache
                  Jan 10 00:56:09 squid: Bungled squid.conf line 60: http_access allow unrestricted_hosts
                  Jan 10 00:56:09 squid: Bungled squid.conf line 60: http_access allow unrestricted_hosts
                  Jan 10 00:56:09 php: /pkg_mgr_install.php: Reloading Squid for configuration sync
                  Jan 10 00:56:08 squid: Bungled squid.conf line 60: http_access allow unrestricted_hosts
                  Jan 10 00:56:08 Squid_Alarm[1469]: Attempting restart…
                  Jan 10 00:56:08 Squid_Alarm[1467]: Squid has exited. Reconfiguring filter

                  1 Reply Last reply Reply Quote 0
                  • D
                    databeestje
                    last edited by

                    I must have fumbled that.

                    If you remove entries from unrestricted hosts. Does it work then?

                    1 Reply Last reply Reply Quote 0
                    • D
                      databeestje
                      last edited by

                      I just tested this and it works for me.

                      Does you command output look anything like this?

                      # grep unrestricted /usr/local/etc/squid/squid.conf
                      acl unrestricted_hosts src "/var/squid/acl/unrestricted_hosts.acl"
                      delay_access 1 deny unrestricted_hosts
                      http_access allow unrestricted_hosts
                      # more "/var/squid/acl/unrestricted_hosts.acl"
                      10.0.8.19
                      #
                      

                      You have a inputted the the hosts as IP addresses and comma seperated, yes?

                      1 Reply Last reply Reply Quote 0
                      • N
                        Neversky
                        last edited by

                        I just installed the package. Checked tranparent proxy, allow users on interface, and enable logging…

                        1 Reply Last reply Reply Quote 0
                        • D
                          databeestje
                          last edited by

                          If you go to the access control page and click save. Does that work for you?

                          1 Reply Last reply Reply Quote 0
                          • N
                            Neversky
                            last edited by

                            That's what I get after that… Again, I am pretty new with this, so what version do I need to have installed...

                            Jan 10 01:25:35 squid: Bungled squid.conf line 60: http_access allow unrestricted_hosts
                            Jan 10 01:25:20 php: : SQUID is installed but not started. Not installing redirect rules.
                            Jan 10 01:25:20 php: : SQUID is installed but not started. Not installing redirect rules.
                            Jan 10 01:25:17 check_reload_status: reloading filter
                            Jan 10 01:25:16 squid: Bungled squid.conf line 60: http_access allow unrestricted_hosts
                            Jan 10 01:25:16 php: /pkg_edit.php: Starting Squid

                            1 Reply Last reply Reply Quote 0
                            • N
                              nepumuk
                              last edited by

                              Hello,

                              after entering IPs in the fields unrestricted hosts, whitelist and blacklist squid is working again for me. Leaving the fields empty does not work.

                              BTW is there a way to use the blacklists from squid guard (http://squidguard.shalla.de/shallalist.html) where the domains are separated by <cr>and not by commas?</cr>

                              1 Reply Last reply Reply Quote 0
                              • J
                                Justinw
                                last edited by

                                @databeestje:

                                Since the squid.sh is used by the start, stop and restart service I will not remove that one.

                                What I have done instead is implement a delay in the proxy monitor script to wait 5 seconds after launhing to trigger a squid start or not.

                                This is reflected as version p7. I have also moved the proxy start script after our attempt to start it.

                                Thanks for the fix, I will test here in the next day or two!

                                1 Reply Last reply Reply Quote 0
                                • B
                                  bender
                                  last edited by

                                  Just started testing version p8. Thanks so much for your efforts on this databeestje - this is a huge feature for many of us  :-)

                                  First minor thing I noticed, my squid.conf line 17 now unexpectedly reads:

                                  Allow local network(s) on interface(s)

                                  I don't think that belongs there ;-) This same line appears later in squid.conf, but in that case it is properly commented out. No big deal - just wanted to let you know.

                                  1 Reply Last reply Reply Quote 0
                                  • B
                                    bender
                                    last edited by

                                    I have the same problem as some others - if I leave the Whitelist section empty, I get:

                                    /usr/local/sbin/squid status

                                    2007/01/11 04:01:44| parseConfigFile: line 17 unrecognized: 'Allow local network(s) on interface(s)'
                                    2007/01/11 04:01:44| ACL name 'whitelist' not defined!
                                    FATAL: Bungled squid.conf line 65: http_access allow whitelist
                                    Squid Cache (Version 2.6.STABLE5): Terminated abnormally.

                                    if I leave the blacklist section empty, I get:

                                    /usr/local/sbin/squid status

                                    2007/01/11 04:00:00| parseConfigFile: line 17 unrecognized: 'Allow local network(s) on interface(s)'
                                    2007/01/11 04:00:00| ACL name 'blacklist' not defined!
                                    FATAL: Bungled squid.conf line 67: http_access deny blacklist
                                    Squid Cache (Version 2.6.STABLE5): Terminated abnormally.

                                    i.e. in either case squid actually stops running, which is a silent failure as far as the webgui is concerned

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      databeestje
                                      last edited by

                                      oops!

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        adrianhensler
                                        last edited by

                                        I also had it not working unless I filled out the fields. I found that after adding ip's in the last two (whitelist / blacklist) I could then remove them and leave just a single space and squid would not complain about the squid.conf file.  No time to look at it further right now.

                                        1 Reply Last reply Reply Quote 0
                                        • U
                                          Umberto
                                          last edited by

                                          I have a small update again, it's not that it's a bug, but it's not complete correct
                                          the code:

                                          
                                          foreach (explode(',', $ifaces) as $i => $iface) {
                                          		$real_ifaces[] = squid_get_real_interface_address($iface);
                                          		if($real_ifaces[$i][0]) {
                                                                  if (($settings['transparent_proxy'] == 'on')) {
                                          				$conf .= "http_port 127.0.0.1:80 transparent\n";
                                                                  }
                                          			$conf .= "http_port {$real_ifaces[$i][0]}:$port\n";
                                          		}
                                          	}
                                          
                                          

                                          should be

                                          
                                                     if (($settings['transparent_proxy'] == 'on')) {
                                          		$conf .= "http_port 127.0.0.1:80 transparent\n";
                                                      } else {
                                          	             foreach (explode(',', $ifaces) as $i => $iface) {
                                          			$real_ifaces[] = squid_get_real_interface_address($iface);
                                          			if($real_ifaces[$i][0]) {
                                          				$conf .= "http_port {$real_ifaces[$i][0]}:$port\n";
                                          			}
                                          		}
                                          	}
                                          
                                          

                                          If you have multiple lan interfaces where you want to run squid on in transparency mode, the old code will add```
                                          http_port 127.0.0.1:80 transparent

                                          Every interface you've selected will be pointed to the localhost later in the script.
                                          1 Reply Last reply Reply Quote 0
                                          • D
                                            databeestje
                                            last edited by

                                            Just updated to p9 which should generate the incorrect config creation.

                                            Empty blacklist fixing is saved for another day.

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