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

    Squid Finalizando sozinho [RESOLVIDO]

    Scheduled Pinned Locked Moved Portuguese
    16 Posts 4 Posters 2.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.
    • S Offline
      sarge88
      last edited by

      blz entao, tem algum tutorial por aqui de como atualizar pra essa versão?
      e as configuraçoes atuais irão continuar na nova versao ou eu teria que reconfigurar todo o pfsense?

      1 Reply Last reply Reply Quote 0
      • S Offline
        sarge88
        last edited by

        alguem tem o link de onde baixar o arquivo pra atualizar o pfsense?

        1 Reply Last reply Reply Quote 0
        • T Offline
          tomaswaldow
          last edited by

          Não tem link, você baixa pela interface web no mesmo local onde baixou as outras versões.

          Tomas @ 2W Consultoria

          1 Reply Last reply Reply Quote 0
          • marcellocM Offline
            marcelloc
            last edited by

            sarge88,

            Os logs vão te dar um norte para saber o que está fazendo o squid cair.

            Apesar de estar usando uma versão bem antiga, não atualize para a 2.2 em ambiente de produção ainda como você pode ver nos outros tópicos, alguns pacotes não estão ok para a 2.2 e você pode ter problemas com o boot dependendo do seu hardware.

            Sugiro montar um laboratório e testar antes.

            Treinamentos de Elite: http://sys-squad.com

            Help a community developer! ;D

            1 Reply Last reply Reply Quote 0
            • S Offline
              sarge88
              last edited by

              fiz como o rafamaximo2014 disse, atualizei o pfsense para a versao 2.1.5
              instalei o squid3, mas vi em algum lugar que o squidguard nao era compativel com esse pacote.
              alguem sabe me dizer se verdade isso?

              1 Reply Last reply Reply Quote 0
              • S Offline
                sarge88
                last edited by

                instalei o squid3 porem ele fez da mesma forma que o squid anteriormente, entao instalei o squid 2.7.9 ele nao cai mas em compensação ta bloqueando tudo quando ativo o proxy transparente. alem disso squidGuard nao inicializa o serviço de jeito nenhum

                1 Reply Last reply Reply Quote 0
                • S Offline
                  sarge88
                  last edited by

                  verifiquei tambem os logs do Squid como o marcelloc disse e vi o seguinte erro

                  squid[64348]: Failed to verify one of the swap directories, Check cache.log for details. Run 'squid -z' to create swap directories if needed, or if running Squid for the first time.

                  alguem sabe me dizer do que se trata?

                  1 Reply Last reply Reply Quote 0
                  • marcellocM Offline
                    marcelloc
                    last edited by

                    O pacote cria o cache sozinho, mas veja via console como esta o seu squid com o comando

                      squid -k parse
                    

                    Treinamentos de Elite: http://sys-squad.com

                    Help a community developer! ;D

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      sarge88
                      last edited by

                      rodei o comando aqui no console e deu esta mensagem
                      WARNING: Error Directory /usr/pbi/squid-amd64/etc/squid/errors/pt-br: (2) No such file or directory

                      entao troquei o idioma para english e nao mais apareceu essa mensagem apos executar o comando squid -k parse
                      mas o system log me mostrou esse outro erro

                      php: /pkg_edit.php: The command '/usr/pbi/squid-amd64/sbin/squid -k reconfigure' returned exit code '1', the output was 'squid: ERROR: No running copy'

                      porem ativando o proxy transparente o squid continua bloqueando tudo e aparecendo esta mensagem no lugar da pagina.


                      ERROR

                      The requested URL could not be retrieved

                      While trying to process the request:

                      GET / HTTP/1.1
                      Host: tecmundo.com.br
                      Connection: keep-alive
                      Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
                      User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.93 Safari/537.36
                      Accept-Encoding: gzip, deflate, sdch
                      Accept-Language: pt-BR,pt;q=0.8,en-US;q=0.6,en;q=0.4
                      Cookie: __utmt=1; __gads=ID=937e8b406cf84246:T=1422369482:S=ALNI_MY8R2DxHOsYGla4XRbONnaT_g2T9w; __utma=45109281.1907218561.1422365895.1422365895.1422365895.1; __utmb=45109281.3.9.1422365905416; __utmc=45109281; __utmz=45109281.1422365895.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

                      The following error was encountered:

                      Invalid Request
                      Some aspect of the HTTP Request is invalid. Possible problems:

                      Missing or unknown request method
                      Missing URL
                      Missing HTTP Identifier (HTTP/1.0)
                      Request is too large
                      Content-Length missing for POST or PUT requests
                      Illegal character in hostname; underscores are not allowed
                      Your cache administrator is webmaster.


                      se alguém puder me dar uma luz ai, estou precisando muito fazer o squid + squidGuard funcionar

                      obrigado

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        sarge88
                        last edited by

                        o log do sistema também me mostrou esse erro

                        php: rc.filter_configure_sync: The gateway: Gatewaylocal is invalid or unknown, not using it.

                        1 Reply Last reply Reply Quote 0
                        • S Offline
                          sarge88
                          last edited by

                          consegui resolver o problema do Squid referente a esta mensagem


                          ERROR

                          The requested URL could not be retrieved

                          While trying to process the request:

                          GET / HTTP/1.1
                          Host: tecmundo.com.br
                          Connection: keep-alive
                          Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
                          User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.93 Safari/537.36
                          Accept-Encoding: gzip, deflate, sdch
                          Accept-Language: pt-BR,pt;q=0.8,en-US;q=0.6,en;q=0.4
                          Cookie: __utmt=1; __gads=ID=937e8b406cf84246:T=1422369482:S=ALNI_MY8R2DxHOsYGla4XRbONnaT_g2T9w; __utma=45109281.1907218561.1422365895.1422365895.1422365895.1; __utmb=45109281.3.9.1422365905416; __utmc=45109281; __utmz=45109281.1422365895.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

                          The following error was encountered:

                          Invalid Request
                          Some aspect of the HTTP Request is invalid. Possible problems:

                          Missing or unknown request method
                          Missing URL
                          Missing HTTP Identifier (HTTP/1.0)
                          Request is too large
                          Content-Length missing for POST or PUT requests
                          Illegal character in hostname; underscores are not allowed
                          Your cache administrator is webmaster.


                          e tambem consegui resolver o problema do squidGuard nao iniciar, depois de muita dor de cabeça descobri que precisava limpar o cache do squid através do comando

                          rm -r /var/squid/cache/*

                          e incializar novamente pela interface ou pelo comando

                          squid -z

                          este e o link onde achei a soluçao.

                          http://cpdsolucoes.com.br/site/blog/?p=110

                          obrigado a todos.

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