Hi all

I have a CentOS6 box with shorewall-4.5.21.
If I have IPSET= in shorewall.conf and I issue the command "shorewall add
ppp:192.168.33.3 ptp", I get the error:
/usr/share/shorewall/lib.cli: line 585: [: too many arguments
   ERROR: Zone ptp, interface ppp does not have a dynamic host list

The error is corrected setting the actual path to ipset in shorewall.conf,
or via the patch:
--- /usr/share/shorewall/lib.cli.orig   2013-12-17 22:52:13.000000000 +0100
+++ /usr/share/shorewall/lib.cli        2013-12-17 22:54:04.843146111 +0100
@@ -582,7 +582,7 @@
 determine_ipset_version() {
     local setname
 
-    if [ -z "$IPSET" -o $IPSET = ipset ]; then
+    if [ -z "$IPSET" -o "$IPSET" = "ipset" ]; then
        IPSET=$(mywhich ipset)
        [ -n "$IPSET" ] || fatal_error "The ipset utility cannot be located"
     fi

After applying it, the above command yelds:
# shorewall add ppp:192.168.33.3 ptp
Host ppp:192.168.33.3 added to zone ptp

Maybe the small patch could be included in some new version.

Thank you.
Luigi


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to