summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-04-02 20:52:36 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-04-02 20:52:36 +0000
commitb8257606b558112cadf90cb225069884a20267c6 (patch)
tree153a8cd579c47adb67e0778cf323fa1b51e6e195 /etc
parent02dee88eaa464632f5177eafcad677e7a590796b (diff)
downloadpfsense-b8257606b558112cadf90cb225069884a20267c6.zip
pfsense-b8257606b558112cadf90cb225069884a20267c6.tar.gz
* Add more debugging helpers to system logs * Unbreak logic since the recent traffic shaper 'fix'
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc4
-rw-r--r--etc/inc/pfsense-utils.inc5
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;
}
OpenPOWER on IntegriCloud