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 Ola

      Perdao desculpe as perguntas

      Onde vejo no client se estou recebendo o dns?
      Você está tentando criar um split tunnel ou um full tunnel ( Oque seria isso?)
      Onde coloco as informações do IP do firewall?

      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

        Perdao desculpe as perguntas

        Onde vejo no client se estou recebendo o dns?
        Você está tentando criar um split tunnel ou um full tunnel ( Oque seria isso?)
        Onde coloco as informações do IP do firewall?

        Split tunnel, você ganha acesso aos recursos da rede 192.168.100.0/24 apenas, mas não sai pela Internet remota, você continua usando a Internet local.
        Full tunnel, você ganha o acesso aos recursos da rede 192.168.100.0/24, e começa também a sair pela Internet remota, usando a internet do pfsense.

        Lá na configuração do pfsense, ponha o IP do pfsense na parte de IP de DNS, remova 8.8.8.8 e etc.

        dead on arrival, nowhere to be found.

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

          @mcury acabei de fazeer 2x testes

          no note funciona e no android onde gostaria mesmo não funcioana

          Log do android
          2024-01-12 08:42:58 Last exit reason reported by Android for UI Process: ApplicationExitInfo(timestamp=12/01/2024, 08:42 pid=25307 realUid=10590 packageUid=10590 definingUid=10590 user=0 process=de.blinkt.openvpn reason=13 (OTHER KILLS BY SYSTEM) subreason=0 (UNKNOWN) status=0 importance=400 pss=0,00 rss=0,00 description=AL_Kill : over 3 sec state=empty trace=null
          2024-01-12 09:15:47 Recarregar (714) itens do arquivo cache de registro
          2024-01-12 09:15:47 Reiniciando o OpenVPN Service (App caiu provavelmente caiu ou morto para pressão de memória)
          2024-01-12 09:15:47 Fetched VPN profile (android_pfSense-UDP4-1194-daniel.pimentel-connect-config) triggered by Using last connected profile (started with null intent, always-on or restart after crash)
          2024-01-12 09:15:47 Scheduling VPN keep alive for VPN android_pfSense-UDP4-1194-daniel.pimentel-connect-config
          2024-01-12 09:15:47 started Socket Thread
          2024-01-12 09:15:47 P:WARNING: linker: Warning: "/data/app/~~8y9CUlPp0UgYBSGY5spkrw==/de.blinkt.openvpn-_q0GkNiFKPqwl9zP-Bw9xg==/lib/arm64/libovpnexec.so" is not a directory (ignoring)
          2024-01-12 09:15:47 Status da rede: CONNECTED to WIFI
          2024-01-12 09:15:47 Debug state info: CONNECTED to WIFI , pause: userPause, shouldbeconnected: true, network: SHOULDBECONNECTED
          2024-01-12 09:15:47 Debug state info: CONNECTED to WIFI , pause: userPause, shouldbeconnected: true, network: SHOULDBECONNECTED
          2024-01-12 09:15:47 Current Parameter Settings:
          2024-01-12 09:15:47 config = 'stdin'
          2024-01-12 09:15:47 mode = 0
          2024-01-12 09:15:47 show_ciphers = DISABLED
          2024-01-12 09:15:47 show_digests = DISABLED
          2024-01-12 09:15:47 show_engines = DISABLED
          2024-01-12 09:15:47 genkey = DISABLED
          2024-01-12 09:15:47 genkey_filename = '[UNDEF]'
          2024-01-12 09:15:47 key_pass_file = '[UNDEF]'
          2024-01-12 09:15:47 show_tls_ciphers = DISABLED
          2024-01-12 09:15:47 connect_retry_max = 0
          2024-01-12 09:15:47 Connection profiles [0]:
          2024-01-12 09:15:47 proto = udp
          2024-01-12 09:15:47 local = '[UNDEF]'
          2024-01-12 09:15:47 local_port = '[UNDEF]'
          2024-01-12 09:15:47 remote = 'pimentells.ddns.net'
          2024-01-12 09:15:47 remote_port = '1194'
          2024-01-12 09:15:47 remote_float = DISABLED
          2024-01-12 09:15:47 bind_defined = DISABLED
          2024-01-12 09:15:47 bind_local = DISABLED
          2024-01-12 09:15:47 bind_ipv6_only = DISABLED
          2024-01-12 09:15:47 connect_retry_seconds = 2
          2024-01-12 09:15:47 connect_timeout = 120
          2024-01-12 09:15:47 socks_proxy_server = '[UNDEF]'
          2024-01-12 09:15:47 socks_proxy_port = '[UNDEF]'
          2024-01-12 09:15:47 tun_mtu = 1500
          2024-01-12 09:15:47 tun_mtu_defined = ENABLED
          2024-01-12 09:15:47 link_mtu = 1500
          2024-01-12 09:15:47 link_mtu_defined = DISABLED
          2024-01-12 09:15:47 tun_mtu_extra = 0
          2024-01-12 09:15:47 tun_mtu_extra_defined = DISABLED
          2024-01-12 09:15:47 tls_mtu = 1250
          2024-01-12 09:15:47 mtu_discover_type = -1
          2024-01-12 09:15:47 fragment = 0
          2024-01-12 09:15:47 mssfix = 1492
          2024-01-12 09:15:47 mssfix_encap = ENABLED
          2024-01-12 09:15:47 mssfix_fixed = DISABLED
          2024-01-12 09:15:47 explicit_exit_notification = 1
          2024-01-12 09:15:47 tls_auth_file = '[INLINE]'
          2024-01-12 09:15:47 key_direction = 1
          2024-01-12 09:15:47 tls_crypt_file = '[UNDEF]'
          2024-01-12 09:15:47 tls_crypt_v2_file = '[UNDEF]'
          2024-01-12 09:15:47 Connection profiles END
          2024-01-12 09:15:47 remote_random = DISABLED
          2024-01-12 09:15:47 ipchange = '[UNDEF]'
          2024-01-12 09:15:47 dev = 'tun'
          2024-01-12 09:15:47 dev_type = '[UNDEF]'
          2024-01-12 09:15:47 dev_node = '[UNDEF]'
          2024-01-12 09:15:47 lladdr = '[UNDEF]'
          2024-01-12 09:15:47 topology = 1
          2024-01-12 09:15:47 ifconfig_local = '[UNDEF]'
          2024-01-12 09:15:47 ifconfig_remote_netmask = '[UNDEF]'
          2024-01-12 09:15:47 ifconfig_noexec = DISABLED
          2024-01-12 09:15:47 ifconfig_nowarn = ENABLED
          2024-01-12 09:15:47 ifconfig_ipv6_local = '[UNDEF]'
          2024-01-12 09:15:47 ifconfig_ipv6_netbits = 0
          2024-01-12 09:15:47 ifconfig_ipv6_remote = '[UNDEF]'
          2024-01-12 09:15:47 shaper = 0
          2024-01-12 09:15:47 mtu_test = 0
          2024-01-12 0

          LOG WINDOWS
          2cf1fbcb-31e7-4df0-83bf-f03ae02eb752-image.png

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

            @idanielluiz Ok, reparei agora que você está usando o SPLIT tunnel.

            Se você está configurando split tunnel, por que você está provendo DNS pros clientes ?
            Deixe que usem o DNS deles mesmo, não precisam de DNS pro túnel.

            Como os clientes vão acessar 8.8.8.8 por dentro do túnel ?
            8.8.8.8 fica na Internet e você não está dando acesso full por dentro do túnel.

            Remova as configurações de DNS do openVPN e tente novamente.

            dead on arrival, nowhere to be found.

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

              @mcury oLA

              desmarco tudo aqui?

              https://forum.netgate.com/assets/uploads/files/1705061805570-764f11e4-7d60-433d-baea-58707fe17456-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!:

                desmarco tudo aqui?

                sim.
                Split-tunnel só precisa de DNS se você fosse acessar os recursos internos da rede por nome.
                Você não vai estar fazendo isso, nesse caso, pode desmarcar todas as opções de DNS, e ao conectar na VPN, use o IP direto para acessar os recursos da rede 192.168.100.0/24

                dead on arrival, nowhere to be found.

                1 Reply Last reply Reply Quote 0
                • 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
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.