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

    Squid3 - New GUI with sync, normal and reverse proxy

    Scheduled Pinned Locked Moved Cache/Proxy
    428 Posts 104 Posters 495.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.
    • marcellocM
      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
        • marcellocM
          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
            • marcellocM
              marcelloc
              last edited by

              @Nachtfalke:

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

              I second that  :)

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

              Help a community developer! ;D

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

                @Nachtfalke:

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

                My brwoser showed the attached screenshot.

                After that I pressed F5 and re-sent:

                Hi Nachtfalke, thank you by feedback!

                This is the problem that happen! Exactly as your screenshot.

                I have this screen in others sites too. I mean to you pfsense forum only to test/reproduce.

                But in squid-2.7.9  this not happen.

                PS: I too enable basic settings in squid.

                Welll…. this can be considered a bug/error ?

                Carlos

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

                  @ccesario:

                  @Nachtfalke:

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

                  My brwoser showed the attached screenshot.

                  After that I pressed F5 and re-sent:

                  Hi Nachtfalke, thank you by feedback!

                  This is the problem that happen! Exactly as your screenshot.

                  I have this screen in others sites too. I mean to you pfsense forum only to test/reproduce.

                  But in squid-2.7.9  this not happen.

                  PS: I too enable basic settings in squid.

                  Welll…. this can be considered a bug/error ?

                  So I am using squid2.7 and squidguard here on work and posting many times on the forum and there is not that "bug". Perhaps some parameters on squid3 which causes this problems. Perhaps POST HEADER size or something like that.

                  Do you have an URL where we can "spam" posts to test this ? Probably it is not the best to do with pfsense forum ;o)

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

                    @Nachtfalke:

                    So I am using squid2.7 and squidguard here on work and posting many times on the forum and there is not that "bug". Perhaps some parameters on squid3 which causes this problems. Perhaps POST HEADER size or something like that.

                    Do you have an URL where we can "spam" posts to test this ? Probably it is not the best to do with pfsense forum ;o)

                    Hehehehh no, I don't have URL to can "spam" posts. But using pfsense forum its possible.

                    Edit your posts and save-it :) … I my tests I usage this to reproduce many times the error :)

                    Thanks

                    Carlos

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

                      @ccesario:

                      @Nachtfalke:

                      So I am using squid2.7 and squidguard here on work and posting many times on the forum and there is not that "bug". Perhaps some parameters on squid3 which causes this problems. Perhaps POST HEADER size or something like that.

                      Do you have an URL where we can "spam" posts to test this ? Probably it is not the best to do with pfsense forum ;o)

                      Hehehehh no, I don't have URL to can "spam" posts. But using pfsense forum its possible.

                      Edit your posts and save-it :) … I my tests I usage this to reproduce many times the error :)

                      Thanks

                      Will do this perhaps this afternoon/night when I am at home. Perhaps we can tweak something if it's not a bug. :-)

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

                        @Nachtfalke:

                        Will do this perhaps this afternoon/night when I am at home. Perhaps we can tweak something if it's not a bug. :-)

                        Maybe a compile option like 'Be strictly HTTP compliant'

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

                        Help a community developer! ;D

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

                          @Nachtfalke:

                          @ccesario:

                          @Nachtfalke:

                          So I am using squid2.7 and squidguard here on work and posting many times on the forum and there is not that "bug". Perhaps some parameters on squid3 which causes this problems. Perhaps POST HEADER size or something like that.

                          Do you have an URL where we can "spam" posts to test this ? Probably it is not the best to do with pfsense forum ;o)

                          Hehehehh no, I don't have URL to can "spam" posts. But using pfsense forum its possible.

                          Edit your posts and save-it :) … I my tests I usage this to reproduce many times the error :)

                          Thanks

                          Will do this perhaps this afternoon/night when I am at home. Perhaps we can tweak something if it's not a bug. :-)

                          Thanks…. if possible report your tests!

                          Carlos

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

                            Hmm, no luck till now.

                            tried with different browsers (IE8 and FF11)
                            tried with (re)moving some refresh_patterns
                            tried with different DNS servers for squid (8.8.8.8 and 127.0.0.1)
                            added this to custom options to get more information from access.log

                            strip_query_terms off
                            

                            This is a difference I found on squid access.log

                            
                            540 192.168.0.112 TCP_MISS/302 601 POST http://forum.pfsense.org/index.php?action=post2;start=45;msg=255851;sesc=b98e34206a1c8d9eb69521c441186ad3;board=15 - DIRECT/69.64.6.7 text/html
                            71 192.168.0.112 TCP_MISS/503 5000 POST http://forum.pfsense.org/index.php?action=post2;start=45;msg=255851;sesc=b98e34206a1c8d9eb69521c441186ad3;board=15 - DIRECT/forum.pfsense.org text/html
                            
                            

                            The 503 line uses DNS and the 302 uses an IP address…

                            If I click on the URL posted in the error page I get returned to the post edit page and got an error message from pfsense forum:

                            
                            Your session timed out while posting. Please try to re-submit your message. No subject was filled in. The message body was left empty.
                            
                            

                            hmmm…

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

                              Marcello and others,

                              I've still got problems configuring Squid 3 as a reverse proxy. Somehow I can't manage it to work properly.
                              As you illustrated in the forst postings I did exactly the same and added NAT and Firewall rules. I'm using port 8080 and 8443.

                              How come…?!?!

                              Thanks a lot,
                              Canefield

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

                                @Nachtfalke:

                                This is a difference I found on squid access.log

                                
                                540 192.168.0.112 TCP_MISS/302 601 POST http://forum.pfsense.org/index.php?action=post2;start=45;msg=255851;sesc=b98e34206a1c8d9eb69521c441186ad3;board=15 - DIRECT/69.64.6.7 text/html
                                71 192.168.0.112 TCP_MISS/503 5000 POST http://forum.pfsense.org/index.php?action=post2;start=45;msg=255851;sesc=b98e34206a1c8d9eb69521c441186ad3;board=15 - DIRECT/forum.pfsense.org text/html
                                
                                

                                The 503 line uses DNS and the 302 uses an IP address…

                                Hmmmm this can be a hint..  O_o

                                Carlos

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

                                  @canefield:

                                  Marcello and others,

                                  I've still got problems configuring Squid 3 as a reverse proxy. Somehow I can't manage it to work properly.
                                  As you illustrated in the forst postings I did exactly the same and added NAT and Firewall rules. I'm using port 8080 and 8443.

                                  How come…?!?!

                                  Thanks a lot,
                                  Canefield

                                  Still the same issue from TMG post? Did you removed the Nat?

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

                                  Help a community developer! ;D

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

                                    Another bugs found on system log when I use revers proxy.

                                    Apr 18 08:41:51
                                    php: : The command '/usr/local/sbin/squid -k reconfigure' returned exit code '1', the output was '2012/04/18 08:41:51| redreshAddToList: Unknown option 'my.windowsupdate.website.com/..(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip)': reload-into-imsrange_offset_limit 2012/04/18 08:41:51| redreshAddToList: Unknown option 'my.windowsupdate.website.com/..(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip)': -1 2012/04/18 08:41:51| redreshAddToList: Unknown option 'symantecliveupdate.com/..(cab|exe|dll|msi)': reload-into-imsrange_offset_limit 2012/04/18 08:41:51| redreshAddToList: Unknown option 'symantecliveupdate.com/..(cab|exe|dll|msi)': -1 2012/04/18 08:41:51| redreshAddToList: Unknown option 'avast.com/..(vpu|cab|stamp|exe)': reload-into-imscache_mem 2012/04/18 08:41:51| redreshAddToList: Unknown option 'avast.com/..(vpu|cab|stamp|exe)': 1024 2012/04/18 08:41:51| redreshAddToList: Unknown option 'avast.com/.*.(vpu|cab|stamp|exe)': MB 2012/04/18 08:41:51| Warning: empty ACL: acl throttle_exts url

                                    Solved! I found this problem because at dansquardian has banned "extension files". After I disable banned at extension tab, the error has gone.

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

                                      Donny,
                                      Check if does not happen if you uncheck dynamic content options on squid cache tab.

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

                                      Help a community developer! ;D

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

                                        @marcelloc:

                                        Donny,
                                        Check if does not happen if you uncheck dynamic content options on squid cache tab.

                                        Now, If I check or uncheck dynamic content options. The error is disappear.

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

                                          i can't seem to get this package to cache files at all… no errors and whatismyip.com detects the proxy is working just it always downloads files without looking at the cache store... anyone else got this problem?

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

                                            @al_reidy:

                                            i can't seem to get this package to cache files at all… no errors and whatismyip.com detects the proxy is working just it always downloads files without looking at the cache store... anyone else got this problem?

                                            If you know how to handle squid.conf files, can you check if your squid.conf file is ok?

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

                                            Help a community developer! ;D

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