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

    help to unblock chia

    Scheduled Pinned Locked Moved Firewalling
    38 Posts 4 Posters 1.5k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @4o4rh
      last edited by johnpoz

      @gwaitsi said in help to unblock chia:

      ERROR: failed to query server 1.1.1.3@853(TCP)

      That means you could not talk to 1.1.1.3 on 853.. Your blocking it most likely.

      couldn't find how to install kdig on pfsense

      I wouldn't suggest that even if there was a package available somewhere for freebsd.. Unless pfsense/netgate adds that as option.. Installing unsupported 3rd party packages not good idea normally.

      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

      4 1 Reply Last reply Reply Quote 0
      • 4
        4o4rh @johnpoz
        last edited by

        @johnpoz said in help to unblock chia:

        @gwaitsi said in help to unblock chia:

        ERROR: failed to query server 1.1.1.3@853(TCP)

        That means you could not talk to 1.1.1.3 on 853.. Your blocking it most likely.

        correct. because pfsense is the dns server the clients connect to and 53/853 and nat'd to pfsense
        unbound is in forwarding with dns over ssl to 1.1.1.3 (1.1.1.1 works)

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

          What your clients are set to do and what a directed query is doing are different. If your only allowing clients to talk to pfsense that is fine for dns.

          My point was it works via talking dot to 1.1.1.3.. So it should be filtered in pfsense... Use the pfsense dns look gui.. What do you get?

          lookup.png

          And again!! www.chia.net is blocked.. If your using 1.1.1.3 NO your not going to get to www.chia.net - which chia.net is redirect too.. So you have to be able to resolve www.chia.net

          Just tested with doh.. And www.chia.net is blocked with 1.1.1.3 as well

          user@NewUC:~$ q A www.chia.net @https://family.cloudflare-dns.com/dns-query
          www.chia.net. 1m0s A 0.0.0.0
          

          If you say it works - then your not using 1.1.1.3 or .2 since both of those block www.chia.net

          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

          4 1 Reply Last reply Reply Quote 0
          • 4
            4o4rh @johnpoz
            last edited by

            @johnpoz so I can confirm from the pfsense dns lookup;

            • I get A records for www.chia.net with 1.1.1.1 is used
            • I get no A records for www.chia.net with 1.1.1.2 is used

            so, in summary;

            1. that means cloudflare is filtering right?
            2. but my NAT forwarding of 53 / 853 is not working (because i can bypass with dns over ssl).
              i have in the NAT rules
            Interface: LAN
            Protocol: TCP/UDP
            Source Addr: *
            Source Port: *
            Dest addr: !LAN Address
            Dest Ports: alias = 53 853 67:68 37 123 5351:5357
            NAT IP: LAN Address
            NAT Ports: alias = 53 853 67:68 37 123 5351:5357
            

            so what is my solution?
            i want the benefit of family which makes sure the kids can't google stuff,
            but i will also need some exception. but it is strange i never had a problem till this one site

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

              Not sure where you got the idea that you could redirect 853 queries?

              Simple solution to allow for www.chia.net when your unbound is filtering it, is just create a domain override pointing to 1.1.1.1 for the chia.net.. Now anyone can look that up.. Because unbound will ask 1.1.1.1 for that

              Now back to a shane configure of my network blocking all and any doh or dot from anything.. ;)

              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

              4 1 Reply Last reply Reply Quote 0
              • 4
                4o4rh @johnpoz
                last edited by

                @johnpoz
                yes, I see that fixed it. thank you ;-)

                why am i mistaken in thinking i could trap 853 requests?
                p.s. i am no idea of what a dot or doh is. sounds like taking the p.ss ;-)
                i will have to do some duckduck'ing

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

                  @gwaitsi said in help to unblock chia:

                  why am i mistaken in thinking i could trap 853 requests?

                  You can redirect them sure.. But where you going to redirect them too? And the fqdn and certs are not going to match..

                  If client is wanting to talk to www.dotdns.tld, and you redirect it to say unbound listening on 853 using what for the cert.. Sure not going to be www.dotdns.tld ;)

                  So your client if sane should say F that -- someone is mitm my query..

                  See above where I did the dot query, and certs are involved.

                  ;; DEBUG: TLS, imported 129 system certificates
                  ;; DEBUG: TLS, received certificate hierarchy:
                  ;; DEBUG:  #1, C=US,ST=California,L=San Francisco,O=Cloudflare\, Inc.,CN=cloudflare-dns.com
                  ;; DEBUG:      SHA-256 PIN: od9obscoXQND56/DikypZrJkXGvbQV5Y61QGfcNitHo=
                  ;; DEBUG:  #2, C=US,O=DigiCert Inc,CN=DigiCert TLS Hybrid ECC SHA384 2020 CA1
                  ;; DEBUG:      SHA-256 PIN: e0IRz5Tio3GA1Xs4fUVWmH1xHDiH2dMbVtCBSkOIdqM=
                  ;; DEBUG: TLS, skipping certificate PIN check
                  ;; DEBUG: TLS, The certificate is trusted. 
                  

                  You can block it sure.. But redirecting them when the client should and would validate talking to the correct server is not really possible.

                  While sure you could mitm yourself for a specific dot server.. And the client could be setup to trust the cert your using and think its actually www.dotdns.tld - but what if they try other.dnsdot.tld, etc. etc..

                  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

                  4 1 Reply Last reply Reply Quote 0
                  • 4
                    4o4rh @johnpoz
                    last edited by

                    @johnpoz point was to trap requests to outside DNS. e.g. android clients, etc.
                    So i think it is ok, it is breaks no?

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

                      Yeah blocking it is fine.. I do it for both doh and dot.. Dot is easy just block port 853.. But doh can be problematic to block since its just standard 443.

                      But tricking a client into thinking its talking abc, while its really talking to xyz is way more tricky. Unlike with normal dns over tcp/udp 53.

                      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
                      • A
                        alicaparker
                        last edited by alicaparker

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