diff --git a/Shorewall/changelog.txt b/Shorewall/changelog.txt index f9bff4ff2..043074171 100644 --- a/Shorewall/changelog.txt +++ b/Shorewall/changelog.txt @@ -10,6 +10,8 @@ Changes in Shorewall 4.4.5 5) Allow specific policy to supersede a wildcard policy. +6) Fix 'show policies' in Shorewall6. + Changes in Shorewall 4.4.4 1) Change STARTUP_LOG and LOG_VERBOSITY in default shorewall6.conf. diff --git a/Shorewall/releasenotes.txt b/Shorewall/releasenotes.txt index bb869c19f..8702f35cf 100644 --- a/Shorewall/releasenotes.txt +++ b/Shorewall/releasenotes.txt @@ -191,6 +191,9 @@ Shorewall 4.4.5 contexts. Previously, port 0 was allowed with the result that invalid iptables-restore input could be generated in some cases. +4) The 'show policies' command now works in Shorewall6 and + Shorewall6-lite. + ---------------------------------------------------------------------------- K N O W N P R O B L E M S R E M A I N I N G ---------------------------------------------------------------------------- diff --git a/Shorewall6/lib.cli b/Shorewall6/lib.cli index e290cbbdc..4fc68f572 100644 --- a/Shorewall6/lib.cli +++ b/Shorewall6/lib.cli @@ -511,6 +511,12 @@ show_command() { vardir) echo $VARDIR; ;; + policies) + [ $# -gt 1 ] && usage 1 + echo "$PRODUCT $version Policies at $HOSTNAME - $(date)" + echo + [ -f ${VARDIR}/policies ] && cat ${VARDIR}/policies; + ;; *) if [ "$PRODUCT" = Shorewall6 ]; then case $1 in