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

    Squid Installation and basic parameters to get it running

    Scheduled Pinned Locked Moved pfSense Packages
    14 Posts 7 Posters 7.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.
    • H
      hoba
      last edited by

      If you change squid settings in the webgui squid will be terminated and restarted. As long as squid is running you are fine.

      1 Reply Last reply Reply Quote 0
      • ?
        Guest
        last edited by

        To verify that its running, aside from what the webGUI says, you can log into the console and see if squid is running in the process list.  Also, you can check the access.log file for activity.  The default location of the squid access.log is in /usr/local/logs IIRC, however, this could have changed.  Judicious use of the find command will help.

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

          okay but it occurs to me that the connection is slow with squid on? is this normal for the first few days or is there some bug for everyone else

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

            @Adam2:

            okay but it occurs to me that the connection is slow with squid on? is this normal for the first few days or is there some bug for everyone else

            Please search for this issue, it's under active discussion.

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

              thanks everyone, I will follow up on the squid slowness issue through this topic

              http://forum.pfsense.org/index.php/topic,7281.0.html

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

                hi, all
                i've installed new version of squid.
                and then i customized. to make it proper for my network
                this is my squid.conf

                Do not edit manually!

                http_port 125.164.254.46:3128
                http_port 127.0.0.1:80 transparent
                icp_port 3130

                pid_filename /var/run/squid.pid
                cache_effective_user proxy
                cache_effective_group proxy
                error_directory /usr/local/etc/squid/errors/English
                visible_hostname localhost
                cache_mgr admin@localhost

                access_log /dev/null
                cache_log /var/squid/log/cache.log
                cache_store_log none
                shutdown_lifetime 3 seconds

                Allow local network(s) on interface(s)

                acl localnet src  125.164.254.46/255.255.255.255
                uri_whitespace strip

                cache_dir diskd /cache1 12000 16 256
                cache_dir diskd /cache2 12000 16 256
                cache_dir diskd /cache3 12000 16 256
                cache_dir diskd /cache4 12000 16 256
                #cache_dir aufs /var/squid/cache 1000 16 256
                cache_mem 16 MB
                maximum_object_size 32 KB

                No redirector configured

                Setup some default acls

                acl all src 0.0.0.0/0
                acl localhost src 127.0.0.1
                acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901  1025-65535
                acl sslports port 443 563
                acl manager proto cache_object

                after i safe it, and then i run it.and it runs well for a while…
                and the question is
                why every time i reboot my router. the config is back like the default one.
                especialy on the cache_dir section.

                pls some body could give a solution???

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

                  Everything is regenerated on bootup or guichanges from the config.xml. This is how pfSense works (single configfile for everything: config.xml).

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

                    http://forum.pfsense.org/index.php/topic,5093.0.html

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

                      So another question along this same line.  I have installed squid and it is running as a process on the box.  But when I put a URL's in the BlackList field it doesn't filter anything.  Is there anything special that needs to be done to make that happen?

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

                        hi

                        i am using squid for quite some times, i used the upstream proxy in the past when i had the option to use it by my isp, but now my isp oblige me to do so, and if i don't my internet will be very slow, so if i use it now squid stops immediately, i tried it with 5 different pfsense boxes, any body aware of this and solved it?

                        thanks in advance

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