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

    How do I delete the information on the hard disk ?

    Scheduled Pinned Locked Moved General pfSense Questions
    28 Posts 5 Posters 4.2k 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.
    • K Offline
      kejianshi
      last edited by

      Your squid config will fill up to 10GB on its own and then should start to recycle space.

      I wouldn't worry about it unless it actually fills 100% and crashes.

      Otherwise, let it run.

      1 Reply Last reply Reply Quote 0
      • F Offline
        firefox
        last edited by

        But that was a long time on 16 percent
        It started to fill
        Only after I installed squidGuard
        So until now it was not working right ?

        1 Reply Last reply Reply Quote 0
        • K Offline
          kejianshi
          last edited by

          Probably - If you are sending most of your traffic through squid, it will fill a 10GB cache pretty quick.

          I would imagine that you only just started using that cache recently.

          1 Reply Last reply Reply Quote 0
          • stephenw10S Offline
            stephenw10 Netgate Administrator
            last edited by

            What about your SquidGuard logs?

            Steve

            1 Reply Last reply Reply Quote 0
            • F Offline
              firefox
              last edited by

              What about your SquidGuard logs?

              Here

              is it ok ?

              ![home.plex - Proxy filter SquidGuard Log page - 2015-03-15_21.15.38.png](/public/imported_attachments/1/home.plex - Proxy filter SquidGuard Log page - 2015-03-15_21.15.38.png)
              ![home.plex - Proxy filter SquidGuard Log page - 2015-03-15_21.15.38.png_thumb](/public/imported_attachments/1/home.plex - Proxy filter SquidGuard Log page - 2015-03-15_21.15.38.png_thumb)
              ![home.plex - Proxy filter SquidGuard Log page - 2015-03-15_21.14.53.png](/public/imported_attachments/1/home.plex - Proxy filter SquidGuard Log page - 2015-03-15_21.14.53.png)
              ![home.plex - Proxy filter SquidGuard Log page - 2015-03-15_21.14.53.png_thumb](/public/imported_attachments/1/home.plex - Proxy filter SquidGuard Log page - 2015-03-15_21.14.53.png_thumb)
              ![home.plex - Proxy filter SquidGuard General settings - 2015-03-15_21.14.29.png](/public/imported_attachments/1/home.plex - Proxy filter SquidGuard General settings - 2015-03-15_21.14.29.png)
              ![home.plex - Proxy filter SquidGuard General settings - 2015-03-15_21.14.29.png_thumb](/public/imported_attachments/1/home.plex - Proxy filter SquidGuard General settings - 2015-03-15_21.14.29.png_thumb)

              1 Reply Last reply Reply Quote 0
              • stephenw10S Offline
                stephenw10 Netgate Administrator
                last edited by

                You have log rotation selected but is it working as expected? Check the log file size in /var/squidguard.

                Steve

                1 Reply Last reply Reply Quote 0
                • F Offline
                  firefox
                  last edited by

                  how do i do that ?
                  i know how to ssh

                  but how do i know the size of the file or is name ?

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S Offline
                    stephenw10 Netgate Administrator
                    last edited by

                    Connect to the console with SSH, go to the /var/squidguard directory and list the files with their size using, for example, 'ls -lhS'.

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      kejianshi
                      last edited by

                      I really am not seeing the issue here.  If you don't like seeing a high percentage of disk usage on a 20GB pfsense install, don't allocate 10GB to squid.

                      Not that your current setting are bad.  They are fine.  But if it makes you happy to not utilize 50% of your disk space, just set the squid for 50000 instead of 10000.

                      My squid installs ALWAYS filled the entire cache, and as far as I know, thats what it should be doing.  I think you are worried over nothing.

                      1 Reply Last reply Reply Quote 0
                      • F Offline
                        firefox
                        last edited by

                        I really am not seeing the issue here.  If you don't like seeing a high percentage of disk usage on a 20GB pfsense install, don't allocate 10GB to squid.

                        Not that your current setting are bad.  They are fine

                        It may be works correctly
                        It just seems odd to me
                        It was a long time about 16 to 20 percent
                        And within two weeks jumped to 60 percent
                        I'm not going to change it
                        I wanted to know why Out of curiosity

                        If it works correctly now
                        It means that it did not work correctly before

                        go to the /var/squidguard

                        /var/squidguard: Command not found.
                        
                        1 Reply Last reply Reply Quote 0
                        • F Offline
                          firefox
                          last edited by

                          I think I managed
                          This command i did in the library /var/

                          [2.1.5-RELEASE][admin@home.plex]/var(6): ls -lhS
                          total 50
                          drwxr-xr-x  18 root    wheel    1.0k Mar  9 14:55 db
                          drwxr-xr-x   6 root    wheel    1.0k Mar 16 20:06 log
                          drwxr-xr-x   6 root    wheel    1.0k Mar  5 18:42 run
                          drwxr-xr-x   2 root    wheel    512B Aug 25  2014 account
                          drwxr-xr-x   4 root    wheel    512B Aug 25  2014 at
                          drwxr-x---   2 root    audit    512B Aug 25  2014 audit
                          drwxr-x---   2 root    wheel    512B Aug 25  2014 backups
                          drwxr-x---   2 root    wheel    512B Aug 25  2014 crash
                          drwxr-x---   3 root    wheel    512B Aug 25  2014 cron
                          drwxr-xr-x   8 root    wheel    512B Feb  3 15:44 dhcpd
                          dr-xr-xr-x   2 root    wheel    512B Feb  3 15:39 empty
                          drwxr-xr-x   5 root    wheel    512B Mar 15 22:47 etc
                          drwxrwxr-x   2 root    games    512B Aug 25  2014 games
                          drwx------   2 root    wheel    512B Aug 25  2014 heimdal
                          drwxr-xr-x   2 root    wheel    512B Feb  3 15:40 installer_logs
                          drwxrwxr-x   2 root    mail     512B Feb 20 10:54 mail
                          drwxr-xr-x   2 daemon  wheel    512B Aug 25  2014 msgs
                          drwxr-xr-x   2 root    wheel    512B Aug 25  2014 named
                          drwxr-xr-x   2 root    wheel    512B Aug 25  2014 preserve
                          drwxrwxr-x   2 root    daemon   512B Aug 25  2014 rwho
                          drwxr-xr-x   7 root    wheel    512B Aug 25  2014 spool
                          drwxr-xr-x   5 proxy   proxy    512B Feb  3 16:00 squid
                          drwxr-xr-x   3 root    wheel    512B Feb 27 19:08 squidGuard
                          drwxrwxrwt   5 root    wheel    512B Mar 16 20:11 tmp
                          drwxr-xr-x   2 root    wheel    512B Aug 25  2014 yp
                          
                          

                          cant go to  squidGuard

                          [2.1.5-RELEASE][admin@home.plex]/var(7): cd /squidGuard/
                          /squidGuard/: No such file or directory.
                          
                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            doktornotor Banned
                            last edited by

                            @firefox:

                            cant go to  squidGuard

                            [2.1.5-RELEASE][admin@home.plex]/var(7): cd /squidGuard/
                            /squidGuard/: No such file or directory.
                            

                            Yeah, layer 8 error…

                            
                            cd /var/squidGuard/
                            
                            
                            1 Reply Last reply Reply Quote 0
                            • K Offline
                              kejianshi
                              last edited by

                              Where did the "var" go?

                              1 Reply Last reply Reply Quote 0
                              • F Offline
                                firefox
                                last edited by

                                At first I did

                                cd /var/squidGuard/
                                

                                it give me this

                                /var/squidguard: Command not found.
                                

                                so i try this

                                cd /var/
                                

                                and then i try```
                                cd /squidGuard/

                                it didnt work
                                
                                So I wrote down the command in the folder /var/
                                

                                ls -lhS

                                
                                Very strange
                                I tried this order exactly it did not work before
                                Here is outcome for ls -lhS in  /var/squidGuard/
                                
                                

                                total 2
                                drwxr-xr-x  2 proxy  proxy  512B Mar 16 00:00 log

                                1 Reply Last reply Reply Quote 0
                                • D Offline
                                  doktornotor Banned
                                  last edited by

                                  @firefox:

                                  At first I did

                                  cd /var/squidGuard/
                                  

                                  it give me this

                                  /var/squidguard: Command not found.
                                  

                                  Impossible. And kindly note that the filesystem is case sensitive. /var/squidGuard is NOT the same thing like /var/squidguard

                                  1 Reply Last reply Reply Quote 0
                                  • F Offline
                                    firefox
                                    last edited by

                                    Probably that's why it did not work
                                    In your latest post
                                    I just copied the command I pasted into the terminal
                                    Not like before

                                    1 Reply Last reply Reply Quote 0
                                    • K Offline
                                      kejianshi
                                      last edited by

                                      I wonder what would happen if you went to diagnostics > command prompt

                                      and entered:

                                      ls - l /var/squidguard

                                      ???

                                      1 Reply Last reply Reply Quote 0
                                      • F Offline
                                        firefox
                                        last edited by

                                        $ ls - l /var/squidguard
                                        ls: -: No such file or directory
                                        ls: /var/squidguard: No such file or directory
                                        ls: l: No such file or directory
                                        

                                        I guess it's like doktornotor
                                        Said

                                        /var/squidGuard is NOT the same thing like /var/squidguard

                                        1 Reply Last reply Reply Quote 0
                                        • K Offline
                                          kejianshi
                                          last edited by

                                          OK - got that…

                                          Have you tried using the correct case and spelling?

                                          At this point you should know that right?

                                          I'm not running squidguard or SquIdGuaRD or whatever, but if I were I bet that ls -l /var would show me the correct spelling of that...

                                          1 Reply Last reply Reply Quote 0
                                          • D Offline
                                            doktornotor Banned
                                            last edited by

                                            There's also this wonderful Tab key…

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