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

    Captive Portal - Problema na configuração

    Scheduled Pinned Locked Moved Portuguese
    21 Posts 4 Posters 5.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.
    • L
      leotomé
      last edited by

      Olha os Prints aí: Tá bem básico mesmo, não mexi em nada.



      O Restante é tudo padrão.

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

        coloque o captive só na lan e veja se tem um resultado diferente.

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

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • T
          thimoura
          last edited by

          Em "Pass-Through credits allowed per MAC Address"

          Deixe "0".

          1 Reply Last reply Reply Quote 0
          • L
            leotomé
            last edited by

            @marcelloc:

            coloque o captive só na lan e veja se tem um resultado diferente.

            Já fiz isso, mas não funcionou.

            1 Reply Last reply Reply Quote 0
            • L
              leotomé
              last edited by

              Fiz um teste aqui…digitei http:"meu IP do Pfsense":8000/index.php?redirurl=http%3A%2F%2Fwww.uol.com.br%2F
              Com isso abriu a tela de login e consegui acessar. Mas se eu simplesmente abrir o navegador pra acessar ele não chega na tela de login e a internet parece não funcionar. Não tô entendendo mais nada ???

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

                use o tcpdump na console/ssh do pfsense para ver os pacotes chegando.

                para listar as regras do ipfw(onde o captive portal é habilitado), use ipfw show

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

                Help a community developer! ;D

                1 Reply Last reply Reply Quote 0
                • L
                  leotomé
                  last edited by

                  Não tô sabendo o que fazer…. Já desinstalei e instalei novamente o Pfsense e refiz todas as configurações e deu o mesmo problema.
                  Tá osso isso daqui. :(

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

                    @leotomé:

                    Tá osso isso daqui. :(

                    conseguiu usar o tcpdump?

                    o que o ipfw show mostoru?

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

                    Help a community developer! ;D

                    1 Reply Last reply Reply Quote 0
                    • L
                      leotomé
                      last edited by

                      @marcelloc:

                      @leotomé:

                      Tá osso isso daqui. :(

                      conseguiu usar o tcpdump?

                      o que o ipfw show mostoru?

                      O ipfw mostrou o seguinte:
                      65291    0        0 allow pfsync from any to any
                      65292    0        0 allow carp from any to any
                      65301    20      740 allow ip from any to any layer2 mac-type 0x0806
                      65302    0        0 allow ip from any to any layer2 mac-type 0x888e
                      65303    0        0 allow ip from any to any layer2 mac-type 0x88c7
                      65304    0        0 allow ip from any to any layer2 mac-type 0x8863
                      65305    0        0 allow ip from any to any layer2 mac-type 0x8864
                      65306    0        0 allow ip from any to any layer2 mac-type 0x888e
                      65307    0        0 deny ip from any to any layer2 not mac-type 0x0800
                      65310  2237  322838 allow ip from any to { 255.255.255.255 or 192.168.0.1 } in
                      65311  4451  1265725 allow ip from { 255.255.255.255 or 192.168.0.1 } to any out
                      65312    0        0 allow icmp from { 255.255.255.255 or 192.168.0.1 } to any out icmptypes 0
                      65313    0        0 allow icmp from any to { 255.255.255.255 or 192.168.0.1 } in icmptypes 8
                      65314    0        0 allow ip from table(3) to any in
                      65315    0        0 allow ip from any to table(4) out
                      65316    0        0 pipe tablearg ip from table(5) to any in
                      65317    0        0 pipe tablearg ip from any to table(6) out
                      65318    0        0 allow ip from any to table(7) in
                      65319    0        0 allow ip from table(8) to any out
                      65320    0        0 pipe tablearg ip from any to table(9) in
                      65321    0        0 pipe tablearg ip from table(10) to any out
                      65322 20788  2247308 allow ip from table(1) to any in
                      65323 26824 27438219 allow ip from any to table(2) out
                      65531  423    36174 fwd 127.0.0.1,8000 tcp from any to any in
                      65532  440    24509 allow tcp from any to any out
                      65533  683    42053 deny ip from any to any
                      65534    0        0 allow ip from any to any layer2
                      65535    0        0 allow ip from any to any

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

                        @leotomé:

                        O ipfw mostrou o seguinte:

                        Estas são as regras que tem trafego "batendo":

                        65301    20      740 allow ip from any to any layer2 mac-type 0x0806
                        65310  2237   322838 allow ip from any to { 255.255.255.255 or 192.168.0.1 } in
                        65311  4451  1265725 allow ip from { 255.255.255.255 or 192.168.0.1 } to any out

                        65322 20788  2247308 allow ip from table(1) to any in
                        65323 26824 27438219 allow ip from any to table(2) out
                        65531   423    36174 fwd 127.0.0.1,8000 tcp from any to any in
                        65532   440    24509 allow tcp from any to any out
                        65533   683    42053 deny ip from any to any

                        Aparentemente o seu squid em modo transparente está capturando o trafego antes do captive portal.

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

                        Help a community developer! ;D

                        1 Reply Last reply Reply Quote 0
                        • L
                          leotomé
                          last edited by

                          O que devo fazer então?

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

                            @leotomé:

                            O que devo fazer então?

                            Tente desabilitar o proxy transparente.

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

                            Help a community developer! ;D

                            1 Reply Last reply Reply Quote 0
                            • L
                              leotomé
                              last edited by

                              Marcelo, fiz um teste aqui…

                              Eu configurei o DHCP Server e coloquei a máquina cliente com IP automático e o captive portal funcionou. O problema é que não queria que funcionasse assim. Quero as máquinas clientes com IP Fixo e com o proxy transparente.

                              Tem como?

                              1 Reply Last reply Reply Quote 0
                              • L
                                leotomé
                                last edited by

                                Opa! Acho que encontrei o erro!!
                                Coloquei a máquina com IP fixo e no DNS coloquei o IP do Pfsense e funcionou de boa!
                                Fiz certo?  :D

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

                                  Se funcionou, entao fez certo ;)

                                  Provavelmente o erro pode estar nas configurações do dhcp

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

                                  Help a community developer! ;D

                                  1 Reply Last reply Reply Quote 0
                                  • L
                                    leotomé
                                    last edited by

                                    @marcelloc:

                                    Se funcionou, entao fez certo ;)

                                    Provavelmente o erro pode estar nas configurações do dhcp

                                    Valeu cara!  ;D

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

                                      @leotomé:

                                      O que devo fazer então?

                                      Verifica suas regras então, ué  ???

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