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

Squid+SquidGuard не работает фильтрация

Scheduled Pinned Locked Moved Russian
16 Posts 3 Posters 1.5k Views 2 Watching
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.
  • R Offline
    randreevich @werter
    last edited by Jan 27, 2021, 1:22 PM

    @werter

    [squid] Installed but not started. Not installing 'nat' rules.
    [squid] Installed but not started. Not installing 'pfearly' rules.
    [squid] Installed but not started. Not installing 'filter' rules.

    В конце:
    swap_pager_getswapspace: failed

    Потом появилась:
    PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 12393285664 bytes) in /usr/local/www/diag_edit.php on line 51

    W 1 Reply Last reply Jan 27, 2021, 1:24 PM Reply Quote 0
    • W Offline
      werter @randreevich
      last edited by werter Jan 27, 2021, 1:24 PM Jan 27, 2021, 1:24 PM

      @randreevich
      Проверить место на диске ?
      Грохнуть оба, почистить остатки, ребут, установка заново сквида, проверка, установка гварда.

      R 1 Reply Last reply Jan 27, 2021, 1:30 PM Reply Quote 0
      • R Offline
        randreevich @werter
        last edited by Jan 27, 2021, 1:30 PM

        @werter
        Место есть.
        memory.png

        Как почистить?
        После переустановки и чистки правила не сохраняются?

        W 1 Reply Last reply Jan 28, 2021, 12:04 PM Reply Quote 0
        • W Offline
          werter @randreevich
          last edited by werter Jan 28, 2021, 12:04 PM Jan 28, 2021, 12:04 PM

          @randreevich

          Как почистить?

          Посмотрите про команду find в никсах. Выполните РЕКУРСИВНЫЙ поиск с корня по слову 'squid'.
          Т.е. удаляется сквид и гвард и выполняете поиск по слову 'squid'. Все найденное удаляется. На свой страх и риск, ес-но.
          Про бэкап конфига вначале действа напомнил.

          https://stackoverflow.com/questions/5905054/how-can-i-recursively-find-all-files-in-current-and-subfolders-based-on-wildcard

          Что-то типа:
          find / -type f -iname "*squid*"
          find / -type d -iname "*squid*"

          R 1 Reply Last reply Jan 28, 2021, 12:25 PM Reply Quote 1
          • R Offline
            randreevich @werter
            last edited by Jan 28, 2021, 12:25 PM

            @werter
            Спасибо!
            Уже не было времени на эксперименты.
            Добавил оперативки, восстановился с бэкапа за прошлый месяц, все работает.

            Все равно появляется:
            [squid] Installed but not started. Not installing 'nat' rules.
            [squid] Installed but not started. Not installing 'pfearly' rules.
            [squid] Installed but not started. Not installing 'filter' rules.

            Но фильтрация работает.

            Посмотрим......, но, что то мне кажется, где то косяк в пфсенсе.

            V W 2 Replies Last reply Jan 28, 2021, 2:28 PM Reply Quote 0
            • V Offline
              viktor_g Netgate @randreevich
              last edited by Jan 28, 2021, 2:28 PM

              @randreevich удалять всё излишне, достаточно /var/squid/ и пересоздать кэш

              какая у вас версия pfSense / squid ?

              R 1 Reply Last reply Jan 28, 2021, 3:45 PM Reply Quote 0
              • W Offline
                werter @randreevich
                last edited by werter Jan 28, 2021, 3:24 PM Jan 28, 2021, 3:14 PM

                @randreevich said in Squid+SquidGuard не работает фильтрация:

                [squid] Installed but not started. Not installing 'nat' rules.

                https://forum.netgate.com/topic/113490/squid-and-squidguard-are-not-starting/

                go to the console and do next:
                'stop squid'
                'cat /usr/local/etc/squid/squid.conf|grep cache_dir'
                And see where is your cache dir in config file.
                Check if path is present or change path in config
                next
                'rm -rf /…//.../cache' and make new 'squid -z'
                'start squid'

                R 2 Replies Last reply Jan 28, 2021, 4:10 PM Reply Quote 1
                • R Offline
                  randreevich @viktor_g
                  last edited by Jan 28, 2021, 3:45 PM

                  @viktor_g
                  squid 0.4.44_36 (4.1)
                  squidguard-1.16.18_12
                  pfSense 2.4.5

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    randreevich @werter
                    last edited by Jan 28, 2021, 4:10 PM

                    @werter said in Squid+SquidGuard не работает фильтрация:

                    @randreevich said in Squid+SquidGuard не работает фильтрация:

                    [squid] Installed but not started. Not installing 'nat' rules.

                    https://forum.netgate.com/topic/113490/squid-and-squidguard-are-not-starting/

                    go to the console and do next:
                    'stop squid'
                    'cat /usr/local/etc/squid/squid.conf|grep cache_dir'
                    And see where is your cache dir in config file.
                    Check if path is present or change path in config
                    next
                    'rm -rf /…//.../cache' and make new 'squid -z'
                    'start squid'

                    Сделал....
                    Путь присутствовал /var/squid/cache
                    squid -z - пересоздал. Работает, логи пока без аномалий,
                    Наблюдаю....

                    R 1 Reply Last reply Feb 10, 2021, 2:18 PM Reply Quote 0
                    • R Offline
                      randreevich @randreevich
                      last edited by Feb 10, 2021, 2:18 PM

                      Всем привет.

                      Опять в логах:

                      [squid] Installed but not started. Not installing 'nat' rules.
                      [squid] Installed but not started. Not installing 'pfearly' rules.
                      [squid] Installed but not started. Not installing 'filter' rules.

                      фильтрация не работает.
                      Что делать?

                      R 1 Reply Last reply Feb 13, 2021, 10:01 AM Reply Quote 0
                      • R Offline
                        randreevich @randreevich
                        last edited by Feb 13, 2021, 10:01 AM

                        Какая альтернатива Squid, SquidGuard с возможностью создания отчетов как в Lightsquid?

                        1 Reply Last reply Reply Quote 0
                        • R Offline
                          randreevich @werter
                          last edited by randreevich Feb 13, 2021, 11:10 AM Feb 13, 2021, 11:06 AM

                          @werter

                          Еще в логах

                          [alert] 6083#100196: *1444 writev() failed (13: Permission denied) while sending to client, client: 192.168.11.14, server: , request: "POST /pkg_edit.php?xml=squidguard.xml&id=0 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.socket", host: "192.168.11.241", referrer: "http://192.168.11.241/pkg_edit.php?xml=squidguard.xml&id=0"

                          192.168.11.241 - pfSense

                          pfSense кстати на виртуалке Proxmox.

                          1 Reply Last reply Reply Quote 0
                          • R Offline
                            randreevich @werter
                            last edited by Feb 15, 2021, 7:17 AM

                            https://forum.netgate.com/topic/113490/squid-and-squidguard-are-not-starting/

                            go to the console and do next:
                            'stop squid'
                            'cat /usr/local/etc/squid/squid.conf|grep cache_dir'
                            And see where is your cache dir in config file.
                            Check if path is present or change path in config
                            next
                            'rm -rf /…//.../cache' and make new 'squid -z'
                            'start squid'

                            На сегодня после всего выше:

                            FATAL: Squid is already running: Found fresh instance PID file (/var/run/squid/squid.pid) with PID 85442
                            exception location: Instance.cc(121) ThrowIfAlreadyRunningWith

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                              This community forum collects and processes your personal information.
                              consent.not_received