Rozdiely pre scripts/shell/firewall/fw-universal.sh medzi verziami 2.74 a 2.76
verzia 2.74, 2010/08/08 23:34:25 |
verzia 2.76, 2011/01/16 12:18:14 |
|
|
# Can be started by init or by hand. |
# Can be started by init or by hand. |
# |
# |
# Developed by Lubomir Host 'rajo' <rajo AT platon.sk> |
# Developed by Lubomir Host 'rajo' <rajo AT platon.sk> |
# Copyright (c) 2003-2009 Platon Group, http://platon.sk/ |
# Copyright (c) 2003-2011 Platon Group, http://platon.sk/ |
# 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.73 2010-06-21 21:52:16 nepto Exp $ |
# $Platon: scripts/shell/firewall/fw-universal.sh,v 2.75 2010-10-22 12:20:42 nepto Exp $ |
# |
# |
# Changelog: |
# Changelog: |
# 2003-10-24 - created |
# 2003-10-24 - created |
# |
# |
|
|
|
### BEGIN INIT INFO |
|
# Provides: firewall |
|
# Required-Start: $network $remote_fs |
|
# Required-Stop: $network $remote_fs |
|
# Default-Start: 2 3 4 5 |
|
# Default-Stop: 0 1 6 |
|
# Short-Description: Starts firewall |
|
# Description: Handle universal firewall script by Platon Group |
|
# http://platon.sk/cvs/cvs.php/scripts/shell/firewall/ |
|
# Author: Lubomir Host <rajo@platon.sk> |
|
# Copyright: (c) 2003-2011 Platon Group |
|
### END INIT INFO |
|
|
umask 077 # security |
umask 077 # security |
|
|
DESC="firewall" |
DESC="firewall" |
Riadok 1035 custom_rules() |
|
Riadok 1048 custom_rules() |
|
if [ -z "${!varname}" ]; then |
if [ -z "${!varname}" ]; then |
break; |
break; |
fi |
fi |
echo -n "#$i"; |
print_info -n "#$i"; |
$IPTABLES ${!varname}; |
$IPTABLES ${!varname}; |
rc="$?"; |
rc="$?"; |
if [ "$rc" -eq 0 ]; then |
if [ "$rc" -eq 0 ]; then |
echo -n "[OK] "; |
print_info -n "[OK] "; |
else |
else |
echo -n "[rc:$?] "; |
print_info -n "[rc:$?] "; |
fi; |
fi; |
initialized="yes"; |
initialized="yes"; |
done |
done |
Platon Group <platon@platon.sk> http://platon.sk/
|
|