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

    Openvpn não resolve nome!

    Scheduled Pinned Locked Moved Portuguese
    34 Posts 2 Posters 5.8k 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.
    • I
      idanielluiz @mcury
      last edited by

      @mcury

      Netbios tbm?

      c3b946bf-1e63-42b3-8439-667868821c31-image.png

      fed6e076-1d29-4c4f-8255-e820da352cc0-image.png

      M 1 Reply Last reply Reply Quote 0
      • M
        mcury Rebel Alliance @idanielluiz
        last edited by

        @idanielluiz said in Openvpn não resolve nome!:

        @mcury

        Netbios tbm?

        Sim, remova isso tb.

        dead on arrival, nowhere to be found.

        I 1 Reply Last reply Reply Quote 0
        • I
          idanielluiz @mcury
          last edited by

          @mcury Ola

          PC continuo resolvendo nome

          8538a0e5-50b3-4357-ba1c-ea5fbfc633c5-image.png

          Android ainda não
          0695c7eb-5ed7-4d93-a940-73ae952ae7da-image.png

          M 1 Reply Last reply Reply Quote 0
          • M
            mcury Rebel Alliance @idanielluiz
            last edited by

            @idanielluiz said in Openvpn não resolve nome!:

            PC continuo resolvendo nome

            Então a parte de DNS está OK, DNS voltou a funcionar, certo ?
            Pois o cliente vai começar a usar o DNS dele mesmo, que ele já tinha antes de conectar na VPN.
            Os acessos internos, serão feitos exclusivamente por IP.

            dead on arrival, nowhere to be found.

            I 1 Reply Last reply Reply Quote 0
            • I
              idanielluiz @mcury
              last edited by

              @mcury Ola

              Pc sim

              android ainda nao

              M 1 Reply Last reply Reply Quote 0
              • M
                mcury Rebel Alliance @idanielluiz
                last edited by

                @idanielluiz Não resolve nenhum nome pelo Android ?
                A internet para de funcionar no celular quando conecta na VPN ?

                dead on arrival, nowhere to be found.

                I 1 Reply Last reply Reply Quote 0
                • I
                  idanielluiz @mcury
                  last edited by

                  @mcury Ola

                  Quando conecto na vpn no cel ele so resolve por IP, isso falando acessos na minha rede local da vpn

                  na internet resolve normal?

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    mcury Rebel Alliance @idanielluiz
                    last edited by

                    @idanielluiz said in Openvpn não resolve nome!:

                    @mcury Ola

                    Quando conecto na vpn no cel ele so resolve por IP, isso falando acessos na minha rede local da vpn

                    na internet resolve normal?

                    Você quer resolver nomes internos ?
                    Ou você vai fazer os acessos a rede interna usando os IPs ?

                    dead on arrival, nowhere to be found.

                    I 1 Reply Last reply Reply Quote 0
                    • I
                      idanielluiz @mcury
                      last edited by

                      @mcury Ola

                      Ele resolve por IP mais nao por nome, gostaria que fosse pelos 2x

                      Isso falando da minha rede interna

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        mcury Rebel Alliance @idanielluiz
                        last edited by

                        @idanielluiz said in Openvpn não resolve nome!:

                        @mcury Ola

                        Ele resolve por IP mais nao por nome, gostaria que fosse pelos 2x

                        Isso falando da minha rede interna

                        Entendi, ok.

                        Você precisa fazer o seguinte então:
                        1- Lá no pfsense, você precisa configurar o OpenVPN para entregar o IP da LAN do pfSense, como servidor DNS para os clientes, da forma que falei em um post mais acima, mas ponha apenas o IP do pfsense lá, não ponha 8.8.8.8 e nenhum outro.

                        2- Vá nessa aba aqui do DNS Resolver (Unbound), e crie uma ACL permitindo o range da VPN de acessar o servidor:

                        f68fca16-0012-4227-958f-fa86a59c76cd-image.png

                        3- Confira as regras de firewall do OpenVPN, para confirmar se os clientes que conectarem vão ter acesso ao IP do Firewall na rede 192.168.100.0/24 na porta TCP/UDP 53.

                        4- Extraia novamente o arquivo .ovpn no pfsense e importe para o cliente e finalmente, teste novamente.

                        dead on arrival, nowhere to be found.

                        I 1 Reply Last reply Reply Quote 0
                        • I
                          idanielluiz @mcury
                          last edited by

                          @mcury , veja se esta correto?

                          7cc56349-4051-4076-866e-46cab99672d5-image.png
                          7a3d004d-4130-4930-91c8-a51f6918a1b0-image.png
                          bb13335d-edd7-4a8e-a104-317094114722-image.png

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            mcury Rebel Alliance @idanielluiz
                            last edited by mcury

                            @idanielluiz CORRIGINDO: está errado.

                            Você está entregando domain name e não servidor DNS.

                            Apague o domain name, e desmarque essa opção.

                            Marque a opção DNS Server Enable, Provide a DNS server list to clients e ponha lá o IP 192.168.100.1

                            dead on arrival, nowhere to be found.

                            I 1 Reply Last reply Reply Quote 0
                            • I
                              idanielluiz @mcury
                              last edited by

                              @mcury Feito

                              todas as configuracoe estao certas? vou validar agora desligando o vivo

                              d791aab8-b344-4203-a373-5f0a37747adc-image.png

                              M 1 Reply Last reply Reply Quote 0
                              • M
                                mcury Rebel Alliance @idanielluiz
                                last edited by

                                @idanielluiz tudo parece correto agora.

                                Exporte novamente os arquivos .ovpn para os dispositivos antes de testar.

                                dead on arrival, nowhere to be found.

                                I 1 Reply Last reply Reply Quote 0
                                • I
                                  idanielluiz @mcury
                                  last edited by

                                  @mcury ainda não resolve nome no android

                                  Se que não devo fazer algo no cel?

                                  pq no pc funciona

                                  M 1 Reply Last reply Reply Quote 0
                                  • M
                                    mcury Rebel Alliance @idanielluiz
                                    last edited by

                                    @idanielluiz said in Openvpn não resolve nome!:

                                    ainda não resolve nome no android

                                    você fez o export do .ovpn no pfsense e importou novamente para o android ?

                                    dead on arrival, nowhere to be found.

                                    I 1 Reply Last reply Reply Quote 0
                                    • I
                                      idanielluiz @mcury
                                      last edited by

                                      @mcury sim

                                      M 1 Reply Last reply Reply Quote 0
                                      • M
                                        mcury Rebel Alliance @idanielluiz
                                        last edited by mcury

                                        @idanielluiz ok, e pelo IP o acesso, pelo android, funciona.
                                        Você está tentando digitar o FQDN inteiro ou apenas o primeiro nome ?

                                        Tente o nome inteiro, por exemplo, hostname.domain.arpa ao invés de apenas hostname.

                                        dead on arrival, nowhere to be found.

                                        I 1 Reply Last reply Reply Quote 0
                                        • I
                                          idanielluiz @mcury
                                          last edited by

                                          @mcury Ola, segue. fiz agora, permanece com erro

                                          5a14f449-208e-46c0-9cb2-c5bc279e6860-image.png
                                          f13df2f0-961e-49ad-98a6-d9bc488de7b7-image.png

                                          M 1 Reply Last reply Reply Quote 0
                                          • M
                                            mcury Rebel Alliance @idanielluiz
                                            last edited by

                                            @idanielluiz no android, você está tentando enquanto conectado na rede WIFI atrás do pfSense ?
                                            Caso sim, tente exclusivamente usando o plano de dados.

                                            Teria como testar o DNS usando outro aplicativo no seu celular ?
                                            Tem alguns aplicativos de network test que você pode instalar para pingar endereços, testar resolução de nomes etc.

                                            dead on arrival, nowhere to be found.

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