=================================================================== RCS file: /home/cvsd/home/cvs/scripts/shell/firewall/fw-universal.sh,v retrieving revision 2.48 retrieving revision 2.49 diff -u -p -r2.48 -r2.49 --- scripts/shell/firewall/fw-universal.sh 2006/09/30 21:55:28 2.48 +++ scripts/shell/firewall/fw-universal.sh 2006/10/04 09:23:25 2.49 @@ -9,7 +9,7 @@ # Licensed under terms of GNU General Public License. # All rights reserved. # -# $Platon: scripts/shell/firewall/fw-universal.sh,v 2.47 2006-09-24 16:17:10 rajo Exp $ +# $Platon: scripts/shell/firewall/fw-universal.sh,v 2.48 2006-09-30 21:55:28 rajo Exp $ # # Changelog: # 2003-10-24 - created @@ -542,10 +542,7 @@ allow_input() for port in $ALL_DROP_INPUT_TCP; do for iface in $INTERFACES; do echo -en " $port($iface)" - IPS="IP_$iface"; - for ip in ${!IPS}; do - $IPTABLES -A INPUT -i $iface -d $ip -p TCP --dport $port -j DROP - done + $IPTABLES -A INPUT -i $iface -p TCP --dport $port -j DROP done done echo " done." @@ -555,10 +552,7 @@ allow_input() for port in $ALL_DROP_INPUT_UDP; do for iface in $INTERFACES; do echo -en " $port($iface)" - IPS="IP_$iface"; - for ip in ${!IPS}; do - $IPTABLES -A INPUT -i $iface -d $ip -p UDP --dport $port -j DROP - done + $IPTABLES -A INPUT -i $iface -p UDP --dport $port -j DROP done done echo " done."