Diff for scripts/shell/firewall/fw-universal.sh between version 2.5 and 2.6
version 2.5, 2005/01/02 01:49:01 |
version 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 |
|
|
# 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.org> http://platon.org/
|
|