Bug #2807
closedfilter_rules_needed tag (in package xml) not used when generating rules
0%
Description
The XML tag 'filter_rules_needed' is stored in the $config['installedpackages']['package'][$pkgid]['filter_rule_function'] when a package is being installed:
https://github.com/bsdperimeter/pfsense/blob/master/etc/inc/pkg-utils.inc, function install_package_xml . And is expected to be used when generating firewall rules.
But this value isn't used when generating those rules:
https://github.com/bsdperimeter/pfsense/blob/master/etc/inc/filter.inc, function discover_pkg_rules .
The system looks for a function with the format "{$pkg}_generate_rules". It should use the value from the $config['installedpackages']['package'][$pkgid]['filter_rule_function'] and fallback on the default format of "{$pkg}_generate_rules" when the value isn't defined by the package.
Updated by Ermal Luçi almost 12 years ago
- Status changed from New to Closed
That is a remenant of another implementation for packages.
The only way for now is to use the directly callable function from filter.inc.