Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Piatok, 29. marec 2024

Rozdiely pre scripts/shell/firewall/fw-universal.sh medzi verziami 2.48 a 2.49

verzia 2.48, 2006/09/30 21:55:28 verzia 2.49, 2006/10/04 09:23:25
Riadok 9 
Riadok 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
Riadok 542  allow_input()
Riadok 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."
Riadok 555  allow_input()
Riadok 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:
Odstranené z verzie2.48  
zmenené riadky
  Pridané vo verzii2.49

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok