From 7bc823fb8bbc00ef1cc2c5351c94f1e018dfbf75 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 19 Mar 2012 15:57:38 -0700 Subject: [PATCH] Support 'kerneltz' Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Chains.pm | 2 +- Shorewall/manpages/shorewall-rules.xml | 26 ++++++++++++++++-------- Shorewall6/manpages/shorewall6-rules.xml | 16 ++++++++++++--- 3 files changed, 32 insertions(+), 12 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index 55bb1f450..661b27c34 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -4054,7 +4054,7 @@ sub do_time( $ ) { } } elsif ( $element =~ /^(datestart|datestop)=(\d{4}(-\d{2}(-\d{2}(T\d{1,2}(:\d{1,2}){0,2})?)?)?)$/ ) { $result .= "--$1 $2 "; - } elsif ( $element =~ /^(utc|localtz)$/ ) { + } elsif ( $element =~ /^(utc|localtz|kerneltz)$/ ) { $result .= "--$1 "; } else { fatal_error "Invalid time element ($element)"; diff --git a/Shorewall/manpages/shorewall-rules.xml b/Shorewall/manpages/shorewall-rules.xml index a0a92d768..d5f6f5f18 100644 --- a/Shorewall/manpages/shorewall-rules.xml +++ b/Shorewall/manpages/shorewall-rules.xml @@ -226,7 +226,7 @@ like DROP but exempts the rule from being suppressed by OPTIMIZE=1 in shorewall.conf(5). + url="shorewall.conf.html">shorewall.conf(5). @@ -782,7 +782,7 @@
- + Except when all[+]|[-] is specified, the server may be @@ -1230,8 +1230,18 @@ localtz - Times are expressed in Local Civil Time - (default). + Deprecated by the Netfilter team in favor of kerneltz. Times are expressed in Local + Civil Time (default). + + + + + kerneltz + + + Added in Shorewall 4.5.2. Times are expressed in Local + Kernel Time (requires iptables 1.4.12 or later). @@ -1548,9 +1558,9 @@ shorewall_interfaces(5), shorewall-ipsets(5), shorewall-maclist(5), shorewall-masq(5), shorewall-nat(5), shorewall-netmap(5), shorewall-params(5), shorewall-policy(5), shorewall-providers(5), - shorewall-proxyarp(5), shorewall-rtrules(5), - shorewall-routestopped(5), shorewall.conf(5), shorewall-secmarks(5), - shorewall-tcclasses(5), shorewall-tcdevices(5), shorewall-tcrules(5), - shorewall-tos(5), shorewall-tunnels(5), shorewall-zones(5) + shorewall-proxyarp(5), shorewall-rtrules(5), shorewall-routestopped(5), + shorewall.conf(5), shorewall-secmarks(5), shorewall-tcclasses(5), + shorewall-tcdevices(5), shorewall-tcrules(5), shorewall-tos(5), + shorewall-tunnels(5), shorewall-zones(5) diff --git a/Shorewall6/manpages/shorewall6-rules.xml b/Shorewall6/manpages/shorewall6-rules.xml index a3785636d..2974ed61f 100644 --- a/Shorewall6/manpages/shorewall6-rules.xml +++ b/Shorewall6/manpages/shorewall6-rules.xml @@ -257,7 +257,7 @@ like CONTINUE but exempts the rule from being suppressed by OPTIMIZE=1 in shorewall6.conf(5). + url="shorewall6.conf.html">shorewall6.conf(5). @@ -970,8 +970,18 @@ localtz - Times are expressed in Local Civil Time - (default). + Deprecated by the Netfilter team in favor of kerneltz. Times are expressed in Local + Civil Time (default). + + + + + kerneltz + + + Added in Shorewall 4.5.2. Times are expressed in Local + Kernel Time (requires iptables 1.4.12 or later).