Steven Jan Springl wrote:
> On Saturday 21 November 2009 18:32:06 Tom Eastep wrote:
> 
>> 6)  The shorewall and shorewall6 utilities now support a 'show
>>     policies' command. 
> 
> Tom:
> 
> Command 'shorewall show policies' works, 
> but command 'shorewall6 show policies' is invalid.

Wonder where I managed to lose that -- I had tested it on my own firewall.

Patch attached.

-Tom
-- 
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________
diff --git a/Shorewall6/lib.cli b/Shorewall6/lib.cli
index e290cbb..4fc68f5 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

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to