diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-10 02:32:35 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-10 02:32:35 +0000 |
commit | a372447e393de11f9af24b38243a843f64e8676a (patch) | |
tree | 46e7e82e5c80552c653775d63a56c4f06798d15d | |
parent | bc086d51072a1b2d95e84cf7bfc8eb8f5a2a46b7 (diff) | |
download | pfsense-a372447e393de11f9af24b38243a843f64e8676a.zip pfsense-a372447e393de11f9af24b38243a843f64e8676a.tar.gz |
Touch /tmp/filter_dirty when dirty.
-rw-r--r-- | etc/inc/filter.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index eba2d1d..f4ecbad 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -58,19 +58,19 @@ function filter_pflog_start() { /* reload filter async */ function filter_configure() { - mwexec_bg("/bin/sh /etc/rc.filter_configure"); + touch("/tmp/filter_dirty"); } /* reload filter sync */ function filter_configure_sync() { + if(file_exists("/tmp/filter_dirty")) + unlink("/tmp/filter_dirty"); + global $config, $g; $lan_if = $config['interfaces']['lan']['if']; $wan_if = get_real_wan_interface(); - - if(does_interface_exist($lan_if) == false) return; - if(does_interface_exist($wan_if) == false) return; - + /* generate aliases */ $aliases = filter_generate_aliases(); /* generate nat rules */ |