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.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.
    • R
      rsw686
      last edited by

      @ColdFusion:

      Well, I just installed squid with transparent proxy and got this…...any ideas?
      he following input errors were detected:

      * You must start log location with a / mark
          * That is not a valid log location dir
          * You can not run squid on the same port as the webgui

      In the squid settings the log dir should be defined as something like /var/log/squid

      Squid and the lighttpd (gui web server) can not be bound to the same port thus the error. It has nothing to do with the redirect rules.

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

        @rsw686:

        Squid and the lighttpd (gui web server) can not be bound to the same port thus the error. It has nothing to do with the redirect rules.

        Well it USED to work just fine without editing the port the WebGUI ran on. Squid is not being bound to port 80. It is being bound by default to 3128 with transparent proxy doing a redirect of all port 80 outbound traffic being forwarded to the squid port. Or at least that is what is supposed to be happening.

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

          guys, we didn't add the check for fun.
          yes it used to work, but not anymore, there are some changes made to squid.

          The older versions couldn't handle transparency, later the modified it a bit so that you could setup a nat within squid. so all port 80 request would be redirected to (for example port 3128), but that's no longer, squid can handle directly transparency without the redirection.
          But this means it runs like a sort of special webserver, and you can't run 2 services on the same port (ok there are exceptions), so you can't run squid and the webserver on the same port..

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

            Squid can be run on any port in transparent mode. In Smoothwall, it runs on port 800. In pfSense, it is set up to run on port 80. The important thing is that the pf redirection and the port squid listens on must be the same. Maybe it is a good idea to have squid on port 3128, and just change the redirect rule in pf accordingly, then this whole issue with the webgui goes away.

            my 2c.
            Nicki

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

              I for one am happy to see squid working again, if it means running the webgui on a different port thats fine with me. I run it on https anyway. We should just thank everyone that took the time from it not working to working. So that being said;

              Thank you to everyone that helped make squid work again.  ;D

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

                well squid doesnt crash anymore. I have yet to see any of the ACLs actually work. no matter what i do to the settings, it runs just like as if i didn't have squid installed.

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

                  Not sure about the acls, something might just be in the wrong order.

                  When I try windowsupdate with squid in transparent mode it fails to download the updates. When I enter the client IP in the unrestricted hosts field windowsupdate works again. So I am pretty sure there is something marginally worng.

                  Not suprised that authentication does not work. It was entirely untested.

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

                    I have an update, again…
                    I have changed some routing stuff, so that in transparent mode both the webgui and squid can run on port 80.
                    In normal mode (non transparent) you can't run them on the same port, because in that case the browser sends the packages to pfsense's ip...

                    Ok here the updates...

                    Delete

                    	if (($post['transparent_proxy'] == 'on')) {
                    		$port = 80;
                    	} else {
                    		$port = trim($post['proxy_port']);
                    	}
                    

                    change

                    	if ($port == $webgui_port) {
                    

                    in

                            if (($post['transparent_proxy'] != 'on') && ($port == $webgui_port)) {
                    

                    then change

                    			$conf .= "http_port {$real_ifaces[$i][0]}";
                                            if (($settings['transparent_proxy'] == 'on')) {
                                               $conf .= ":80 transparent\n";
                                            } else {
                    		 $conf .= ":$port\n";
                    	           }
                    
                    

                    in

                                            if (($settings['transparent_proxy'] == 'on')) {
                                               $conf .= "http_port 127.0.0.1:80 transparent\n";
                                            } else {
                                            $conf .= "http_port {$real_ifaces[$i][0]}:$port\n";
                                    }
                    
                    

                    and finally
                    change

                    			$rules .= "rdr on $iface proto tcp from any to !($iface) port 80 -> ($iface) port 80\n";
                    

                    in

                    			$rules .= "rdr on $iface proto tcp from any to !($iface) port 80 -> 127.0.0.1 port 80\n";
                    
                    1 Reply Last reply Reply Quote 0
                    • U
                      Umberto
                      last edited by

                      I compiled a complete new squid to be sure it was not an option why the blacklist wouldn't work, but that sisn't help, so I think it's not that squid doesn't support acl, I know it did block the windows update site allready, but I wanted to be sure…

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

                        attaching to 127.0.0.1 seems like a good idea.

                        I'll change that.

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

                          might have to resort to the old Desk-Check method and do a manual trace thru the code to see if the logical flow of commands surrounding the blacklist makes sense. It can be extremely time consuming but it helps to pinpoint where the problems may be.

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

                            well, put the deny all acl on top and see if that works :-)

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

                              I upgraded package squid-2.5.14_2 to 2.6.5
                              Squid began to issue error:

                              ./restart_squid.sh

                              Restarting Squid whith config
                              2006/12/22 19:50:54| aclParseAclLine: Invalid ACL type 'snmp_community'
                              FATAL: Bungled squid.conf line 83: acl snmppublic snmp_community public
                              Squid Cache (Version 2.6.STABLE5): Terminated abnormally.
                              Complete

                              How make on install –enable-snmp ???

                              Sergu

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

                                STOP INSTALLING THE PACKAGE FROM THE SHELL/CLI/CONSOLE.

                                reinstall the package from the webgui. Click System -> Packages -> Installed Packages -> reinstall package Icon.

                                1 Reply Last reply Reply Quote 0
                                • T
                                  trendchiller
                                  last edited by

                                  Hmmm, here with my system it won't install at all…
                                  That's what it tells me:

                                  _Downloading package configuration file… done.
                                  Saving updated package information... done.
                                  Downloading squid and its dependencies... done.
                                  Checking for successful package installation... failed!

                                  Installation aborted._

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

                                    @trendchiller:

                                    Hmmm, here with my system it won't install at all…
                                    That's what it tells me:

                                    _Downloading package configuration file… done.
                                    Saving updated package information... done.
                                    Downloading squid and its dependencies... done.
                                    Checking for successful package installation... failed!

                                    Installation aborted._

                                    May be previous version of squeed don't deinstall correctly?
                                    Check this can in -
                                    Command Prompt: pkg_info

                                    1. deinstall squid
                                    2. run pkg_info - squid package exists?
                                    3. if present need deinstall them: pkg_delete squid-2.5.-next number–

                                    after need install squid package again.

                                    SquidGuardDoc EN  RU Tutorial
                                    Localization ru_PFSense

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      trendchiller
                                      last edited by

                                      No, it's not that, I already tried…
                                      I also use the latest snapshot 21-12

                                      in which package does the ldap client come along ?
                                      might be that one ?

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

                                        save the config, reinstall your box. Then reinstall squid.

                                        It only takes 10 minutes and you can run from livecd with the config on a usb stick whil you are installing.
                                        Just put you existing config on a stick in the conf/ subdirectory named config.xml.

                                        After rebooting the newly installed system will allready have the correct config.

                                        1 Reply Last reply Reply Quote 0
                                        • G
                                          ginosteel
                                          last edited by

                                          nice to see that squid is back.The problem is that is not working like before.I wanna use a transparent proxy as my gateway but it cannot be used like that because of an error that says that cannot run in the same mode like webgui.Wich is the protocol for the webgui?I`ve tried a lot of ports but still nothing

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

                                            Change the port the webConfigurator is running on.

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