=================================================================== RCS file: /home/cvsd/home/cvs/scripts/shell/firewall/fw-universal.sh,v retrieving revision 2.98 retrieving revision 2.99 diff -u -p -r2.98 -r2.99 --- scripts/shell/firewall/fw-universal.sh 2013/09/28 09:22:42 2.98 +++ scripts/shell/firewall/fw-universal.sh 2013/09/28 09:25:35 2.99 @@ -22,7 +22,7 @@ # Licensed under terms of GNU General Public License. # All rights reserved. # -# $Platon: scripts/shell/firewall/fw-universal.sh,v 2.97 2013-09-28 08:30:57 nepto Exp $ +# $Platon: scripts/shell/firewall/fw-universal.sh,v 2.98 2013-09-28 09:22:42 nepto Exp $ # # Changelog: # 2003-10-24 - created @@ -1224,7 +1224,7 @@ allow_output() # TCP if [ -z "$ACCEPT_OUTPUT_TCP" ]; then for ip in ${!IPS}; do - output_tcp_str=" $ip($iface)"; + output_tcp_str="$output_tcp_str $ip($iface)"; $IPTABLES -A OUTPUT -p TCP -o ${!riface} -s $ip -j ACCEPT done else @@ -1252,7 +1252,7 @@ allow_output() # UDP if [ -z "$ACCEPT_OUTPUT_UDP" ]; then for ip in ${!IPS}; do - output_udp_str=" $ip($iface)"; + output_udp_str="$output_udp_str $ip($iface)"; $IPTABLES -A OUTPUT -p UDP -o ${!riface} -s $ip -j ACCEPT done else @@ -1279,7 +1279,7 @@ allow_output() # ICMP for ip in ${!IPS}; do - output_icmp_str=" $ip($iface)"; + output_icmp_str="$output_icmp_str $ip($iface)"; $IPTABLES -A OUTPUT -p ICMP -o ${!riface} -s $ip -j ACCEPT done done