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.
    • M
      mhab12
      last edited by

      On boot, the screen freezes on the line "Stopping /usr/local/etc/rc.d/proxy_monitor.sh"  I know this was an issue under previous versions as well but never really got resolved.  The system boots, the proxy runs, there is just no console.

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

        You need to update to the latest testing snapshot…

        http://www.pfsense.com/~sullrich/1.0.1-SNAPSHOT-12-14-2006/

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

          Running 1.0.1-SNAPSHOT-12-20-2006 and the 2.6.5_1-p2 release of squid and cannot get the blacklist to work at all. there is nothing being output to show an error. Its like its just ignoring the list. also i noticed that I could not get my browser to connect directly to port 3128 when setting it to manually use the proxy until i changed it to a different port.

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

            @AkumaKuruma:

            Running 1.0.1-SNAPSHOT-12-20-2006 and the 2.6.5_1-p2 release of squid and cannot get the blacklist to work at all. there is nothing being output to show an error. Its like its just ignoring the list. also i noticed that I could not get my browser to connect directly to port 3128 when setting it to manually use the proxy until i changed it to a different port.

            That works good over here, did you dissable the transparent proxy? In transparent proxy the port setting does nothing..

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

              yes i did. i turned it off before trying it manually. with it not blacklisting, its next to impossible to tell if the transparent proxy is even doing anything so I wanted to see what was happening when i ran it manually thru the proxy. both ways ignore the blacklist. just providing feedback for the guys working on this port.

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

                i have  clean 1.0.1-SNAPSHOT-12-20-2006 built on Thu Dec 21 01:44:22 UTC 2006
                squid installed (2.6.5_1-p2). status/services/squid start success. and services/proxy server/transparent proxy checked and save clicked:

                "The following input errors were detected:
                    * You can not run squid on the same port as the webgui"

                any suggestions?

                -
                Ugur.

                1 Reply Last reply Reply Quote 0
                • X
                  xstas
                  last edited by

                  "NT domain" authentication method doesn't work. Squid dies after several seconds of run :'(

                  1 Reply Last reply Reply Quote 0
                  • X
                    xstas
                    last edited by

                    Oh.
                    Any of authentication methods does not work! Squid doesn't show authentication request window, just opens the requested site.

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

                      @ugur:

                      i have  clean 1.0.1-SNAPSHOT-12-20-2006 built on Thu Dec 21 01:44:22 UTC 2006
                      squid installed (2.6.5_1-p2). status/services/squid start success. and services/proxy server/transparent proxy checked and save clicked:

                      "The following input errors were detected:
                          * You can not run squid on the same port as the webgui"

                      any suggestions?

                      i think the redirect rules are gone rong
                      in earlyer version the redirect rule was ignoring redirects for trafic directed to the interface ip
                      so then there is no problem with squid and webgui on the same port
                      dest !lanip dest port 80 redirect to  127.0.0.1 dest port 3128

                      1 Reply Last reply Reply Quote 0
                      • C
                        ColdFusion
                        last edited by

                        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

                        1 Reply Last reply Reply Quote 0
                        • 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
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.