Diff for scripts/shell/firewall/fw-universal.sh between version 2.48 and 2.49
version 2.48, 2006/09/30 21:55:28 |
version 2.49, 2006/10/04 09:23:25 |
|
|
# 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.47 2006-09-24 16:17:10 rajo Exp $ |
# $Platon: scripts/shell/firewall/fw-universal.sh,v 2.48 2006-09-30 21:55:28 rajo Exp $ |
# |
# |
# Changelog: |
# Changelog: |
# 2003-10-24 - created |
# 2003-10-24 - created |
|
|
for port in $ALL_DROP_INPUT_TCP; do |
for port in $ALL_DROP_INPUT_TCP; do |
for iface in $INTERFACES; do |
for iface in $INTERFACES; do |
echo -en " $port($iface)" |
echo -en " $port($iface)" |
IPS="IP_$iface"; |
$IPTABLES -A INPUT -i $iface -p TCP --dport $port -j DROP |
for ip in ${!IPS}; do |
|
$IPTABLES -A INPUT -i $iface -d $ip -p TCP --dport $port -j DROP |
|
done |
|
done |
done |
done |
done |
echo " done." |
echo " done." |
|
|
for port in $ALL_DROP_INPUT_UDP; do |
for port in $ALL_DROP_INPUT_UDP; do |
for iface in $INTERFACES; do |
for iface in $INTERFACES; do |
echo -en " $port($iface)" |
echo -en " $port($iface)" |
IPS="IP_$iface"; |
$IPTABLES -A INPUT -i $iface -p UDP --dport $port -j DROP |
for ip in ${!IPS}; do |
|
$IPTABLES -A INPUT -i $iface -d $ip -p UDP --dport $port -j DROP |
|
done |
|
done |
done |
done |
done |
echo " done." |
echo " done." |
Platon Group <platon@platon.org> http://platon.org/
|
|