diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-04-02 05:58:16 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-04-02 05:58:16 +0000 |
commit | e7f171ad2a803cfc1ed8bd2744863184aba99da7 (patch) | |
tree | 7fb731d235b9934619ec621637fe74f066431d89 /etc | |
parent | 4b64c3af3c64a98573c889a1613b1b6dbb3daa36 (diff) | |
download | pfsense-e7f171ad2a803cfc1ed8bd2744863184aba99da7.zip pfsense-e7f171ad2a803cfc1ed8bd2744863184aba99da7.tar.gz |
Add more filter reload information for AJAX filter reload status application
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index d295cb2..7dd46de 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -160,6 +160,8 @@ function filter_configure_sync() { $rules.= "\n"; $rules.= "scrub on {$wanif} all {$scrubnodf} {$mssclamp}\n"; // reassemble all directions + update_filter_reload_status("Setting up SCRUB information"); + /* loop through optional interfaces. if a gateway is set, lets scrub em down! */ for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++) { if($config['interfaces']["opt" . $j]['gateway'] <> "") { @@ -517,7 +519,6 @@ function filter_nat_rules_generate() { $natrules .= "# FTP proxy\n"; $natrules .= "rdr-anchor \"pftpx/*\"\n"; - update_filter_reload_status("Creating 1:1 rules..."); /* any 1:1 mappings? */ @@ -656,6 +657,8 @@ function filter_nat_rules_generate() { $natrules .= "\n# Load balancing anchor - slbd updates\n"; $natrules .= "rdr-anchor \"slb\"\n"; + update_filter_reload_status("Setting up FTP helper"); + $natrules .= "\n# FTP Proxy/helper\n"; /* build an array of interfaces to work with */ $iflist = array("lan" => "LAN"); @@ -818,6 +821,8 @@ function filter_nat_rules_generate() { if(!isset($config['system']['disablenatreflection'])) { + update_filter_reload_status("Setting up reflection"); + $natrules .= "\n# Reflection redirects\n"; foreach ($iflist as $ifent => $ifname) { @@ -1079,6 +1084,8 @@ function generate_user_filter_rule($rule, $ngcounter) { for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) $ifdescrs[] = "opt" . $i; + update_filter_reload_status("Setting up pass/block rules"); + for ($iif = 0; $iif < $nif; $iif++) { $type = $rule['type']; if ($type != "pass" && $type != "block" && $type != "reject") { @@ -1134,6 +1141,8 @@ function generate_user_filter_rule($rule, $ngcounter) { /* set the gateway interface */ $ri = filter_translate_type_to_real_interface($rule['interface']); + update_filter_reload_status("Setting up pass/block rules {$rule['descr']}"); + /* * check to see if /tmp/{${ri}_router exists. This file * is created by dhclient for 2nd wan interfaces, etc. @@ -1927,6 +1936,7 @@ EOD; if (isset($config['filter']['rule'])) { foreach ($config['filter']['rule'] as $rule) { /* Pre-cache all our rules so we only have to generate them once */ + update_filter_reload_status("Pre-caching information for {$rule['descr']} ..."); $line = ""; if (!isset($rule['disabled'])) { if ($rule['interface'] == "pptp") { |