Rozdiely pre scripts/shell/firewall/fw-universal.sh medzi verziami 2.114 a 2.115
| verzia 2.114, 2018/06/28 16:50:18 |
verzia 2.115, 2018/06/28 22:46:00 |
|
|
| # 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.113 2018/03/01 22:47:46 nepto Exp $ |
# $Platon: scripts/shell/firewall/fw-universal.sh,v 2.114 2018/06/28 16:50:18 nepto Exp $ |
| # |
# |
| # Changelog: |
# Changelog: |
| # 2003-10-24 - created |
# 2003-10-24 - created |
| Riadok 1618 shaping_status() |
|
| Riadok 1618 shaping_status() |
|
| |
|
| add_banned_ip() |
add_banned_ip() |
| { # {{{ |
{ # {{{ |
| echo "# `date '+%Y-%m-%d %X' `" >> $DEFAULT_FIREWALL_CONFIG_DIR/BANNED_IP.conf |
echo "# `date '+%F %T'`" >> $DEFAULT_FIREWALL_CONFIG_DIR/BANNED_IP.conf |
| 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 |
| if [ -z "$*" ]; then |
if [ -z "$*" ]; then |
Platon Group <platon@platon.sk> http://platon.sk/
|
|