Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Tuesday, March 19, 2024

Diff for scripts/shell/firewall/fw-universal.sh between version 2.99 and 2.100

version 2.99, 2013/09/28 09:25:35 version 2.100, 2013/09/28 10:07:18
Line 22 
Line 22 
 # Licensed under terms of GNU General Public License.  # Licensed under terms of GNU General Public License.
 # All rights reserved.  # All rights reserved.
 #  #
 # $Platon: scripts/shell/firewall/fw-universal.sh,v 2.98 2013-09-28 09:22:42 nepto Exp $  # $Platon: scripts/shell/firewall/fw-universal.sh,v 2.99 2013-09-28 09:25:35 nepto Exp $
 #  #
 # Changelog:  # Changelog:
 # 2003-10-24 - created  # 2003-10-24 - created
Line 1221  allow_output()
Line 1221  allow_output()
                 accept_output_udp="${iface}_ACCEPT_OUTPUT_UDP"                  accept_output_udp="${iface}_ACCEPT_OUTPUT_UDP"
                 ACCEPT_OUTPUT_UDP="${!accept_output_udp}"                  ACCEPT_OUTPUT_UDP="${!accept_output_udp}"
   
   
                 # TCP                  # TCP
                 if [ -z "$ACCEPT_OUTPUT_TCP" ]; then                  if [ -z "$ACCEPT_OUTPUT_TCP" ]; then
                         for ip in ${!IPS}; do                          for ip in ${!IPS}; do
                                 output_tcp_str="$output_tcp_str $ip($iface)";                                  output_tcp_str="$output_tcp_str $ip(${!riface})";
                                 $IPTABLES -A OUTPUT -p TCP -o ${!riface} -s $ip -j ACCEPT                                  $IPTABLES -A OUTPUT -p TCP -o ${!riface} -s $ip -j ACCEPT
                         done                          done
                 else                  else
Line 1252  allow_output()
Line 1253  allow_output()
                 # UDP                  # UDP
                 if [ -z "$ACCEPT_OUTPUT_UDP" ]; then                  if [ -z "$ACCEPT_OUTPUT_UDP" ]; then
                         for ip in ${!IPS}; do                          for ip in ${!IPS}; do
                                 output_udp_str="$output_udp_str $ip($iface)";                                  output_udp_str="$output_udp_str $ip(${!riface})";
                                 $IPTABLES -A OUTPUT -p UDP -o ${!riface} -s $ip -j ACCEPT                                  $IPTABLES -A OUTPUT -p UDP -o ${!riface} -s $ip -j ACCEPT
                         done                          done
                 else                  else
Line 1279  allow_output()
Line 1280  allow_output()
   
                 # ICMP                  # ICMP
                 for ip in ${!IPS}; do                  for ip in ${!IPS}; do
                         output_icmp_str="$output_icmp_str $ip($iface)";                          output_icmp_str="$output_icmp_str $ip(${!riface})";
                         $IPTABLES -A OUTPUT -p ICMP -o ${!riface} -s $ip -j ACCEPT                          $IPTABLES -A OUTPUT -p ICMP -o ${!riface} -s $ip -j ACCEPT
                 done                  done
         done          done

Legend:
Removed from v.2.99  
changed lines
  Added in v.2.100

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top