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

    Captive Portal - nginx Bad Gateway 502

    Scheduled Pinned Locked Moved Captive Portal
    3 Posts 2 Posters 1.4k 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
      krashneo
      last edited by

      Olá Pessoal,

      Estou com o PFSense 2.3.2-RELEASE-p1 (amd64) onde configurei Captive Portal + freeRadius (+LDAP) + Squid (Transparent) + SquidGuard.

      Criei um php personalizado para autenticação no Captive Portal e fiz upload. A autenticação funciona normalmente e a navegação fica liberada após, mas em determinados momentos algumas tentativas de login aparece a mensagem, assim como para acessar o WebConfigurator:

      502 Bad Gateway - nginx

      Alguém poderia me ajudar?

      log System - General em anexo

      Obrigado
      ![nginx log.JPG](/public/imported_attachments/1/nginx log.JPG)
      ![nginx log.JPG_thumb](/public/imported_attachments/1/nginx log.JPG_thumb)

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        I see a lot of "login errors" etc.
        Can you clear that first ?
        Things will be easier to understand afterwards, you'll see ;)

        If not => go here : Español

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • K
          krashneo
          last edited by

          Hello Gertjan, thanks for your reply!

          I discovered the issue, I had enabled the following options in Captive Portal settings:

          • Reauthentication - Reauthenticate connected users every minute

          • RADIUS MAC Authentication - Enable RADIUS MAC authentication

          So, when I disabled them, the php-fpm service decreased the CPU usage and now everithing is fine!

          Regards


          Olá Gertjan, obrigado por responder!

          Eu descobri o problema, eu tinha habilitado as opções abaixo nas configurações do Captive Portal:

          • Reauthentication - Reauthenticate connected users every minute

          • RADIUS MAC Authentication - Enable RADIUS MAC authentication

          Então quando desabilitei, o serviço php-fpm diminui o consumo de CPU e agora está tudo funcionando!

          Abraços

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