• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 476.7k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    Nachtfalke
    last edited by Apr 16, 2012, 8:59 PM

    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
    • M
      marcelloc
      last edited by Apr 16, 2012, 9:21 PM

      @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 Apr 16, 2012, 10:38 PM

        @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 Apr 17, 2012, 5:58 AM

          @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 Apr 17, 2012, 11:54 AM

            @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 Apr 17, 2012, 8:17 PM Apr 17, 2012, 12:54 PM

              @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
              • M
                marcelloc
                last edited by Apr 17, 2012, 1:11 PM

                @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 Apr 17, 2012, 7:23 PM

                  @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 Apr 17, 2012, 8:23 PM Apr 17, 2012, 8:09 PM

                    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 Apr 17, 2012, 8:33 PM

                      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 Apr 17, 2012, 8:35 PM

                        @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
                        • M
                          marcelloc
                          last edited by Apr 18, 2012, 2:55 AM

                          @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
                          • D
                            Donny
                            last edited by Apr 18, 2012, 8:01 AM Apr 18, 2012, 6:53 AM

                            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
                            • M
                              marcelloc
                              last edited by Apr 18, 2012, 1:00 PM

                              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
                              • D
                                Donny
                                last edited by Apr 18, 2012, 6:43 PM Apr 18, 2012, 1:28 PM

                                @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 Apr 18, 2012, 1:56 PM

                                  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
                                  • M
                                    marcelloc
                                    last edited by Apr 18, 2012, 3:38 PM

                                    @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
                                    • A
                                      al_reidy
                                      last edited by Apr 18, 2012, 3:50 PM

                                      @marcelloc:

                                      @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?

                                      
                                      # This file is automatically generated by pfSense
                                      # Do not edit manually !
                                      http_port 192.168.168.150:3128
                                      http_port 127.0.0.1:3128 intercept
                                      icp_port 0
                                      
                                      pid_filename /var/run/squid.pid
                                      cache_effective_user proxy
                                      cache_effective_group proxy
                                      error_directory /usr/local/etc/squid/errors/en
                                      icon_directory /usr/local/etc/squid/icons
                                      visible_hostname hostname.org
                                      cache_mgr user@domain.org
                                      access_log /var/squid/logs/access.log
                                      cache_log /var/squid/logs/cache.log
                                      cache_store_log none
                                      sslcrtd_children 0
                                      logfile_rotate 1
                                      shutdown_lifetime 3 seconds
                                      # Allow local network(s) on interface(s)
                                      acl localnet src  192.168.168.0/24
                                      forwarded_for off
                                      uri_whitespace strip
                                      
                                      # Break HTTP standard for flash videos. Keep them in cache even if asked not to.
                                      refresh_pattern -i \.flv$ 10080 90% 999999 ignore-no-cache override-expire ignore-private
                                      
                                      # Let the clients favorite video site through with full caching
                                      acl youtube dstdomain .youtube.com
                                      cache allow youtube
                                      cache_mem 1024 MB
                                      maximum_object_size_in_memory 5000 KB
                                      memory_replacement_policy heap GDSF
                                      cache_replacement_policy heap LFUDA
                                      cache_dir diskd /var/squid/cache 429000 16 256
                                      minimum_object_size 0 KB
                                      maximum_object_size 5242880 KB
                                      offline_mode offcache_swap_low 90
                                      cache_swap_high 95
                                      # Add any of your own refresh_pattern entries above these.
                                      refresh_pattern ^ftp:		1440	20%	10080
                                      refresh_pattern ^gopher:	1440	0%	1440
                                      refresh_pattern -i (/cgi-bin/|\?) 0	0%	0
                                      refresh_pattern .		0	20%	4320
                                      # No redirector configured
                                      
                                      # Setup some default acls
                                      acl allsrc src all
                                      acl localhost src 127.0.0.1/32
                                      acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901  3128 1025-65535 
                                      acl sslports port 443 563  
                                      acl manager proto cache_object
                                      acl purge method PURGE
                                      acl connect method CONNECT
                                      
                                      http_access allow manager localhost
                                      
                                      http_access deny manager
                                      http_access allow purge localhost
                                      http_access deny purge
                                      http_access deny !safeports
                                      http_access deny CONNECT !sslports
                                      
                                      # Always allow localhost connections
                                      http_access allow localhost
                                      
                                      quick_abort_min 0 KB
                                      quick_abort_max 0 KB
                                      request_body_max_size 0 KB
                                      delay_pools 1
                                      delay_class 1 2
                                      delay_parameters 1 -1/-1 -1/-1
                                      delay_initial_bucket_level 100
                                      # Throttle extensions matched in the url
                                      acl throttle_exts urlpath_regex -i "/var/squid/acl/throttle_exts.acl"
                                      delay_access 1 allow throttle_exts
                                      delay_access 1 deny allsrc
                                      
                                      # Reverse Proxy settings
                                      
                                      deny_info TCP_RESET allsrc
                                      
                                      # Package Integration
                                      
                                      # Custom options
                                      
                                      # Setup allowed acls
                                      # Allow local network(s) on interface(s)
                                      http_access allow localnet
                                      # Default block all to be sure
                                      http_access deny allsrc
                                      
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        marcelloc
                                        last edited by Apr 18, 2012, 3:57 PM

                                        The cache info is there…

                                        Can you grep for TCP_CACHE your squid access_log file?

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

                                        Help a community developer! ;D

                                        1 Reply Last reply Reply Quote 0
                                        • A
                                          al_reidy
                                          last edited by Apr 18, 2012, 4:07 PM Apr 18, 2012, 4:01 PM

                                          @marcelloc:

                                          The cache info is there…

                                          Can you grep for TCP_CACHE your squid access_log file?

                                          returns nothing back  :'(

                                          it does have TCP_MISS….  / DIRECT every line...

                                          1 Reply Last reply Reply Quote 0
                                          67 out of 428
                                          • First post
                                            67/428
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received