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

    Squid Questions

    pfSense Packages
    4
    13
    5.6k
    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.
    • J
      jonnytabpni
      last edited by

      Hi Folks,

      I've bought an embedded system running pfsense 1.2.3 embedded which runs on the fantastic ALIX 2d3 board. It has a 4GB Compact Flash chip.

      I have a few questions:

      1. Is it safe for the compact flash to run squid and squidguard on this system?
      2. I don't really need caching, so can I turn this off?
      3. is it generally safer to use a proxy server in a business environment, rather than allow direct port 80 and 443 access?
      4. Can the pfsense version of squidguard support user auth, where different users are given different levels of access?
      5. Will the 500Mhz ALIX board cope with this?

      Thanks

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

        @jonnytabpni:

        1. Is it safe for the compact flash to run squid and squidguard on this system?
        2. I don't really need caching, so can I turn this off?

        I would not expect a CF to live long unless you turn off caching.

        1. is it generally safer to use a proxy server in a business environment, rather than allow direct port 80 and 443 access?

        This will totally depend on your configuration, but I don't suppose it would be any less safe, and potentially more secure, as you can control content better.

        1. Will the 500Mhz ALIX board cope with this?

        I run squid with caching, but not squidguard, on a 500MHz Geode and it runs great. Of course, other factors will increase your cpu usage, such as captive portal, throughput, vpn, traffic shaping, firewall rules, etc. I use traffic shaping, squid and freeswitch on a 5.5/0.7 pppoe connection and my CPU usage averages around 10% under light load, and 22% with torrents hogging both pipes.

        db

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

          1. Can the pfsense version of squidguard support user auth, where different users are given different levels of access?

          Yes.  The squid installed via the package system in pfSense is a full blown install and should be capable of anything that a stand alone squid install will do.  That said, a huge subset of the features and config flags are not written into the GUI and will require manual editing of the squid.inc file.  If you're comfortable doing this, you can make it do whatever you want.

          1 Reply Last reply Reply Quote 0
          • J
            jonnytabpni
            last edited by

            Thanks folks.

            To turn off cacheing, do I just set the Dish Cache size to 0? Then that will be safe for the CF?

            1 Reply Last reply Reply Quote 0
            • J
              jonnytabpni
              last edited by

              This will totally depend on your configuration, but I don't suppose it would be any less safe, and potentially more secure, as you can control content better.

              Can you please tell me where it woudn't be safe? At the minute, the firewall is in default mode, except I've enabled traffic shaping, setup OpenVPN and installed/enabled squid. I havn't blocked ports 80 and 443 yet, as I just want to test that the users are happy with the proxy

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

                run this

                sed 's:^cache_dir\(.*\):cache_dir null \/tmp:g' /usr/local/pkg/squid.inc > squid.inc.tmp && mv squid.inc.tmp /usr/local/pkg/squid.inc
                
                1 Reply Last reply Reply Quote 0
                • J
                  jonnytabpni
                  last edited by

                  I get an error saying read-only filesystem :S

                  Any ideas?

                  THis is confusing, as I can edit my squid config in the web gui…

                  1 Reply Last reply Reply Quote 0
                  • J
                    jonnytabpni
                    last edited by

                    Any ideas on this?

                    I can't seem to write to any of the config files. It just says Read Only Filesystem

                    1 Reply Last reply Reply Quote 0
                    • J
                      jonnytabpni
                      last edited by

                      Ok folks,

                      I got the above command to work. I had to run it from the webGUI and not the shell.

                      Can someone pelase explain to me how to web gui can edit the squid.inc file when / is mount as read only?

                      Thanks

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

                        Either use the Diagnostics/Edit File command from the web GUI and load /usr/local/pkg/squid.inc or use something like WinSCP via SSH or Putty to get the job done.  There are several options to manually edit the file.

                        1 Reply Last reply Reply Quote 0
                        • J
                          jonnytabpni
                          last edited by

                          What is the best way to improve the performance of my pfsense box while running squid? I don't need caching, I just need squid for network security (I intend to install SquidGuard).

                          The box I'm using is a wee ALIX 2D3 (500Mhz AMD Geode 256MB RAM), and VOIP packets are to go through this box (hence why I need the best performance possible)

                          Thanks

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

                            Are you seeing substantially degraded performance as compared with your non-proxied traffic?  Squid tends to run at near full speed for most people without much (any) tinkering.

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

                              Now that you remind me, I had issues with my speed dropping out until I implemented this fix:

                              http://forum.pfsense.org/index.php/topic,7186.msg59302.html#lastPost

                              db

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