Bug #15939
closedAn empty IPv4/v6 and DNSBL entry is added if it’s not saved
100%
Description
Tested on 24.11 and on 25.03-DEVELOPMENT (built on Fri Dec 13 6:00:00 UTC 2024)
If to press Add for adding IPv4 or IPv6 IP List and without changing anything jump into any other menu or on a Dashboard, unnamed IP List is created ('Added unnamed IPv4 lists.png').
These Lists are not added into config file by default, but if just press Save, these empty IP lists are added into config file
<pfblockernglistsv4> <config> <row> <format>Auto</format> <state><![CDATA[Disabled]]></state> <url></url> <header></header> </row> <action>Disabled</action> <cron>Never</cron> <aliaslog>enabled</aliaslog> </config> <config> <row> <format>Auto</format> <state><![CDATA[Disabled]]></state> <url></url> <header></header> </row> <action>Disabled</action> <cron>Never</cron> <aliaslog>enabled</aliaslog> </config> <config> <row> <format>Auto</format> <state><![CDATA[Disabled]]></state> <url></url> <header></header> </row> <action>Disabled</action> <cron>Never</cron> <aliaslog>enabled</aliaslog> </config> <pfblockernglistsv6> <config> <row> <format>Auto</format> <state><![CDATA[Disabled]]></state> <url></url> <header></header> </row> <action>Disabled</action> <cron>Never</cron> <aliaslog>enabled</aliaslog> </config> <config> <row> <format>Auto</format> <state><![CDATA[Disabled]]></state> <url></url> <header></header> </row> <action>Disabled</action> <cron>Never</cron> <aliaslog>enabled</aliaslog> </config> </pfblockernglistsv6>
The same behavior for DNSBL lists ('added unname DNSBL Lists.png') and if to press Save empty DNSBL lists are added into config file:
<pfblockerngdnsbl> <config> <row> <format>Auto</format> <state><![CDATA[Disabled]]></state> <url></url> <header></header> </row> <action>Disabled</action> <cron>Never</cron> <logging>enabled</logging> </config> <config> <row> <format>Auto</format> <state><![CDATA[Disabled]]></state> <url></url> <header></header> </row> <action>Disabled</action> <cron>Never</cron> <logging>enabled</logging> </config> </pfblockerngdnsbl>And it's not possible to delete them. These messages occur:
- for IP List: "Could not delete [ Type: IPv4, Name: ], not found"
- for DNSBL List: "Could not delete [ Type: DNSBL Groups, Name: ], not found"
If not to save these lists, they disappear after pfSense being rebooted. But if to save them, they remain in pfBlockerNG's config after reboot.
Files
Updated by Marcos M about 2 months ago
- Status changed from New to Feedback
- Assignee set to Marcos M
- Target version set to 2.8.0
- Plus Target Version set to 25.07
Should be fixed with https://github.com/pfsense/FreeBSD-ports/commit/aaf683d62794327bddd8ca0c75e10a31a51f34dd.
Updated by Marcos M about 2 months ago
- Subject changed from In some circumstances empty and unnamed IPv4/v6 and DNSBL lists are added unexpectedly to Empty and IPv4/v6 and DNSBL entires are added
Updated by Marcos M about 2 months ago
- Subject changed from Empty and IPv4/v6 and DNSBL entires are added to An empty IPv4/v6 and DNSBL entry is added if it’s not saved
Updated by Marcos M about 2 months ago
- Plus Target Version changed from 25.07 to 25.03
Updated by Azamat Khakimyanov about 1 month ago
- Status changed from Feedback to Resolved
Tested on 25.07-DEV (built on Fri Feb 28 6:00:00 UTC 2025)
When I pressed Add IPv4/IPv6 and DNSBL group entries and then just jumped to any other menu, nothing happened. So new 'unnamed'/empty entry wasn't added.
I marked this Bug as resolved.