'helpme' handles multiple networks in router statements.

This commit is contained in:
ktsaou 2003-03-07 23:12:15 +00:00
parent efa4baa6d2
commit 4d2812c723

@ -10,7 +10,7 @@
#
# config: /etc/firehol.conf
#
# $Id: firehol.sh,v 1.106 2003/03/07 23:01:31 ktsaou Exp $
# $Id: firehol.sh,v 1.107 2003/03/07 23:12:15 ktsaou Exp $
#
FIREHOL_FILE="${0}"
@ -3189,7 +3189,7 @@ case "${arg}" in
else
cat <<"EOF"
$Id: firehol.sh,v 1.106 2003/03/07 23:01:31 ktsaou Exp $
$Id: firehol.sh,v 1.107 2003/03/07 23:12:15 ktsaou Exp $
(C) Copyright 2002, Costa Tsaousis <costa@tsaousis.gr>
FireHOL is distributed under GPL.
@ -3372,7 +3372,7 @@ then
cat <<"EOF"
$Id: firehol.sh,v 1.106 2003/03/07 23:01:31 ktsaou Exp $
$Id: firehol.sh,v 1.107 2003/03/07 23:12:15 ktsaou Exp $
(C) Copyright 2002, Costa Tsaousis <costa@tsaousis.gr>
FireHOL is distributed under GPL.
Home Page: http://firehol.sourceforge.net
@ -3580,7 +3580,7 @@ then
cat >&2 <<"EOF"
$Id: firehol.sh,v 1.106 2003/03/07 23:01:31 ktsaou Exp $
$Id: firehol.sh,v 1.107 2003/03/07 23:12:15 ktsaou Exp $
(C) Copyright 2002, Costa Tsaousis <costa@tsaousis.gr>
FireHOL is distributed under GPL.
Home Page: http://firehol.sourceforge.net
@ -3673,7 +3673,7 @@ EOF
echo "# "
cat <<"EOF"
# $Id: firehol.sh,v 1.106 2003/03/07 23:01:31 ktsaou Exp $
# $Id: firehol.sh,v 1.107 2003/03/07 23:12:15 ktsaou Exp $
# (C) Copyright 2002, Costa Tsaousis <costa@tsaousis.gr>
# FireHOL is distributed under GPL.
# Home Page: http://firehol.sourceforge.net
@ -3935,16 +3935,24 @@ EOF
x=$[x + 1]
case ${src} in
case "${src}" in
"0.0.0.0/0")
src="not \"\${UNROUTABLE_IPS} ${found_excludes[$i]}\""
;;
*)
src="\"${src}\""
;;
esac
case ${dst} in
case "${dst}" in
"0.0.0.0/0")
dst="not \"\${UNROUTABLE_IPS} ${found_excludes[$j]}\""
;;
*)
dst="\"${dst}\""
;;
esac
echo