port knocking: open only 6 seconds

This commit is contained in:
Jérôme Schneider 2011-06-21 15:44:32 +02:00
parent ec75d05e47
commit e8fe286563
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ port_knocking()
iptables -A INPUT -i $WAN_INT -p tcp --dport $kport -m recent --set --name toc$i
fi
done
iptables -A INPUT -i $WAN_INT -p tcp --dport $port -m recent --rcheck --seconds 15 --name toc$i -m state --state NEW -j ACCEPT
iptables -A INPUT -i $WAN_INT -p tcp --dport $port -m recent --rcheck --seconds 6 --name toc$i -m state --state NEW -j ACCEPT
}
start()