forked from extern/shorewall_code
Add BLACKLIST Macro
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
eb118e4443
commit
217d5e636c
@ -561,11 +561,11 @@ version_command() {
|
|||||||
[ $# -gt 0 ] && usage 1
|
[ $# -gt 0 ] && usage 1
|
||||||
|
|
||||||
if [ -n "$all" ]; then
|
if [ -n "$all" ]; then
|
||||||
echo "shorewall-core: $(cat /usr/share/shorewall/coreversion)"
|
echo "shorewall-core: $(cat $g_sharedir/shorewall/coreversion)"
|
||||||
|
|
||||||
for product in shorewall shorewall6 shorewall-lite shorewall6-lite shorewall-init; do
|
for product in shorewall shorewall6 shorewall-lite shorewall6-lite shorewall-init; do
|
||||||
if [ -f /usr/share/$product/version ]; then
|
if [ -f $g_sharedir/$product/version ]; then
|
||||||
echo "$product: $(cat /usr/share/$product/version)"
|
echo "$product: $(cat $g_sharedir/$product/version)"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
|
11
Shorewall/Macros/macro.BLACKLIST
Normal file
11
Shorewall/Macros/macro.BLACKLIST
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#
|
||||||
|
# Shorewall version 4 - blacklist Macro
|
||||||
|
#
|
||||||
|
# /usr/share/shorewall/macro.blacklist
|
||||||
|
#
|
||||||
|
# This macro handles blacklisting using BLACKLIST_DISPOSITION and BLACKLIST_LOGLEVEL
|
||||||
|
#
|
||||||
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
||||||
|
# PORT(S) PORT(S) LIMIT GROUP
|
||||||
|
$BLACKLIST_DISPOSITION:$BLACKLIST_LOGLEVEL
|
Loading…
Reference in New Issue
Block a user