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

    Aliases with FQDN not working in pFsense 2.7 CE or Plus 23.05.01

    Scheduled Pinned Locked Moved Firewalling
    19 Posts 5 Posters 1.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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @the_driver_123
      last edited by

      @the_driver_123 ok if pfsense is able to resolve it - then its not a dns related issue, and something with the filter mech.. those aliases get updated by default ever 5 minutes.. Do you show filterdns running?

      Possible this?

      https://docs.netgate.com/pfsense/en/latest/troubleshooting/filterdns-thread-errors.html

      is filterdns running?

      [23.05.1-RELEASE][admin@sg4860.local.lan]/root: ps -x | grep filterdns
      49726  -  Is        0:00.02 /usr/local/sbin/filterdns -p /var/run/filterdns.pid -i 300 -c /var/etc/filterdns.conf -d 1
      16872  0  S+        0:00.00 grep filterdns
      [23.05.1-RELEASE][admin@sg4860.local.lan]/root: 
      

      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.7.2, 24.11

      A 1 Reply Last reply Reply Quote 2
      • T
        the_driver_123
        last edited by

        43a54622-e3b9-4837-9296-bedd2f365af2-image.png

        uhm ....

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

          The 'filterdns' logs together with 'unbound' into the Status > System Logs > System > DNS Resolver log.

          You should see lines like this :

          dd7de3f5-8b67-4e15-9ffe-ea042992c943-image.png

          or other lines that indicate why filterdns can't start or fails.

          edit : and it's normal your firewall rules don't work : the aliases stay empty, so the rules never match.

          Also : I'm using 23.05.01 and filterdns works just fine.

          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
          • T
            the_driver_123
            last edited by the_driver_123

            I cannot see unbound entries. Filterdns logs are displayed (but the process seems down , correct?)

            No errors seem to be displayed

            Other checks?

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

              I have set kern.threads.max_threads_per_proc and set it to 4096, re-loading the Table

              kern.threads.max_threads_per_proc and set it to 4096.

              ps -x | grep filterdns
              29219 - Is 0:00.87 /usr/local/sbin/filterdns -p /var/run/filterdns.pid
              43627 0 S+ 0:00.00 grep filterdns

              a3f22c00-a9fb-4717-898a-7cad0f9afa51-image.png

              Seems to be ok?

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

                @the_driver_123 why would they change from 13 to 18.x.x.x - why no AAAA records?

                If your client resolves some fqdn to IP X, and pfsense resoles it to Y then the rule wouldn't work because they wouldn't match up.

                Your dns lookup before had AAAA as well.. But now it only has A, and they are completely different IP range?

                they for sure can be different based on geo location from where your doing the query from - but odd that you were seeing 13s before and now 18s?

                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.7.2, 24.11

                GertjanG 1 Reply Last reply Reply Quote 1
                • GertjanG
                  Gertjan @johnpoz
                  last edited by

                  @johnpoz

                  In the old world :

                  18.172.213.14	A
                  18.172.213.21	A
                  18.172.213.108	A
                  18.172.213.90	A
                  2600:9000:2113:4e00:3:db06:4200:93a1	AAAA
                  2600:9000:2113:4600:3:db06:4200:93a1	AAAA
                  2600:9000:2113:a000:3:db06:4200:93a1	AAAA
                  2600:9000:2113:9c00:3:db06:4200:93a1	AAAA
                  2600:9000:2113:da00:3:db06:4200:93a1	AAAA
                  2600:9000:2113:ea00:3:db06:4200:93a1	AAAA
                  2600:9000:2113:7000:3:db06:4200:93a1	AAAA
                  2600:9000:2113:f000:3:db06:4200:93a1	AAAA
                  d2h67oheeuigaw.cloudfront.net	CNAME
                  

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

                  johnpozJ 1 Reply Last reply Reply Quote 1
                  • T
                    the_driver_123
                    last edited by the_driver_123

                    Yes is correct. I'm trying different docker.com sub domains .... don't worry

                    Now is working well with the ALIAS and FQDN

                    Thanks!!!

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

                      @Gertjan yeah I am sure depending on what part of the globe you are in you would get different IPs.. But he showed 13.x before and now 18s - seems odd that the IPs he was seeing before would change so much, unless he is talking to some other dns than he was before, or routing over vpn or something.

                      Just wanted to point out if client resolves some fqdn to X, and pfsense resolves it to Y.. The rules would never mach up because client would be trying to go to X, while pfsense rule would be using Y addresses.

                      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.7.2, 24.11

                      T 1 Reply Last reply Reply Quote 0
                      • T
                        the_driver_123 @johnpoz
                        last edited by the_driver_123

                        @johnpoz as already explained, I have changed some FQDN using other subdomains. Sorry .

                        Can I find which rules are using specific ALIAS?

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

                          @the_driver_123 said in Aliases with FQDN not working in pFsense 2.7 CE or Plus 23.05.01:

                          Can I find which rules are using specific ALIAS?

                          Well that should be completely clear just looking at the rules.. You want some single place that lists like what rules are using alias X? I am not aware of something like that in the gui.. But you could just grep the full rules list..

                          grep.jpg

                          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.7.2, 24.11

                          1 Reply Last reply Reply Quote 0
                          • A
                            Anry @johnpoz
                            last edited by

                            @johnpoz
                            Greetings.
                            I'll tell you my solution to the same problem.
                            After reading the recommendations on the link
                            https://docs.netgate.com/pfsense/en/latest/troubleshooting/filterdns-thread-errors.html
                            set kern.threads.max_threads_per_proc to 4096.
                            The problem with determining IP addresses remains.
                            Set kern.threads.max_threads_per_proc to 8192.
                            Oh miracle! The lists are working.
                            In fact it turned out that:
                            screen-2024-03-26-16-35-32.png
                            The number of filterdns threads turned out to be more than 4096.

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