Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Štvrtok, 18. apríl 2024

Rozdiely pre scripts/shell/firewall/fw-universal.sh medzi verziami 2.54 a 2.56

verzia 2.54, 2008/01/17 21:47:44 verzia 2.56, 2008/01/27 13:36:02
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.53 2008-01-17 21:44:30 rajo Exp $  # $Platon: scripts/shell/firewall/fw-universal.sh,v 2.55 2008-01-17 22:12:34 rajo Exp $
 #  #
 # Changelog:  # Changelog:
 # 2003-10-24 - created  # 2003-10-24 - created
Riadok 33  if [ "x$1" = "xblock" ] || [ "x$QUIET" =
Riadok 33  if [ "x$1" = "xblock" ] || [ "x$QUIET" =
 else  else
         print_info()          print_info()
         {          {
                 echo $*                  echo "$@"
         }          }
 fi  fi
 # }}}  # }}}
Riadok 996  add_banned_ip()
Riadok 996  add_banned_ip()
                 cat >> $TMPFILE                  cat >> $TMPFILE
         else          else
                 for IP in $*; do                  for IP in $*; do
                         echo $i >> $TMPFILE;                          echo $IP >> $TMPFILE;
                 done                  done
         fi          fi
         read_config_ips $TMPFILE >> $DEFAULT_FIREWALL_CONFIG_DIR/BANNED_IP.conf          read_config_ips $TMPFILE >> $DEFAULT_FIREWALL_CONFIG_DIR/BANNED_IP.conf
Riadok 1012  deploy_block()
Riadok 1012  deploy_block()
         print_info "Deploying to local rules ..."          print_info "Deploying to local rules ..."
         add_banned_ip $*          add_banned_ip $*
         # start the some script twice to refresh rules (new blocked IP's)          # start the some script twice to refresh rules (new blocked IP's)
         $0 start          QUIET=yes $0 start
         TMPFILE=`mktemp -t fw-universal.sh-XXXXXX` || exit 1          TMPFILE=`mktemp -t fw-universal.sh-XXXXXX` || exit 1
         trap 'rm -f $TMPFILE' 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15          trap 'rm -f $TMPFILE' 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
         for i in $*; do          for i in $*; do

Legend:
Odstranené z verzie2.54  
zmenené riadky
  Pridané vo verzii2.56

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