diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-04-02 20:52:36 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-04-02 20:52:36 +0000 |
commit | b8257606b558112cadf90cb225069884a20267c6 (patch) | |
tree | 153a8cd579c47adb67e0778cf323fa1b51e6e195 | |
parent | 02dee88eaa464632f5177eafcad677e7a590796b (diff) | |
download | pfsense-b8257606b558112cadf90cb225069884a20267c6.zip pfsense-b8257606b558112cadf90cb225069884a20267c6.tar.gz |
* Add more debugging helpers to system logs
* Unbreak logic since the recent traffic shaper 'fix'
-rw-r--r-- | etc/inc/filter.inc | 4 | ||||
-rw-r--r-- | etc/inc/pfsense-utils.inc | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 703d274..c6e7b42 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1947,7 +1947,7 @@ function generate_user_filter_rule($rule, $ngcounter) { if($schedule_xml_block) $status = get_time_based_rule_status($schedule_xml_block); if($status) { - return $line; + return "$line"; } else { /* rule is turned off, if type == pass, deny traffic until * active else allow traffic until active @@ -1957,7 +1957,7 @@ function generate_user_filter_rule($rule, $ngcounter) { else $ipfw_rule = tdr_create_ipfw_rule($rule, "allow"); tdr_install_rule($ipfw_rule); - return $line; + return "# $line;"; } } else { return $line; diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 7b9789d..6bf2090 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -568,7 +568,10 @@ function get_time_based_rule_status($schedule) { $should_add_rule = true; } } - + if($should_add_rule == true) + log_error("[TDR DEBUG] should_add_rule == true"); + else + log_error("[TDR DEBUG] should_add_rule == true"); return $should_add_rule; } |