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

    How do I delete the cache of Squid

    Scheduled Pinned Locked Moved General pfSense Questions
    14 Posts 5 Posters 49.0k 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.
    • D
      dataking
      last edited by

      There should be an option on the squid cache to clear it, but I don't see it (I'm using the squid3 package).

      SSH into your pfsense and cd /var/squid/cache, rm -rf *.  lol

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

        i am also using squid3
        didnt find clear cache option

        how do i use ssh ?

        1 Reply Last reply Reply Quote 0
        • N
          noremacyug
          last edited by

          @firefox:

          i am also using squid3
          didnt find clear cache option

          how do i use ssh ?

          it's easy.  go to "system -> advanced -> admin access" and make sure to tick the "enable secure shell" box.  then click save.  next, download a program called winscp, its free.  once you've installed winscp, run it and click on "session" on the tree.  put in your "hostname" which will be your pfsense box ip, the default port number of 22 is what pfsense is set to unless you changed it somehow.  put your "root" username and password in and hit login.  you should get a prompt regarding a key or something, just accept it.  you can then browse your pfsense box's file system on the right pane.  the left pane is your computers file system.

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

            i am using linux ubuntu

            Is there a parallel software to winscp for linux

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

              scp on command line at least if not any other

              1 Reply Last reply Reply Quote 0
              • D
                dataking
                last edited by

                @firefox:

                i am using linux ubuntu

                Is there a parallel software to winscp for linux

                Open up a terminal and

                ssh admin@yourpfssensebox
                
                1 Reply Last reply Reply Quote 0
                • F
                  firefox
                  last edited by

                  i use this command
                  and i got to this

                  1. Logout (SSH only)                                8) Shell
                  2. Assign Interfaces                                9) pfTop
                  3. Set interface(s) IP address                  10) Filter Logs
                  4. Reset webConfigurator password      11) Restart webConfigurator
                  5. Reset to factory defaults                    12) pfSense Developer Shell
                  6. Reboot system                                    13) Upgrade from console
                  7. Halt system                                        14) Disable Secure Shell (sshd)
                  8. Ping host

                  this is the same screen i have in the old computer i install pfsense
                  how i can see squid cache from here ?

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

                    at least press 8 to go shell. But i don't know any further

                    1 Reply Last reply Reply Quote 0
                    • D
                      dataking
                      last edited by

                      @Metu69salemi:

                      at least press 8 to go shell. But i don't know any further

                      `cd /var/squid/cache`, `rm -rf *`??
                      
                      1 Reply Last reply Reply Quote 0
                      • F
                        firefox
                        last edited by

                        i get an error says
                        there to many Parameters

                        `cd /var/squid/cache`, `rm -rf *`??
                        
                        1 Reply Last reply Reply Quote 0
                        • M
                          Metu69salemi
                          last edited by

                          I've read this that you have to use several phases
                          first

                          
                          cd /var/squid/cache
                          
                          

                          and then

                          rm -rf *
                          
                          1 Reply Last reply Reply Quote 0
                          • F
                            firefox
                            last edited by

                            It did not do anything
                            the mark go only one line down

                            1 Reply Last reply Reply Quote 0
                            • F
                              fluca1978
                              last edited by

                              You have to stop squid, then from  a shell the command

                              squid -z
                              

                              should suffice (it recreates the swap area, and therefore should clean also the cache).

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