Rozdiely pre scripts/shell/firewall/fw-universal.sh medzi verziami 2.77 a 2.78
| verzia 2.77, 2011/01/24 20:26:04 |
verzia 2.78, 2011/07/14 13:13:22 |
|
|
| # 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.76 2011-01-16 12:18:14 nepto Exp $ |
# $Platon: scripts/shell/firewall/fw-universal.sh,v 2.77 2011-01-24 20:26:04 rajo Exp $ |
| # |
# |
| # Changelog: |
# Changelog: |
| # 2003-10-24 - created |
# 2003-10-24 - created |
| Riadok 228 set_default_policy() |
|
| Riadok 228 set_default_policy() |
|
| { # {{{ |
{ # {{{ |
| # Set default policy |
# Set default policy |
| for chain in INPUT OUTPUT FORWARD; do |
for chain in INPUT OUTPUT FORWARD; do |
| |
if [ "X$XEN_MODE" = "Xon" -a "$chain" = "FORWARD" ]; then |
| |
$IPTABLES -P $chain ACCEPT; |
| |
continue; |
| |
fi |
| $IPTABLES -P $chain $DEFAULT_POLICY |
$IPTABLES -P $chain $DEFAULT_POLICY |
| done |
done |
| } # }}} |
} # }}} |
Platon Group <platon@platon.sk> http://platon.sk/
|
|