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

Diff for scripts/shell/firewall/fw-universal.sh between version 2.48 and 2.49

version 2.48, 2006/09/30 21:55:28 version 2.49, 2006/10/04 09:23:25
Line 9 
Line 9 
 # 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.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:  # Changelog:
 # 2003-10-24 - created  # 2003-10-24 - created
Line 542  allow_input()
Line 542  allow_input()
                 for port in $ALL_DROP_INPUT_TCP; do                  for port in $ALL_DROP_INPUT_TCP; do
                         for iface in $INTERFACES; do                          for iface in $INTERFACES; do
                                 echo -en " $port($iface)"                                  echo -en " $port($iface)"
                                 IPS="IP_$iface";                                  $IPTABLES -A INPUT -i $iface -p TCP --dport $port -j DROP
                                 for ip in ${!IPS}; do  
                                         $IPTABLES -A INPUT -i $iface -d $ip -p TCP --dport $port -j DROP  
                                 done  
                         done                          done
                 done                  done
                 echo " done."                  echo " done."
Line 555  allow_input()
Line 552  allow_input()
                 for port in $ALL_DROP_INPUT_UDP; do                  for port in $ALL_DROP_INPUT_UDP; do
                         for iface in $INTERFACES; do                          for iface in $INTERFACES; do
                                 echo -en " $port($iface)"                                  echo -en " $port($iface)"
                                 IPS="IP_$iface";                                  $IPTABLES -A INPUT -i $iface -p UDP --dport $port -j DROP
                                 for ip in ${!IPS}; do  
                                         $IPTABLES -A INPUT -i $iface -d $ip -p UDP --dport $port -j DROP  
                                 done  
                         done                          done
                 done                  done
                 echo " done."                  echo " done."

Legend:
Removed from v.2.48  
changed lines
  Added in v.2.49

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