Rozdiely pre scripts/shell/firewall/fw-universal.sh medzi verziami 2.116 a 2.117
| verzia 2.116, 2018/06/28 23:13:42 |
verzia 2.117, 2018/08/23 04:34:58 |
|
|
| # 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.115 2018/06/28 22:46:00 nepto Exp $ |
# $Platon: scripts/shell/firewall/fw-universal.sh,v 2.116 2018/06/28 23:13:42 nepto Exp $ |
| # |
# |
| # Changelog: |
# Changelog: |
| # 2003-10-24 - created |
# 2003-10-24 - created |
| Riadok 767 do_ban_single_ip() |
|
| Riadok 767 do_ban_single_ip() |
|
| if [ "X$XEN_MODE" = "Xon" ]; then |
if [ "X$XEN_MODE" = "Xon" ]; then |
| print_info -ne " XEN_MODE "; |
print_info -ne " XEN_MODE "; |
| else |
else |
| $IPTABLES -A FORWARD -s $banned_ip -j DROP; |
# This does immediate connection termination, but it must be |
| |
# inserted (not appended) into chain, otherwise connection |
| |
# will still remain alive -- Nepto [2018-08-23] |
| |
$IPTABLES -I FORWARD -s $banned_ip -j DROP; |
| fi |
fi |
| done |
done |
| } # }}} |
} # }}} |
Platon Group <platon@platon.sk> http://platon.sk/
|
|