Rozdiely pre scripts/shell/firewall/fw-universal.sh medzi verziami 2.5 a 2.6
| verzia 2.5, 2005/01/02 01:49:01 |
verzia 2.6, 2005/01/02 02:37:12 |
|
|
| # 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.4 2004/12/31 01:54:52 rajo Exp $ |
# $Platon: scripts/shell/firewall/fw-universal.sh,v 2.5 2005/01/02 01:49:01 rajo Exp $ |
| # |
# |
| # Changelog: |
# Changelog: |
| # 2004-11-14 - created |
# 2004-11-14 - created |
| Riadok 116 antispoof_on() |
|
| Riadok 116 antispoof_on() |
|
| # clear status of iptable chains |
# clear status of iptable chains |
| remove_chains() |
remove_chains() |
| { # {{{ |
{ # {{{ |
| $IPTABLES -F # clear all chains |
|
| $IPTABLES -X # remove all chains |
for table in filter nat mangle; do |
| |
$IPTABLES -t $table -F # clear all chains |
| |
$IPTABLES -t $table -X # remove all chains |
| |
done |
| |
|
| } # }}} |
} # }}} |
| |
|
| # all packets on loopback are accpted |
# all packets on loopback are accpted |
Platon Group <platon@platon.sk> http://platon.sk/
|
|