Navigation

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

    Squid Finalizando sozinho [RESOLVIDO]

    Portuguese
    4
    16
    1306
    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
      sarge88 last edited by

      boa tarde galera tudo tranquilo?

      to com um problema o squid do meu servidor esta finalizando sozinho depois de alguns minutos, e nao consigo manter ele funcionando nem reinciar o serviço. ele so volta a funcionar depois de reinicializar o servidor. alguem tem alguma ideia de como resolver isso?

      obrigado

      1 Reply Last reply Reply Quote 0
      • R
        rafamaximo2014 last edited by

        Qual seria a versão do seu squid e pfsense?

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

          meu squid e a versao 2.7.9 pkg v.4.3.4
          ja o pfsense ta usando o 2.0.1-RELEASE

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

            percebi tambem que o squid ta finalizando quando tenta acessar algum site que ele deveria bloquear.

            1 Reply Last reply Reply Quote 0
            • R
              rafamaximo2014 last edited by

              Primeiro atualize o Pfsense para 2.1.5-RELEASE.
              Segundo utilize o SQUID Available: 3.1.20 pkg 2.1.2
              Installed: 3.1.20 pkg 2.1.1

              Pode esta acontecendo problemas na sua versão por ser anterior a essa!

              1 Reply Last reply Reply Quote 0
              • S
                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
                  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
                    tomaswaldow last edited by

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

                    1 Reply Last reply Reply Quote 0
                    • marcelloc
                      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.

                      1 Reply Last reply Reply Quote 0
                      • S
                        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
                          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
                            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
                            • marcelloc
                              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
                              
                              1 Reply Last reply Reply Quote 0
                              • S
                                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
                                  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
                                    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

                                    Products

                                    • Platform Overview
                                    • TNSR
                                    • pfSense
                                    • Appliances

                                    Services

                                    • Training
                                    • Professional Services

                                    Support

                                    • Subscription Plans
                                    • Contact Support
                                    • Product Lifecycle
                                    • Documentation

                                    News

                                    • Media Coverage
                                    • Press
                                    • Events

                                    Resources

                                    • Blog
                                    • FAQ
                                    • Find a Partner
                                    • Resource Library
                                    • Security Information

                                    Company

                                    • About Us
                                    • Careers
                                    • Partners
                                    • Contact Us
                                    • Legal
                                    Our Mission

                                    We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

                                    Subscribe to our Newsletter

                                    Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

                                    © 2021 Rubicon Communications, LLC | Privacy Policy