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

Possible bug with BIND config generate in 2.4.5 (bind package: 9.14_3)

Scheduled Pinned Locked Moved pfSense Packages
2.4.5bindbug
5 Posts 3 Posters 1.1k 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
    eda2000
    last edited by Apr 5, 2020, 2:16 AM

    I have just upgraded pfsense to version 2.4.5. After that action bind stopped working (cannot start) ending with errors:

    • rpz is not master or slave zone
    • loading configuration: not found

    After analysis I found that invalid /cf/named/etc/namedb/named.conf file was generated.

    In section OPTIONS, response-policy configuration is missing ".in-addr.arpa" suffix for reverse zone. In a view reverse zone has correct format (also with suffix).

    That cause miscofiguration.

    Generated invalid config file example:

    options {
            ...
    	response-policy {
    		zone "0.168.192";
    	};
            ....
    };
    
    view "local view" { 
    	recursion yes;
    
    	zone "0.168.192.in-addr.arpa" {
    		type master;
    		file "/etc/namedb/master/local view/0.168.192.DB";
    		allow-query { localhost; localnets; };
    		allow-update { localhost; localnets; };
    	};
    
    	zone "." {
    		type hint;
    		file "/etc/namedb/named.root";
    	};
    
    };
    

    Manual edit of file /cf/named/etc/namedb/named.conf and adding suffix fix the issue.

    Can you clarify, please?

    1 Reply Last reply Reply Quote 0
    • K
      kiokoman LAYER 8
      last edited by kiokoman Apr 8, 2020, 11:40 AM Apr 8, 2020, 9:12 AM

      i have bind on a dedicated server not inside pfsense but
      for me, response policy is defined inside view also i don't have a reverse for rpz, noob question but why a reverse?

      RPZ is essentially a filtering mechanism, either preventing people from visiting internet domains, or pointing them to other locations by manipulating the DNS answers in different ways

      1 Reply Last reply Reply Quote 0
      • S
        sandbrock
        last edited by sandbrock Apr 9, 2020, 12:56 AM Apr 9, 2020, 12:26 AM

        My bind service also failed to start after upgrading to 2.4.5, with this same exact error. After deleting my RPZ zone, it started up fine. I believe it is likely a bug, as you said.

        1 Reply Last reply Reply Quote 0
        • K
          kiokoman LAYER 8
          last edited by kiokoman Apr 9, 2020, 9:42 AM Apr 9, 2020, 9:29 AM

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • E
            eda2000
            last edited by May 12, 2020, 12:11 PM

            Linked issue:
            https://redmine.pfsense.org/issues/10445

            1 Reply Last reply Reply Quote 0
            • 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