diff --git a/Shorewall-core/lib.cli b/Shorewall-core/lib.cli index 5e72707d0..0b9ad9727 100644 --- a/Shorewall-core/lib.cli +++ b/Shorewall-core/lib.cli @@ -561,11 +561,11 @@ version_command() { [ $# -gt 0 ] && usage 1 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 - if [ -f /usr/share/$product/version ]; then - echo "$product: $(cat /usr/share/$product/version)" + if [ -f $g_sharedir/$product/version ]; then + echo "$product: $(cat $g_sharedir/$product/version)" fi done else diff --git a/Shorewall/Macros/macro.BLACKLIST b/Shorewall/Macros/macro.BLACKLIST new file mode 100644 index 000000000..47bfe97dc --- /dev/null +++ b/Shorewall/Macros/macro.BLACKLIST @@ -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