• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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.9k 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.
  • G
    Gertjan @the_driver_123
    last edited by Gertjan Aug 8, 2023, 12:46 PM Aug 8, 2023, 12:43 PM

    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 Aug 8, 2023, 1:24 PM Aug 8, 2023, 1:23 PM

      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 Aug 8, 2023, 1:28 PM

        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?

        J 1 Reply Last reply Aug 8, 2023, 2:11 PM Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator @the_driver_123
          last edited by johnpoz Aug 8, 2023, 2:13 PM Aug 8, 2023, 2:11 PM

          @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.8, 24.11

          G 1 Reply Last reply Aug 8, 2023, 3:11 PM Reply Quote 1
          • G
            Gertjan @johnpoz
            last edited by Aug 8, 2023, 3:11 PM

            @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 ??

            J 1 Reply Last reply Aug 8, 2023, 3:17 PM Reply Quote 1
            • T
              the_driver_123
              last edited by the_driver_123 Aug 8, 2023, 3:16 PM Aug 8, 2023, 3:15 PM

              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
              • J
                johnpoz LAYER 8 Global Moderator @Gertjan
                last edited by Aug 8, 2023, 3:17 PM

                @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.8, 24.11

                T 1 Reply Last reply Aug 8, 2023, 3:24 PM Reply Quote 0
                • T
                  the_driver_123 @johnpoz
                  last edited by the_driver_123 Aug 8, 2023, 3:24 PM Aug 8, 2023, 3:24 PM

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

                  Can I find which rules are using specific ALIAS?

                  J 1 Reply Last reply Aug 8, 2023, 3:33 PM Reply Quote 0
                  • J
                    johnpoz LAYER 8 Global Moderator @the_driver_123
                    last edited by Aug 8, 2023, 3:33 PM

                    @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.8, 24.11

                    1 Reply Last reply Reply Quote 0
                    • A
                      Anry @johnpoz
                      last edited by Mar 26, 2024, 2:46 PM

                      @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.
                        This community forum collects and processes your personal information.
                        consent.not_received