On Fri, Nov 01, 2002 at 04:01:37PM +0100, Dirk Borchers wrote:
sbin/SuSEfirewall2: line 687: test: 192.168.120.24: integer expression expected
Is there something written what is expected at this line (maybe something like "192.168.120.24,tcp"?)? Look what the descriptions in the script that tells you what to put there. Sometimes it is a littlebit "short".
the whole line is: FW_MASQ_NETS="192.168.120.22 192.168.120.24 192.168.120.49 192.168.120.191"
just guessing about that "integer expression": it probably arises from >> test "$PART2" -lt 16 << if DEV_IP contains no "/", PART2=${DEV_IP#*/} will be just $DEV_IP, and >> 192.168.120.22 -lt 16 << is obviously nonsense to the shell :) try FW_MASQ_NETS="192.168.120.22/32 192.168.120.24/32 192.168.120.49/32 192.168.120.191/32" if that is it, its easy to patch :) --- /sbin/SuSEfirewall2.orig 2002-11-01 16:59:23.000000000 +0100 +++ /sbin/SuSEfirewall2 2002-11-01 17:03:33.000000000 +0100 @@ -682,6 +682,7 @@ PART1=${DEV_IP%%/*} #`echo $DEV_IP | $AWK -F/ '{print $1}'` PART2=${DEV_IP#*/} + test "$PART2" = "$DEV_IP" && PART2=32 # no "/" present ... #`echo $DEV_IP | $AWK -F/ '{print $2}'` test '!' -z "$PART2" && test "$PART2" -lt 16 && { echo "$PART1" | $GREP -Eq '^10\.|^172\.1' || { cheers, Lars