• 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

Cache/Proxy
104
428
469.8k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    marcelloc
    last edited by Jun 6, 2012, 8:45 PM

    The setup looks fine, I'll try to simulate it.

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

    Help a community developer! ;D

    1 Reply Last reply Reply Quote 0
    • Y
      yosu
      last edited by Jun 7, 2012, 2:06 PM

      @nutt318:

      Make URI textbox blank in order to get:

      acl test1 url_regex -i http://test1.mydomain.com.*$

      Now you get:

      acl test1 url_regex -i test1.mydomain.com/http://test1.mydomain.com.*$

      You can look at /usr/local/etc/squid/squid.conf in a ssh shell.

      Best regards.

      1 Reply Last reply Reply Quote 0
      • N
        nutt318
        last edited by Jun 7, 2012, 2:19 PM

        That made it work from internal on the LAN, but I still cant get to it from the outside.

        Any other ideas?

        Thanks!

        1 Reply Last reply Reply Quote 0
        • C
          cjbujold
          last edited by Jun 9, 2012, 6:49 PM

          Unable to get reverse squid 3 to work.  Here is my configuration, if somebody can help.  The example i'm trying to get to work is 2 web servers; one on port 80 and another on port 8081.  The request comes to port 80 should be pickedup by squid and depending on the URL squid should send the request either to port 80 of the web server or to port 8081.  The test Im using is www goes to port 80 and helpdesk goes to port 8081.  When I try it, everythings goes to port 80. Port 8081 is never sent aqnything and the helpdesk goes to port 80.

          The squid.conf file reverse proxy section looks like this: (XXX is equal to mydomainname)

          Reverse Proxy settings

          http_port 192.168.XXX.XXX:80 accel defaultsite=XXXX.ca vhost
          http_port 156.34.XXX.XXX:80 accel defaultsite=XXXX.ca vhost
          #XXXX HelpDesk
          cache_peer 192.168.XXX.15 parent 8081 0 proxy-only no-query originserver login=PASS name=XXXXHelpDesk

          acl XXXXHelpDesk url_regex -i http://helpdesk.XXXX.ca/.$
          acl XXXXHelpDesk url_regex -i http://helpdesk.XXXX.com/.
          $
          cache_peer_access XXXXHelpDesk allow XXXXXHelpDesk
          cache_peer_access XXXXHelpDesk allow XXXXHelpDesk
          cache_peer_access XXXXHelpDesk deny allsrc
          cache_peer_access XXXXHelpDesk deny allsrc
          never_direct allow XXXXHelpDesk
          never_direct allow XXXXHelpDesk
          http_access allow XXXXHelpDesk
          http_access allow XXXXHelpDesk

          deny_info TCP_RESET allsrc

          Custom options

          squid.png
          squid.png_thumb
          Peers.png
          Peers.png_thumb
          Mapping.png
          Mapping.png_thumb
          ![MappingDetail PM.png](/public/imported_attachments/1/MappingDetail PM.png)
          ![MappingDetail PM.png_thumb](/public/imported_attachments/1/MappingDetail PM.png_thumb)

          1 Reply Last reply Reply Quote 0
          • N
            nutt318
            last edited by Jun 11, 2012, 1:50 PM

            Sounds like the same issue I'm having, however it looks like one of your mappings isnt ON. Maybe that will fix it, if so I need to look over my config again.

            1 Reply Last reply Reply Quote 0
            • N
              nutt318
              last edited by Jun 12, 2012, 9:16 PM

              I looked at my squid.config file at its basically the same as cjbujold's.

              Is there anything else to try, or does anyone have any idea why this isnt working?

              Thanks for the help.

              1 Reply Last reply Reply Quote 0
              • I
                IGIdeus
                last edited by Jun 13, 2012, 10:11 AM

                Hi,

                There is no possible to restart/start squid service from dashboard and services GUI pages.

                Best regards
                IGIdeus

                1 Reply Last reply Reply Quote 0
                • I
                  IGIdeus
                  last edited by Jun 13, 2012, 10:31 AM

                  Hi,

                  IMHO squid as a package for firewall should be hardened a little bit more.
                  From my perspective ACL safe_ports should include only 21, 80, 443 and 1025-65535 ports, ACL SSL should include only 443 port. All other ports should be added manually.
                  There could be information about other ports in description of the options.

                  The brilliant function could be possibility to manage the ACLs like in Webmin or like firewall rules in pfSense.

                  Best regards
                  IGIdeus

                  1 Reply Last reply Reply Quote 0
                  • M
                    marcelloc
                    last edited by Jun 13, 2012, 7:15 PM Jun 13, 2012, 3:34 PM

                    @IGIdeus:

                    There is no possible to restart/start squid service from dashboard and services GUI pages.

                    Apply this patch on your 2.0.1 install to fix restart service option
                    https://github.com/bsdperimeter/pfsense/commit/6ae78f0808747893f30b867c51b744dfe39e2190

                    @IGIdeus:

                    From my perspective ACL safe_ports should include only 21, 80, 443 and 1025-65535 ports, ACL SSL should include only 443 port. All other ports should be added manually.

                    the current list (21 70 80 210 280 443 488 563 591 631 777 901 1025-65535) is not that big. I think(and in some cases I remove) that 1025-65535 is the most "unsecure" port range on this array. You can chage it editing squid.inc file.

                    @IGIdeus:

                    The brilliant function could be possibility to manage the ACLs like in Webmin or like firewall rules in pfSense.

                    It's on the todo list, but I need some free time to finish.

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

                    Help a community developer! ;D

                    1 Reply Last reply Reply Quote 0
                    • N
                      nutt318
                      last edited by Jun 13, 2012, 7:13 PM

                      @marcelloc:

                      The setup looks fine, I'll try to simulate it.

                      Did you ever have a chance to simulate the reverse proxy traffic?

                      1 Reply Last reply Reply Quote 0
                      • B
                        blasterreal
                        last edited by Jun 16, 2012, 7:14 AM

                        Pfsense 2.0.1 32 BIT

                        Squid services not started :(

                        -php: /pkg_edit.php: The command '/usr/local/sbin/squid -k shutdown' returned exit code '1', the output was 'FATAL: Bungled squid.conf line 4: http_port 127.0.0.1:3128 intercept Squid Cache (Version 2.7.STABLE9): Terminated abnormally.'

                        -squid[54825]: Bungled squid.conf line 4: http_port 127.0.0.1:3128 intercept

                        1 Reply Last reply Reply Quote 0
                        • M
                          marcelloc
                          last edited by Jun 16, 2012, 9:43 PM

                          @Blasterreal:

                          Squid Cache (Version 2.7.STABLE9)

                          Did you installed squidguard after squid? force a squid3 reinstall, check config, apply settings and test again.

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

                          Help a community developer! ;D

                          1 Reply Last reply Reply Quote 0
                          • B
                            blasterreal
                            last edited by Jun 18, 2012, 9:40 AM

                            Thanks its working ;)

                            1 Reply Last reply Reply Quote 0
                            • M
                              m4st3rc1p0
                              last edited by Jun 18, 2012, 10:31 AM

                              Hi,

                              Is there a way that we can enable LDAP and NT authentication properly on this module, I was not able to run this using LDAP or NT.

                              ** PLease advise

                              TIA

                              1 Reply Last reply Reply Quote 0
                              • C
                                Cino
                                last edited by Jun 18, 2012, 10:56 AM

                                any news on pbi package? I did a new install of 2.1 and can't install the package.. I may follow these step to manually install; http://forum.pfsense.org/index.php/topic,50572.0.html

                                1 Reply Last reply Reply Quote 0
                                • N
                                  Nachtfalke
                                  last edited by Jun 18, 2012, 1:48 PM

                                  http://lists.pfsense.org/pipermail/dev/2012-June/000178.html

                                  1 Reply Last reply Reply Quote 0
                                  • C
                                    Cino
                                    last edited by Jun 18, 2012, 6:13 PM Jun 18, 2012, 3:16 PM

                                    @Nachtfalke:

                                    http://lists.pfsense.org/pipermail/dev/2012-June/000178.html

                                    thanks. Guess I should had read the whole thing… I missed the bottom part

                                    EDIT:  Squid 3 has been built it looks, http://files.pfsense.com/packages/8/All/squid-3.1.19-i386.pbi

                                    EDIT2: Since the package showed up, I installed it... Looks like it needs some options added to it when the pbi is being built:

                                    
                                    2012/06/18 13:19:24| cache_cf.cc(381) parseOneConfigFile: squid.conf:17 unrecognized: 'sslcrtd_children'
                                    2012/06/18 13:19:24| WARNING: (B) '127.0.0.1' is a subnetwork of (A) '127.0.0.1'
                                    2012/06/18 13:19:24| WARNING: because of this '127.0.0.1' is ignored to keep splay tree searching predictable
                                    2012/06/18 13:19:24| WARNING: You should probably remove '127.0.0.1' from the ACL named 'ext_manager'
                                    2012/06/18 13:19:24| WARNING: (B) '127.0.0.1' is a subnetwork of (A) '127.0.0.1'
                                    2012/06/18 13:19:24| WARNING: because of this '127.0.0.1' is ignored to keep splay tree searching predictable
                                    2012/06/18 13:19:24| WARNING: You should probably remove '127.0.0.1' from the ACL named 'ext_manager'
                                    2012/06/18 13:19:24| cache_cf.cc(381) parseOneConfigFile: squid.conf:73 unrecognized: 'delay_pools'
                                    2012/06/18 13:19:24| cache_cf.cc(381) parseOneConfigFile: squid.conf:74 unrecognized: 'delay_class'
                                    2012/06/18 13:19:24| cache_cf.cc(381) parseOneConfigFile: squid.conf:75 unrecognized: 'delay_parameters'
                                    2012/06/18 13:19:24| cache_cf.cc(381) parseOneConfigFile: squid.conf:76 unrecognized: 'delay_initial_bucket_level'
                                    2012/06/18 13:19:24| cache_cf.cc(381) parseOneConfigFile: squid.conf:77 unrecognized: 'delay_access'
                                    
                                    
                                    
                                     2012/06/18 13:24:54| cache_cf.cc(381) parseOneConfigFile: squid-reverse.conf:11 unrecognized: 'netdb_filename'
                                    2012/06/18 13:24:54| cache_cf.cc(381) parseOneConfigFile: squid-reverse.conf:16 unrecognized: 'sslcrtd_children'
                                    
                                    

                                    It wont start, I manually was able to start squid by taking the unrecognized commands out.. hand edit the squid.inc file so they aren't added

                                    EDIT3: Still testing but looks like option -f will be needed to keep the config files in the same location:

                                    -f file  Use given config-file instead of
                                                    /usr/pbi/squid-i386/etc/squid/squid.conf

                                    1 Reply Last reply Reply Quote 0
                                    • J
                                      jimp Rebel Alliance Developer Netgate
                                      last edited by Jun 18, 2012, 6:38 PM

                                      What build_options were used when making the custom package? I can add whatever is needed to get it building. I tried adding ECAP and that just blew up the build.

                                      If it isn't known, just get /var/db/ports/squid/options from the box that built the current .tbz and post it and I can translate it into the syntax we need.

                                      And yes all packages with config files should be using whatever parameter is there like -f to manually specify where you want the config (should really be /var/etc/something, not /usr/local/etc/something)

                                      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                      Need help fast? Netgate Global Support!

                                      Do not Chat/PM for help!

                                      1 Reply Last reply Reply Quote 0
                                      • C
                                        Cino
                                        last edited by Jun 18, 2012, 6:45 PM

                                        thanks Jim, I'll let Marcelloc charm in on the dev stuff ;-)

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          marcelloc
                                          last edited by Jun 18, 2012, 7:00 PM

                                          Hi jimp,

                                          these are the options on /var/db/ports/squid31/options

                                          # This file is auto-generated by 'make config'.
                                          # No user-servicable parts inside!
                                          # Options for squid-3.1.19
                                          _OPTIONS_READ=squid-3.1.19
                                          WITH_SQUID_KERB_AUTH=true
                                          WITH_SQUID_LDAP_AUTH=true
                                          WITH_SQUID_NIS_AUTH=true
                                          WITH_SQUID_SASL_AUTH=true
                                          WITH_SQUID_IPV6=true
                                          WITH_SQUID_DELAY_POOLS=true
                                          WITH_SQUID_SNMP=true
                                          WITH_SQUID_SSL=true
                                          WITH_SQUID_SSL_CRTD=true
                                          WITH_SQUID_PINGER=true
                                          WITHOUT_SQUID_DNS_HELPER=true
                                          WITH_SQUID_HTCP=true
                                          WITH_SQUID_VIA_DB=true
                                          WITH_SQUID_CACHE_DIGESTS=true
                                          WITHOUT_SQUID_WCCP=true
                                          WITH_SQUID_WCCPV2=true
                                          WITHOUT_SQUID_STRICT_HTTP=true
                                          WITH_SQUID_IDENT=true
                                          WITH_SQUID_REFERER_LOG=true
                                          WITH_SQUID_USERAGENT_LOG=true
                                          WITH_SQUID_ARP_ACL=true
                                          WITH_SQUID_IPFW=true
                                          WITH_SQUID_PF=true
                                          WITHOUT_SQUID_IPFILTER=true
                                          WITH_SQUID_FOLLOW_XFF=true
                                          WITHOUT_SQUID_ECAP=true
                                          WITHOUT_SQUID_ICAP=true
                                          WITHOUT_SQUID_ESI=true
                                          WITH_SQUID_AUFS=true
                                          WITHOUT_SQUID_COSS=true
                                          WITHOUT_SQUID_KQUEUE=true
                                          WITH_SQUID_LARGEFILE=true
                                          WITHOUT_SQUID_STACKTRACES=true
                                          WITHOUT_SQUID_DEBUG=true
                                          
                                          

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

                                          Help a community developer! ;D

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