From b33ffddc7bf5217fa113a8639685260510ac099d Mon Sep 17 00:00:00 2001 From: teastep Date: Sun, 22 Jun 2003 21:22:57 +0000 Subject: [PATCH] Fix label creation for IP address ranges git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@606 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/firewall | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Shorewall/firewall b/Shorewall/firewall index 9c67be0ea..71010c5d0 100755 --- a/Shorewall/firewall +++ b/Shorewall/firewall @@ -2963,8 +2963,14 @@ setup_masq() if [ -n "$address" -a -n "$ADD_SNAT_ALIASES" ]; then for addr in `ip_range $address` ; do - list_search $addr $aliases_to_add || \ + if ! list_search $addr $aliases_to_add; then aliases_to_add="$aliases_to_add $addr $fullinterface" + case $fullinterface in + *:*) + fullinterface=${fullinterface%:*}:$((${fullinterface#*:} + 1 )) + ;; + esac + fi done fi @@ -3207,7 +3213,7 @@ add_ip_aliases() # decoration on these IP addresses that they see when their # distro's net config tool adds them. In an attempt to reduce # the anxiety level, we have the following code which sets - # the VLSM and BRD from the primary address + # the VLSM and BRD from the primary address in the same subnet # # Get all of the lines that contain inet addresses with broadcast #