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

    I need HELP on DNS RESOLVER!

    Scheduled Pinned Locked Moved DHCP and DNS
    78 Posts 6 Posters 15.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.
    • E
      emirefek @Gertjan
      last edited by

      @gertjan Cloudflare DNS is blocked in my country. Is DNSoverTLS forcing to use quad9 servers. Dosent work with roots?

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        forwarding is not resolving... The only way to get past a block without forwarding is vpn.. So you can talk to whoever you want via the vpn connection.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        E 1 Reply Last reply Reply Quote 0
        • E
          emirefek @johnpoz
          last edited by emirefek

          @johnpoz yeah VPN connection is nice choise but can we fix that without it? I can solve domains with other dns servers. With other dns servers I can reach sites. But My ISP modifying roots. I think DNSoverTLS is good choice for this. I dont know how its working clearly but. Can ISP replicate DSN TLS's too?

          edit: I dont want vpn becuse we are using too much goverment websites in office and we need that. In turkey no one sells vpn its pointless(our goverment blocking everything)

          edit: oh sorry now I understand your post. I will try to use it. Can I use pfblocker with forwarding?

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            you don't need to send your traffic down the vpn.. If you want to just be able to resolve then fire up a vps somwhere, create vpn tunnel to it and run your dns through that connection.

            Or just run resolve on it - and then run tls forwarding to that.. That vps is under your control and resolving - so forwarding to that inside a tls tunnel is pretty much just like running your own resolver.

            You can fire a vps pretty much anywhere on the planet that is not behind some gov restrictions.. I run multiple vps all over the glob as low as $15 USD for a year.. You just need something low end to do dns for you..

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            E 1 Reply Last reply Reply Quote 1
            • E
              emirefek @johnpoz
              last edited by

              @johnpoz ohh thanks mate I cannot think that nice idea. Any ideas for integrating vpn to pfsense dns resolver? Tutorial or etc.

              1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator
                last edited by johnpoz

                You would just pick your vpn interface as the outgoing interface in the resolver...

                But would be easier to just run the resolver on the box, set it up for tls - and then forward via tls..

                So here I have a vpn always running to one of my vps - so when I do a dns leak test you can see it shows my public IP becuase its directly resolving from there.. Then I change unbound to only use my vpn interface to my vps - and it shows the vps IP

                0_1537026353417_vpsdns.png

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

                E 1 Reply Last reply Reply Quote 0
                • E
                  emirefek @johnpoz
                  last edited by

                  @johnpoz okay thanks for helping. I take too much time. Firstly Im gona try TLS. If I had any question. I will ask.

                  johnpozJ 1 Reply Last reply Reply Quote 0
                  • johnpozJ
                    johnpoz LAYER 8 Global Moderator @emirefek
                    last edited by

                    @emirefek said in I need HELP on DNS RESOLVER!:

                    If I had any question. I will ask.

                    That is what we are here for - good luck!

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.8, 24.11

                    E 1 Reply Last reply Reply Quote 0
                    • E
                      emirefek @johnpoz
                      last edited by

                      @johnpoz Okayyy Im back. I was do some researchs and we cannot pass DNS injection with TLS. Our ISP reseting tcp connetions and we cannot do any http handshake to servers can ping can dig but nothing more. I want to try VPN option now. And I need help on here. You said you need to chose vpn interface am I need to connect another box to pfsense box to use vpn ?

                      1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator
                        last edited by

                        Huh? Your saying they are blocking your TLS to specific nameservers? Sure ok..

                        Do you have a vpn setup already? You do not need to connect another box to pfsense - but you need a VPN to connect to out on the internet.

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.8, 24.11

                        E 1 Reply Last reply Reply Quote 0
                        • E
                          emirefek @johnpoz
                          last edited by

                          @johnpoz said in I need HELP on DNS RESOLVER!:

                          a VPN to c

                          I have couple trying bucks on gcloud I gonna try it on here. Which vpn type am I need to set?

                          And In turkish netgate forum I was ask some peoples and they were already try to passthrough with TLS but we can resolve thats hostnames but we cannot do more, ISP isnt allowing handshakes.

                          B 1 Reply Last reply Reply Quote 0
                          • johnpozJ
                            johnpoz LAYER 8 Global Moderator
                            last edited by

                            Handshakes to what? So your being blocked from talking to 1.1.1.1 on port 843??

                            You need a vpn box - doesn't matter what type, ipsec, openvpn, L2tp past your blocks if you want to be able to query for dns through that vpn.

                            An intelligent man is sometimes forced to be drunk to spend time with his fools
                            If you get confused: Listen to the Music Play
                            Please don't Chat/PM me for help, unless mod related
                            SG-4860 24.11 | Lab VMs 2.8, 24.11

                            E 1 Reply Last reply Reply Quote 0
                            • B
                              bfeitell
                              last edited by

                              This post is deleted!
                              1 Reply Last reply Reply Quote 0
                              • B
                                bfeitell @emirefek
                                last edited by

                                @emirefek

                                @gertjan said in I need HELP on DNS RESOLVER!:

                                https://serverfault.com/questions/404840/when-do-dns-queries-use-tcp-instead-of-udp

                                There are DNS over TLS providers other than CloudFlare and Quad9. Some of them even offer service on port 443, which might be useful if the blocking you are seeing is targeted specifically at DNS and DNS over TLS. You might want to test some of these to see if you can get around the block without resorting to a VPN.

                                https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Test+Servers

                                1 Reply Last reply Reply Quote 0
                                • E
                                  emirefek @johnpoz
                                  last edited by

                                  @johnpoz @bfeitell

                                  Deep Packet Injection. Thats name of what ISP doing. Ve cannot doing more than resolving with TLS. Dns encryption not working useless. Can we setup vpn without any box to pfsense?

                                  B 2 Replies Last reply Reply Quote 0
                                  • johnpozJ
                                    johnpoz LAYER 8 Global Moderator
                                    last edited by

                                    No you need something on the other end of the vpn to connect too ;) It could be a service sure.. You can not have a vpn without 2 ends to the tunnel..

                                    It is not possible to do DPI inside a tls tunnel without decryption of the tunnel - ie MITM... So if your saying your ISP/Gov is doing DPI on your traffic inside a tls tunnel a vpn is not going to help you either ;)

                                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                                    If you get confused: Listen to the Music Play
                                    Please don't Chat/PM me for help, unless mod related
                                    SG-4860 24.11 | Lab VMs 2.8, 24.11

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

                                      Hummm.
                                      Government is decrypting VPN ? Pretty serious then.
                                      I'm pretty sure they can't. The States ..... don't ask ^^
                                      Thy will probably block known VPN end-points ... they are all known.
                                      Or they "discover" initial handshaking when the tunnel is set up, and "drop that.

                                      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
                                      • johnpozJ
                                        johnpoz LAYER 8 Global Moderator
                                        last edited by

                                        Yeah its easy enough to block tls to 1.1.1.1, or block traffic to some known vpn service..

                                        So you just fire up some vps somewhere on the internet, then either run some vpn or dns via tls on that vps box you... Highly unlikely they would block say port 443 to some what amounts to some rando IP on the internet..

                                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                                        If you get confused: Listen to the Music Play
                                        Please don't Chat/PM me for help, unless mod related
                                        SG-4860 24.11 | Lab VMs 2.8, 24.11

                                        1 Reply Last reply Reply Quote 0
                                        • B
                                          bfeitell @emirefek
                                          last edited by

                                          This post is deleted!
                                          1 Reply Last reply Reply Quote 0
                                          • B
                                            bfeitell @emirefek
                                            last edited by

                                            @emirefek

                                            Try this:

                                            Turn off forwarding mode, and DNS over TLS in unbound, because you are going to configure it manually at the top of the "custom options" box.

                                            Add the following text to the "custom options" box:

                                            ### TESTING DNS OVER TLS ON PORT 443
                                            server:
                                            tls-cert-bundle: /usr/local/share/certs/ca-root-nss.crt
                                            forward-zone:
                                            name: "."
                                            forward-ssl-upstream: yes
                                            ### SERVERS on non-standard ports from: 
                                            ### https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Test+Servers
                                            ### ^^^ THREE EXAMPLES FOR PORT 443, CHECK LINK FOR MORE ^^^
                                            forward-addr: 145.100.185.15@443#dnsovertls.sinodun.com
                                            forward-addr: 145.100.185.16@443#dnsovertls1.sinodun.com
                                            forward-addr: 89.234.186.112@443#dns.neutopia.org
                                            ### QUAD9 SERVERS
                                            #forward-addr: 2620:fe::fe@853#dns.quad9.net
                                            #forward-addr: 9.9.9.9@853#dns.quad9.net
                                            #forward-addr: 2620:fe::9@853#dns.quad9.net
                                            #forward-addr: 149.112.112.112@853#dns.quad9.net
                                            ### CLOUDFLARE SERVERS
                                            #forward-addr: 2606:4700:4700::1111@853#cloudflare-dns.com
                                            #forward-addr: 1.1.1.1@853#cloudflare-dns.com
                                            #forward-addr: 2606:4700:4700::1001@853#cloudflare-dns.com
                                            #forward-addr: 1.0.0.1@853#cloudflare-dns.com
                                            
                                            

                                            Turn logging up to level 4 on the advanced options page so that you can check that server authentication is taking place. Be sure to turn logging down when you are done. I think that authentication failures may not preclude service, so it is possible that someone could MITM your connection until unbound adds functions to prevent communicating with spoofed servers. At least I recall having read at some point that the functionality isn't there yet.

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