Rozdiely pre scripts/shell/firewall/fw-universal.sh medzi verziami 2.85 a 2.86
| verzia 2.85, 2011/12/03 19:28:30 |
verzia 2.86, 2011/12/10 19:46:02 |
|
|
| # 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.84 2011-11-18 23:58:33 rajo Exp $ |
# $Platon: scripts/shell/firewall/fw-universal.sh,v 2.85 2011-12-03 19:28:30 rajo Exp $ |
| # |
# |
| # Changelog: |
# Changelog: |
| # 2003-10-24 - created |
# 2003-10-24 - created |
| Riadok 1072 allow_input() |
|
| Riadok 1072 allow_input() |
|
| # ACCEPT {{{ |
# ACCEPT {{{ |
| if [ ! -z "$ACCEPT_INPUT_TCP" ]; then |
if [ ! -z "$ACCEPT_INPUT_TCP" ]; then |
| print_info -en "$iface: Accepting INPUT TCP connections on ports:" |
print_info -en "$iface: Accepting INPUT TCP connections on ports:" |
| |
counter=0; |
| for port in $ACCEPT_INPUT_TCP; do |
for port in $ACCEPT_INPUT_TCP; do |
| src_ip="" |
src_ip="" |
| eval `echo $port | awk -v FS=: '/:/ { printf "src_ip=\"%s\"; port=\"%s\";", $1, $2; }'` |
eval `echo $port | awk -v FS=: '/:/ { printf "src_ip=\"%s\"; port=\"%s\";", $1, $2; }'` |
| Riadok 1079 allow_input() |
|
| Riadok 1080 allow_input() |
|
| port="ALL"; |
port="ALL"; |
| fi |
fi |
| print_info -en " $port"`[ ! -z "$src_ip" ] && echo "[$src_ip]"` |
print_info -en " $port"`[ ! -z "$src_ip" ] && echo "[$src_ip]"` |
| |
if [ $(( ++counter )) -ge 5 ]; then counter=0; print_info ""; fi; |
| echo $port | grep -q , |
echo $port | grep -q , |
| multiport="$?"; |
multiport="$?"; |
| if [ "$multiport" -eq 0 ]; then |
if [ "$multiport" -eq 0 ]; then |
Platon Group <platon@platon.sk> http://platon.sk/
|
|