Navigation

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

    Squid3 - New GUI with sync, normal and reverse proxy

    Cache/Proxy
    104
    428
    270152
    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.
    • N
      Nachtfalke last edited by

      hi marcelloc,

      nice to see that there is now just only one package and not two like it was with squid2 and squid-reverse.
      If I am not completely wrong - you made some changes on the GUI (re-order some options), right ? But you didn't add any relevant new options?

      Another question is:

      I am using squid2 at the moment with squidguard and many custom options.
      If I update to squid3 - should I pay attention on the custom options ? In the new GUI there are two text boxes - one for custom options - and another one for squidguard / havp options. Will they be "imported" correctly when updating?

      PS: Not really related to this topic - but will there be a dansguardian version which uses squid3 or better not forces any version of squid ?

      Thank you for the very hard work - on all the many different packages :-)

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

        Hello all, I just clean install pfSense (i386) and also I have installed Squid3 and Dansguardian. After that I reboot pfsense system. I got some warning on pfSense console like this:

        Waring: Invalid argument supplied for foreach() in /usr/local/pkg/squid_reverse.inc on line 103
        Waring: Invalid argument supplied for foreach() in /usr/local/pkg/squid_reverse.inc on line 146

        There is some bug in Squid3 (squid_reverse.inc) on the line 103 and 146.
        Again for Dansguardian does not appear on services menu (Services > …....),after I installed. I have to reinstall it and then appear on the services menu.

        Also Squid and Perl have two version installed. Uninstall and reinstall, it is the same.

        Any idea.


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

          me too having this issue

          Waring: Invalid argument supplied for foreach() in /usr/local/pkg/squid_reverse.inc on line 103
          Waring: Invalid argument supplied for foreach() in /usr/local/pkg/squid_reverse.inc on line 146

          and squidguard service does not startup in my case

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

            @Nachtfalke:

            nice to see that there is now just only one package and not two like it was with squid2 and squid-reverse.
            If I am not completely wrong - you made some changes on the GUI (re-order some options), right ? But you didn't add any relevant new options?

            There are new options just on reverse menu. Instead of text config, squid-reverse has config screens for peers and mappings.

            @Nachtfalke:

            I am using squid2 at the moment with squidguard and many custom options.
            If I update to squid3 - should I pay attention on the custom options ?In the new GUI there are two text boxes - one for custom options - and another one for squidguard / havp options. Will they be "imported" correctly when updating?

            They will stay all on Integration field.
            After squid3 install, you can move your options from integration field to custom fields using a better viewing one per line option.
            example:
            integration field:```
            auth_param ntlm program /usr/lib/squid/ntlm_auth --helper-protocol=squid-2.5-ntlmssp;auth_param basic program /usr/lib/squid/ntlm_auth --helper-protocol=squid-2.5-basic;auth_param basic children 5;auth_param basic realm Squid;proxy-caching web server;auth_param basic credentialsttl 2 hours

            
            can be moved to:
            

            #ntlm auth
            auth_param ntlm program /usr/lib/squid/ntlm_auth --helper-protocol=squid-2.5-ntlmssp
            auth_param basic program /usr/lib/squid/ntlm_auth --helper-protocol=squid-2.5-basic
            auth_param basic children 5
            auth_param basic realm Squid proxy-caching web server
            auth_param basic credentialsttl 2 hours

            on custom field
            
            @Nachtfalke:
            
            > PS: Not really related to this topic - but will there be a dansguardian version which uses squid3 or better not forces any version of squid ?
            
            You can use this if you remeber to install squid3 after dansguardian or squidguard.

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

            Help a community developer! ;D

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

              @harish:

              Waring: Invalid argument supplied for foreach() in /usr/local/pkg/squid_reverse.inc on line 103
              Waring: Invalid argument supplied for foreach() in /usr/local/pkg/squid_reverse.inc on line 146

              and squidguard service does not startup in my case

              I'll check it today.

              ~~Try to apply squidguard config again and then re-apply squid config.

              To workaround squid-reverse error, just select a interface on in and fill up host fqdn. It will not enable reverse proxy but will create xml config that stops inc errors at line 103 and 146.~~

              I've included some checks on squid-reverse.inc file. I'm just doing some tests before publishing this patch.

              Thanks for your feedback.

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

              Help a community developer! ;D

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

                @Donny:

                Also Squid and Perl have two version installed. Uninstall and reinstall, it is the same.

                Squidguard as well dansguardian force squid2 install.

                To avoid squid3 overwrite, install squid3 package after squidguard or dansguardian.

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

                Help a community developer! ;D

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

                  I've just pushed squid_reverse.inc fix.

                  Upgrade to squid3 pkg v 2.0.1 and see if it fixes inc errors.

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

                  Help a community developer! ;D

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

                    I installed squid2 package
                    after that squidguard
                    and then squid3

                    when click on "save" on squidguard page this line appears in squid3 integration box:

                    çb­ç-¦º ­©¿ºÊÿ–‡—öâŸû*º'F¹ªÝsû¬¯ùhq©z×?²«¢tkš­ßìªèæ«uÊ'~·Š·œ¶ŠÛÊ–¬²‰ëyØ«yË\†)]­é÷
                    
                    1 Reply Last reply Reply Quote 0
                    • T
                      Tikimotel last edited by

                      To "temporary" circumvent the integration gibberish, manually edit the custom options.
                      Integrations

                      (empty the edit box)

                      Custom
                      Options

                      quick_abort_pct 70
                      range_offset_limit 0
                      redirect_program /usr/local/bin/squidGuard -c /usr/local/etc/squidGuard/squidGuard.conf
                      redirector_bypass on
                      redirect_children 8
                      

                      (press save)

                      Squid should restart and activate 8 squidquard redirectors (temporary fix, because changing any setting in the proxy filter menu's will result in gibberish again)
                      Might also change at midnight because of squidguard crontab stuff.

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

                        @Tikimotel:

                        This helped and squidguard started (service). Couldn't test more.

                        redirect_program /usr/local/bin/squidGuard -c /usr/local/etc/squidGuard/squidGuard.conf
                        redirector_bypass on
                        redirect_children 8
                        
                        1 Reply Last reply Reply Quote 0
                        • D
                          Donny last edited by

                          @marcelloc:

                          I've just pushed squid_reverse.inc fix.

                          Upgrade to squid3 pkg v 2.0.1 and see if it fixes inc errors.

                          SOLVED!, The Squid3 pkg v 2.0.1 has fixed this Waring: Invalid argument supplied for foreach() in /usr/local/pkg/squid_reverse.inc on line 103 and 146.

                          Next step I just want to be sure, I will try to clean install pfSense again in my testing machine, after that  > First install: Dansguardian > Second install: Squid 3.

                          I will inform you later, Thank u Marcelloc.

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

                            @Nachtfalke:

                            I installed squid2 package
                            after that squidguard
                            and then squid3

                            when click on "save" on squidguard page this line appears in squid3 integration box:

                            çb­ç-¦º ­©¿ºÊÿ–‡—öâŸû*º'F¹ªÝsû¬¯ùhq©z×?²«¢tkš­ßìªèæ«uÊ'~·Š·œ¶ŠÛÊ–¬²‰ëyØ«yË\†)]­é÷
                            

                            Check if I forgot to remove base64 info from custom_option on squid.XML

                            Custom_option should not have it but custom_option_squid3 should have.

                            You do not need squid2 package before squidguard.

                            I'm not at home right now so I could check this only tonight.

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

                            Help a community developer! ;D

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

                              @Donny:

                              Next step I just want to be sure, I will try to clean install pfSense again in my testing machine, after that  > First install: Dansguardian > Second install: Squid 3.

                              Yes  :)

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

                              Help a community developer! ;D

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

                                @marcelloc:

                                @Nachtfalke:

                                I installed squid2 package
                                after that squidguard
                                and then squid3

                                when click on "save" on squidguard page this line appears in squid3 integration box:

                                çb­ç-¦º ­©¿ºÊÿ–‡—öâŸû*º'F¹ªÝsû¬¯ùhq©z×?²«¢tkš­ßìªèæ«uÊ'~·Š·œ¶ŠÛÊ–¬²‰ëyØ«yË\†)]­é÷
                                

                                Check if I forgot to remove base64 info from custom_option on squid.XML

                                Custom_option should not have it but custom_option_squid3 should have.

                                You do not need squid2 package before squidguard.

                                I'm not at home right now so I could check this only tonight.

                                Removing the "encode base64" from squid.xml worked. Now the command is visible in the text box BUT the command from this box is not copied into squid.conf file. So it does not take effect.

                                Don't hurry up and don't stress with that fact. It is sunday and you should have a free day and a nice weekend, too :-)

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

                                  Hi guys,

                                  I'm testing new squid3 package, and after install it, I'm having a lot errors in http connections, squid show me a lot 'TCP_MISS/503'. This happen often in forms posts, so I need re-send form ou press F5.
                                  I tested exhaustively the squid-2.7.9_1 + squidGuard and problem no happen. So I too tested exhaustively the squid3 + SquidGuard, and I give this problem.

                                  All squid versions have the same config. And this problem only occurs in 'Transparent Mode'

                                  Somebdoy can please test it and report the results?!

                                  Thanks

                                  Carlos

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    mhab12 last edited by

                                    Just in case others were seeing performance issues, I saw my bandwidth drop to <5mbps after installing Squid3, however changing from AUFS to diskd brought the bandwidth backup up to approximately 60mbps where it should be.

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

                                      @marcelloc:

                                      @Donny:

                                      Next step I just want to be sure, I will try to clean install pfSense again in my testing machine, after that  > First install: Dansguardian > Second install: Squid 3.

                                      Yes  :)

                                      After clean install pfSense, I try first to install Dansguardian. I got the same result as I told you before. Dansguardian does not appear on services menu. So I wait a few minute and then try to refresh pfSense WebGUI and not thing changed. The last final "fantasy" I reboot pfSense and it does not appear again. (The final "fantasy" I just only make a joke because today is Sunday, you should be relax.). Then the way I have to do before I am going to install Squid3 is reinstall Dansguardian and finally Dansquardian is appear.

                                      The next step I am going to install Squid3

                                      Just let you know, Marcelloc.


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

                                        Before using disk cache,  I suggest you to enable softupdates on /usr and /var. The performance difference is huge.

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

                                        Help a community developer! ;D

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

                                          Now Squid3 and Dansguardian is working. I don't find any error yet. The next step I will trying to configure firewall, NAT with HTTP and HTTPS for how Squid3 and Dansguardian work together.

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

                                            error is gone but could not start squidguard, i rechecked with  reinstalling the squidguard, but fails to start.

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

                                              @harish:

                                              error is gone but could not start squidguard, i rechecked with  reinstalling the squidguard, but fails to start.

                                              As far as I can say that at the moment the "Integrations" box isn't working. So put the commands squidguard creates manually in "custom options":

                                              redirect_program /usr/local/bin/squidGuard -c /usr/local/etc/squidGuard/squidGuard.conf
                                              redirector_bypass on
                                              redirect_children 8
                                              
                                              1 Reply Last reply Reply Quote 0
                                              • marcelloc
                                                marcelloc last edited by

                                                Just updated squid3 package to version 2.0.2 to fix integration erros.

                                                Please update,test and feedback  :)

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

                                                Help a community developer! ;D

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

                                                  yes now its working after custom option.

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

                                                    Hi all,

                                                    After looking for some options o squid-wiki, I've included dynamic update options to cache tab on pkg v 2.0.3


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

                                                    Help a community developer! ;D

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

                                                      @marcelloc:

                                                      Hi all,

                                                      After looking for some options o squid-wiki, I've included dynamic update options to cache tab on pkg v 2.0.3

                                                      Setting the refresh_pattern to -1 is not a really good solution because it always downloads the file even if the user aborted it. This causes that squid downloads most of the time on its own which causes more traffic usage for squid as it saves. it is better to set some values according to the update size:

                                                      
                                                      Finish transfer if less than x KB remaining: 102400
                                                      Abort transfer if more than x KB remaining: 102400
                                                      Finish transfer if more than x % finished: 60
                                                      
                                                      

                                                      These are the same values you can set in squid - traffic mangt.
                                                      What is happening if I enable squid windows update and set different values on the mngt tab ?

                                                      What do you use as refresh pattern for the windows updates ? I am using these for squid2

                                                      
                                                      refresh_pattern -i .*microsoft\.com/.*\.(cab|exe|msi|msp) 259200 100% 259200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private;
                                                      refresh_pattern -i .*windowsupdate\.com/.*\.(cab|exe|msi|msp) 259200 100% 259200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private;
                                                      
                                                      

                                                      Thanks :-)

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

                                                        @Marcelloc Nice work man!!! I do have a request/wish for this… Would it be possible to setup the GUI to have squid-reserve run as a separate process? This would allow it to have its own options and the log file could be separate. I created a separate conf file and added some code to the squid.inc so it would start with squid processes on my box. Basically where it starts/stop the service and creates the squid.sh file, i added another like to include my squid-reverse.conf.

                                                        just a thought when you have "free" time...

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

                                                          @Nachtfalke:

                                                          Setting the refresh_pattern to -1 is not a really good solution because it always downloads the file even if the user aborted it. This causes that squid downloads most of the time on its own which causes more traffic usage for squid as it saves. it is better to set some values according to the update size:

                                                          
                                                          Finish transfer if less than x KB remaining: 102400
                                                          Abort transfer if more than x KB remaining: 102400
                                                          Finish transfer if more than x % finished: 60
                                                          
                                                          

                                                          These are the same values you can set in squid - traffic mangt.
                                                          What is happening if I enable squid windows update and set different values on the mngt tab ?

                                                          Nothing, I just force range_offset_limit -1 when updates are set, all traffic mgmt are configured by users.

                                                          @Nachtfalke:

                                                          What do you use as refresh pattern for the windows updates ? I am using these for squid2

                                                          
                                                          refresh_pattern -i .*microsoft\.com/.*\.(cab|exe|msi|msp) 259200 100% 259200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private;
                                                          refresh_pattern -i .*windowsupdate\.com/.*\.(cab|exe|msi|msp) 259200 100% 259200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private;
                                                          
                                                          

                                                          Just the suggested by wiki

                                                          refresh_pattern -i microsoft.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-ims
                                                          refresh_pattern -i windowsupdate.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-ims
                                                          refresh_pattern -i my.windowsupdate.website.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-ims
                                                          

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

                                                          Help a community developer! ;D

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

                                                            @Cino:

                                                            @Marcelloc Nice work man!!! I do have a request/wish for this… Would it be possible to setup the GUI to have squid-reserve run as a separate process? This would allow it to have its own options and the log file could be separate. I created a separate conf file and added some code to the squid.inc so it would start with squid processes on my box. Basically where it starts/stop the service and creates the squid.sh file, i added another like to include my squid-reverse.conf.

                                                            just a thought when you have "free" time...

                                                            Hi cino,

                                                            I'ts a good idea but I have no idea how services tab could identify these two squid processes?

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

                                                            Help a community developer! ;D

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

                                                              @marcelloc:

                                                              Hi cino,

                                                              I'ts a good idea but I have no idea how services tab could identify these two squid processes?

                                                              Good point! here is the output of mine… Keep in mind when I have squid.inc, i put the full path for path conf files... if there is a shutdown, reconfigure; i included the full path to the conf in the syantx

                                                              
                                                              [2.1-DEVELOPMENT][root@]/root(1): ps -aux | grep squid
                                                              root    7806  0.0  0.2 10420  7120  ??  Is    7:48AM   0:00.00 /usr/local/sbin/squid -f /usr/local/etc/squid/squid-reverse.conf
                                                              proxy   7895  0.0  0.4 17596 11036  ??  S     7:48AM   0:02.72 (squid) -f /usr/local/etc/squid/squid-reverse.conf (squid)
                                                              root    7953  0.0  0.2 10420  7136  ??  Is    7:48AM   0:00.00 /usr/local/sbin/squid -f /usr/local/etc/squid/squid.conf
                                                              proxy   8397  0.0  0.8 35376 24892  ??  S     7:48AM   3:52.19 (squid) -f /usr/local/etc/squid/squid.conf (squid)
                                                              proxy  46782  0.0  0.3 54556  8496  ??  S     7:48AM   0:03.85 (squidGuard) -c /usr/local/etc/squidGuard/squidGuard.conf (squidGuard)
                                                              proxy  47028  0.0  0.3 54556  8496  ??  I     7:48AM   0:00.84 (squidGuard) -c /usr/local/etc/squidGuard/squidGuard.conf (squidGuard)
                                                              proxy  47362  0.0  0.3 54556  8496  ??  I     7:48AM   0:00.39 (squidGuard) -c /usr/local/etc/squidGuard/squidGuard.conf (squidGuard)
                                                              root   28706  0.0  0.0  3524  1256   0  S+   10:49AM   0:00.01 grep squid
                                                              
                                                              
                                                              1 Reply Last reply Reply Quote 0
                                                              • marcelloc
                                                                marcelloc last edited by

                                                                @Cino:

                                                                I'ts a good idea but I have no idea how services tab could identify these two squid processes?
                                                                Good point! here is the output of mine… Keep in mind when I have squid.inc, i put the full path for path conf files... if there is a shutdown, reconfigure; i included the full path to the conf in the syantx

                                                                Ok. Let's try to config it.

                                                                I did a lot of changes on squid.inc for this package. Can you try to reapply you patch on current config or show me what you did?

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

                                                                Help a community developer! ;D

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

                                                                  Getting this error. Did a clean pfSense install. SquidGuard won't start either.. as Squid fails to start.

                                                                  Apr 16 11:22:56 php: /pkg_mgr_install.php: The command '/usr/local/sbin/squid' returned exit code '1', the output was 'FATAL: Bungled squid.conf line 7: http_port 127.0.0.1:3128 intercept Squid Cache (Version 2.7.STABLE9): Terminated abnormally.'
                                                                  Apr 16 11:22:56 squid[34066]: Bungled squid.conf line 7: http_port 127.0.0.1:3128 intercept

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

                                                                    @asterix:

                                                                    Getting this error. Did a clean pfSense install. SquidGuard won't start either.. as Squid fails to start.

                                                                    Apr 16 11:22:56 php: /pkg_mgr_install.php: The command '/usr/local/sbin/squid' returned exit code '1', the output was 'FATAL: Bungled squid.conf line 7: http_port 127.0.0.1:3128 intercept Squid Cache (Version 2.7.STABLE9): Terminated abnormally.'
                                                                    Apr 16 11:22:56 squid[34066]: Bungled squid.conf line 7: http_port 127.0.0.1:3128 intercept

                                                                    You running squid is Version 2.7.STABLE9.

                                                                    What version of pfsense are you using?

                                                                    Take a look on first posts of this thread to see package install sequence.

                                                                    att,
                                                                    Marcello Coutinho

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

                                                                    Help a community developer! ;D

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

                                                                      @marcelloc:

                                                                      @Cino:

                                                                      I'ts a good idea but I have no idea how services tab could identify these two squid processes?
                                                                      Good point! here is the output of mine… Keep in mind when I have squid.inc, i put the full path for path conf files... if there is a shutdown, reconfigure; i included the full path to the conf in the syantx

                                                                      Ok. Let's try to config it.

                                                                      I did a lot of changes on squid.inc for this package. Can you try to reapply you patch on current config or show me what you did?

                                                                      i sent you a pm

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

                                                                        @marcelloc:

                                                                        @asterix:

                                                                        Getting this error. Did a clean pfSense install. SquidGuard won't start either.. as Squid fails to start.

                                                                        Apr 16 11:22:56 php: /pkg_mgr_install.php: The command '/usr/local/sbin/squid' returned exit code '1', the output was 'FATAL: Bungled squid.conf line 7: http_port 127.0.0.1:3128 intercept Squid Cache (Version 2.7.STABLE9): Terminated abnormally.'
                                                                        Apr 16 11:22:56 squid[34066]: Bungled squid.conf line 7: http_port 127.0.0.1:3128 intercept

                                                                        You running squid is Version 2.7.STABLE9.

                                                                        What version of pfsense are you using?

                                                                        Take a look on first posts of this thread to see package install sequence.

                                                                        att,
                                                                        Marcello Coutinho

                                                                        I clean installed this version
                                                                        2.0.1-RELEASE (amd64)
                                                                        built on Mon Dec 12 18:16:13 EST 2011

                                                                        Then went into packages and installed squid3 first. Same settings I have been using for over a year. Nothing has changed. I reinstalled pfSense again and again tried with your latest package.. same issue.

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

                                                                          @ccesario:

                                                                          Hi guys,

                                                                          I'm testing new squid3 package, and after install it, I'm having a lot errors in http connections, squid show me a lot 'TCP_MISS/503'. This happen often in forms posts, so I need re-send form ou press F5.
                                                                          I tested exhaustively the squid-2.7.9_1 + squidGuard and problem no happen. So I too tested exhaustively the squid3 + SquidGuard, and I give this problem.

                                                                          All squid versions have the same config. And this problem only occurs in 'Transparent Mode'

                                                                          Somebdoy can please test it and report the results?!

                                                                          Thanks

                                                                          Hi,

                                                                          so I post what I did and while I am doing this it will take more than one minute. (Remember your pm to me).

                                                                          I installed squid3 package and sent myself personal messages. It took all times very long till they get sent - but that's probably a forum issue. Nothing uncommon in access.log.

                                                                          After that installed squidguard - it break squid3 and squidguard so I uninstalled squid3 and reinstalled squid3. after that both were running. I created a target in squidguard to block google.de and it is working. Other pages can be visited. Nothing uncommon and not TCP_MISS/503 in access.log

                                                                          I sent some personal messages myself and no problem.

                                                                          Now I am writing this post and we will see what happens.

                                                                          PS: I did not enable any additional options on squid - just basic settings on a VM to test.

                                                                          –-- EDIT ----
                                                                          Got the same error as ccesario:
                                                                          This is after writing the post:

                                                                          1334604903.140     56 192.168.0.112 TCP_MISS/503 4769 POST http://forum.pfsense.org/index.php? - DIRECT/forum.pfsense.org text/html
                                                                          1334604903.969    659 192.168.0.112 TCP_MISS/200 13148 GET http://www.squid-cache.org/Artwork/SN.png - DIRECT/209.169.10.131 image/png
                                                                          

                                                                          My brwoser showed the attached screenshot.

                                                                          After that I pressed F5 and re-sent:

                                                                          
                                                                          1334605018.876  60599 192.168.0.112 TCP_MISS/302 580 POST http://forum.pfsense.org/index.php? - DIRECT/69.64.6.7 text/html
                                                                          1334605019.308    428 192.168.0.112 TCP_MISS/200 12060 GET http://forum.pfsense.org/index.php/board,15.0.html - DIRECT/69.64.6.7 text/html
                                                                          1334605019.409    154 192.168.0.112 TCP_MISS/304 260 GET http://www.google-analytics.com/urchin.js - DIRECT/173.194.35.39 -
                                                                          1334605019.530    307 192.168.0.112 TCP_MISS/304 323 GET http://forum.pfsense.org/Themes/slickprographite/style.css? - DIRECT/69.64.6.7 -
                                                                          1334605019.542    158 192.168.0.112 TCP_MISS/304 258 GET http://pagead2.googlesyndication.com/pagead/show_ads.js - DIRECT/209.85.148.157 -
                                                                          1334605019.546    319 192.168.0.112 TCP_MISS/304 321 GET http://forum.pfsense.org/Themes/default/print.css? - DIRECT/69.64.6.7 -
                                                                          1334605019.561    332 192.168.0.112 TCP_MISS/304 322 GET http://forum.pfsense.org/Themes/slickprographite/images/transparency.gif - DIRECT/69.64.6.7 -
                                                                          1334605019.581    352 192.168.0.112 TCP_MISS/304 322 GET http://forum.pfsense.org/Themes/slickprographite/images/icons/folder_open.gif - DIRECT/69.64.6.7 -
                                                                          1334605019.600    370 192.168.0.112 TCP_MISS/304 321 GET http://forum.pfsense.org/Themes/slickprographite/images/icons/linktree_side.gif - DIRECT/69.64.6.7 -
                                                                          1334605019.612    396 192.168.0.112 TCP_MISS/304 323 GET http://forum.pfsense.org/Themes/default/script.js? - DIRECT/69.64.6.7 -
                                                                          1334605019.693    162 192.168.0.112 TCP_MISS/304 322 GET http://forum.pfsense.org/Themes/default/xml_board.js - DIRECT/69.64.6.7 -
                                                                          1334605019.710    162 192.168.0.112 TCP_MISS/304 322 GET http://forum.pfsense.org/Themes/slickprographite/images/rss.gif - DIRECT/69.64.6.7 -
                                                                          1334605019.729    166 192.168.0.112 TCP_MISS/304 322 GET http://forum.pfsense.org/Themes/slickprographite/images/filter.gif - DIRECT/69.64.6.7 -
                                                                          1334605019.747    163 192.168.0.112 TCP_MISS/304 323 GET http://forum.pfsense.org/pfsense_banner_applianceshop.png - DIRECT/69.64.6.7 -
                                                                          1334605019.765    163 192.168.0.112 TCP_MISS/304 321 GET http://forum.pfsense.org/Themes/slickprographite/images/sort_down.gif - DIRECT/69.64.6.7 -
                                                                          1334605019.781    168 192.168.0.112 TCP_MISS/304 322 GET http://forum.pfsense.org/Themes/slickprographite/images/topic/veryhot_post.gif - DIRECT/69.64.6.7 -
                                                                          1334605019.858    164 192.168.0.112 TCP_MISS/304 321 GET http://forum.pfsense.org/Themes/slickprographite/images/post/xx.gif - DIRECT/69.64.6.7 -
                                                                          1334605019.874    163 192.168.0.112 TCP_MISS/304 322 GET http://forum.pfsense.org/Themes/slickprographite/images/icons/show_sticky.gif - DIRECT/69.64.6.7 -
                                                                          1334605019.894    163 192.168.0.112 TCP_MISS/304 322 GET http://forum.pfsense.org/Themes/slickprographite/images/icons/last_post.gif - DIRECT/69.64.6.7 -
                                                                          1334605019.917    169 192.168.0.112 TCP_MISS/304 321 GET http://forum.pfsense.org/Themes/slickprographite/images/icons/quick_lock.gif - DIRECT/69.64.6.7 -
                                                                          1334605019.930    164 192.168.0.112 TCP_MISS/304 322 GET http://forum.pfsense.org/Themes/slickprographite/images/topic/hot_post.gif - DIRECT/69.64.6.7 -
                                                                          1334605019.947    165 192.168.0.112 TCP_MISS/304 322 GET http://forum.pfsense.org/Themes/slickprographite/images/topic/normal_post.gif - DIRECT/69.64.6.7 -
                                                                          1334605019.968     68 192.168.0.112 TCP_MISS/200 500 GET http://www.google-analytics.com/__utm.gif? - DIRECT/173.194.35.39 image/gif
                                                                          1334605020.024    165 192.168.0.112 TCP_MISS/304 322 GET http://forum.pfsense.org/Themes/slickprographite/images/post/wink.gif - DIRECT/69.64.6.7 -
                                                                          1334605020.037    163 192.168.0.112 TCP_MISS/304 322 GET http://forum.pfsense.org/Themes/slickprographite/images/topic/my_veryhot_post.gif - DIRECT/69.64.6.7 -
                                                                          1334605020.059    165 192.168.0.112 TCP_MISS/304 322 GET http://forum.pfsense.org/Themes/slickprographite/images/post/thumbup.gif - DIRECT/69.64.6.7 -
                                                                          1334605020.086    169 192.168.0.112 TCP_MISS/304 321 GET http://forum.pfsense.org/Themes/slickprographite/images/topic/normal_poll.gif - DIRECT/69.64.6.7 -
                                                                          1334605020.102    169 192.168.0.112 TCP_MISS/304 322 GET http://forum.pfsense.org/Themes/slickprographite/images/topic/my_normal_post.gif - DIRECT/69.64.6.7 -
                                                                          1334605020.115    167 192.168.0.112 TCP_MISS/304 321 GET http://forum.pfsense.org/Themes/slickprographite/images/post/question.gif - DIRECT/69.64.6.7 -
                                                                          1334605020.191    167 192.168.0.112 TCP_MISS/304 322 GET http://forum.pfsense.org/Themes/slickprographite/images/icons/quick_sticky.gif - DIRECT/69.64.6.7 -
                                                                          1334605020.204    167 192.168.0.112 TCP_MISS/304 322 GET http://forum.pfsense.org/Themes/slickprographite/images/bg_body.gif - DIRECT/69.64.6.7 -
                                                                          1334605020.225    164 192.168.0.112 TCP_MISS/304 323 GET http://forum.pfsense.org/Themes/slickprographite/images/logo.jpg - DIRECT/69.64.6.7 -
                                                                          1334605020.251    164 192.168.0.112 TCP_MISS/304 321 GET http://forum.pfsense.org/Themes/slickprographite/images/coltitle_bg.gif - DIRECT/69.64.6.7 -
                                                                          1334605020.269    166 192.168.0.112 TCP_MISS/304 322 GET http://forum.pfsense.org/Themes/slickprographite/images/mirrortab_first.gif - DIRECT/69.64.6.7 -
                                                                          1334605020.357    164 192.168.0.112 TCP_MISS/304 322 GET http://forum.pfsense.org/Themes/slickprographite/images/mirrortab_last.gif - DIRECT/69.64.6.7 -
                                                                          1334605020.374    168 192.168.0.112 TCP_MISS/304 323 GET http://forum.pfsense.org/Themes/slickprographite/images/catbg.jpg - DIRECT/69.64.6.7 -
                                                                          1334605020.389    164 192.168.0.112 TCP_MISS/304 322 GET http://forum.pfsense.org/Themes/slickprographite/images/maintab_first.gif - DIRECT/69.64.6.7 -
                                                                          1334605020.417    164 192.168.0.112 TCP_MISS/304 321 GET http://forum.pfsense.org/Themes/slickprographite/images/maintab_back.gif - DIRECT/69.64.6.7 -
                                                                          1334605020.436    165 192.168.0.112 TCP_MISS/304 322 GET http://forum.pfsense.org/Themes/slickprographite/images/maintab_last.gif - DIRECT/69.64.6.7 -
                                                                          1334605020.523    164 192.168.0.112 TCP_MISS/304 323 GET http://forum.pfsense.org/Themes/slickprographite/images/titlebg.jpg - DIRECT/69.64.6.7 -
                                                                          1334605020.553    303 192.168.0.112 TCP_MISS/200 2672 GET http://googleads.g.doubleclick.net/pagead/ads? - DIRECT/209.85.148.155 text/html
                                                                          1334605020.806    690 192.168.0.112 TCP_MISS/304 321 GET http://forum.pfsense.org/Themes/slickprographite/images/mirrortab_back.gif - DIRECT/69.64.6.7 -
                                                                          
                                                                          


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

                                                                            When enabling all cache options (window supdates and so on) the squid.conf is not correctly formatted and needs some new lines before "range offset limit":

                                                                            range_offset_limit -1
                                                                            refresh_pattern -i microsoft.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-ims
                                                                            refresh_pattern -i windowsupdate.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-ims
                                                                            refresh_pattern -i my.windowsupdate.website.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-imsrange_offset_limit -1
                                                                            refresh_pattern liveupdate.symantecliveupdate.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
                                                                            refresh_pattern symantecliveupdate.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-imsrange_offset_limit -1
                                                                            refresh_pattern avast.com/.*\.(vpu|cab|stamp|exe) 10080 100% 43200 reload-into-imsrange_offset_limit -1
                                                                            refresh_pattern personal.avira-update.com/.*\.(cab|exe|dll|msi|gz) 10080 100% 43200 reload-into-imscache_mem 64 MB
                                                                            maximum_object_size_in_memory 256 KB
                                                                            
                                                                            

                                                                            Further I would make the other pattern case insensitive, too ( -i )

                                                                            An what about the subdomains of microsoft.com ? Are they covered with this regex ?
                                                                            Or better put  .*  in front like:

                                                                            
                                                                            refresh_pattern -i .*\.microsoft.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip)
                                                                            refresh_pattern -i .*\.windowsupdate.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip)
                                                                            
                                                                            

                                                                            Further I didn't have any luck with a short test on caching youtube.com videos.
                                                                            access.log shows "x-flv". Perhaps add this format to the config:

                                                                            refresh_pattern -i .*\.(x-flv|flv) 10080 90% 999999 ignore-no-cache override-expire ignore-private
                                                                            
                                                                            1 Reply Last reply Reply Quote 0
                                                                            • marcelloc
                                                                              marcelloc last edited by

                                                                              Thanks, I'll fix it.

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

                                                                              Help a community developer! ;D

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

                                                                                On squid -> cache this:

                                                                                set Maximum download size on 'traffic mgmt' squid tab to a value that fits patters your are applying.
                                                                                Microsoft may need 200Mb and youtube 4GB. 
                                                                                

                                                                                should be probably renamed to:

                                                                                
                                                                                set Maximum object size on 'cache' squid tab to a value that fits pattern your are applying.
                                                                                Microsoft may need 200Mb and youtube 4GB.
                                                                                
                                                                                

                                                                                Question:
                                                                                Could you add an option to change the time an object should be in cache ?
                                                                                At the moment it is 4320 80% 43200. Perhaps someone likes to increase that.

                                                                                But probably if someone needs this he should create his custom options itself and the "click and save" GUI ist just for people who do not want to do to much work on squid and refresh_pattern :-)

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

                                                                                  @Nachtfalke:

                                                                                  On squid -> cache this:

                                                                                  set Maximum download size on 'traffic mgmt' squid tab to a value that fits patters your are applying.
                                                                                  Microsoft may need 200Mb and youtube 4GB. 
                                                                                  

                                                                                  should be probably renamed to:

                                                                                  
                                                                                  set Maximum object size on 'cache' squid tab to a value that fits pattern your are applying.
                                                                                  Microsoft may need 200Mb and youtube 4GB.
                                                                                  
                                                                                  

                                                                                  The Maximum download size is on 'traffic mgmt' tab

                                                                                  @Nachtfalke:

                                                                                  But probably if someone needs this he should create his custom options itself and the "click and save" GUI ist just for people who do not want to do to much work on squid and refresh_pattern :-)

                                                                                  I think the same way  :)

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

                                                                                  Help a community developer! ;D

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

                                                                                    The Maximum download size is on 'traffic mgmt' tab
                                                                                    

                                                                                    This will limit all downloads through squid or am I completly wrong !?! So if I set 200MB there and will try to download an 3GB ISO it will cut my download, isn't it ?

                                                                                    Damn…squid has so many options it is sometime really hard to understand when to use what ;)

                                                                                    1 Reply Last reply Reply Quote 0
                                                                                    • First post
                                                                                      Last post