summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg_edit.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-05-29 21:45:19 +0000
committerErmal Luçi <eri@pfsense.org>2009-05-29 21:49:50 +0000
commita9b2e638f864befaec2f1b4890b2ed8af665a6ee (patch)
tree412edba9e1c3fbd25584f6333c46d3f9b6fdabe5 /usr/local/www/pkg_edit.php
parent2dcf4150a82fd4f7e68f29e8cfabb2a7f0c980a7 (diff)
downloadpfsense-a9b2e638f864befaec2f1b4890b2ed8af665a6ee.zip
pfsense-a9b2e638f864befaec2f1b4890b2ed8af665a6ee.tar.gz
Present a new package option filter_rules_needed which has a function name to be called if the package needs to create firewall rules. The function should have a switch statement one with 'nat' option wich is called for nat/rdr and one with 'rule' option which is needed for rules. This will help on removing from filter.inc all the packages hardcoded includes and rules and give some more dynamicity. The rules by this function will be included on rules.nat.packages and rules.packages on /tmp partition and called by anchors include file when filter reloads(still this has to come).
Diffstat (limited to 'usr/local/www/pkg_edit.php')
-rwxr-xr-xusr/local/www/pkg_edit.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php
index 8005120..ad8c169 100755
--- a/usr/local/www/pkg_edit.php
+++ b/usr/local/www/pkg_edit.php
@@ -201,6 +201,9 @@ if ($_POST) {
eval($pkg['custom_add_php_command_late']);
}
+ if (isset($pkg['filter_rules_needed']))
+ pkg_build_filter_rules();
+
// resync the configuration file code if defined.
if($pkg['custom_php_resync_config_command'] <> "") {
eval($pkg['custom_php_resync_config_command']);
OpenPOWER on IntegriCloud