summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérôme Schneider <jschneider@entrouvert.com>2011-06-21 13:44:32 (GMT)
committerJérôme Schneider <jschneider@entrouvert.com>2011-06-21 13:44:32 (GMT)
commite8fe286563e7f4ab96b9c6edfc9dff2983ee64db (patch)
tree7e44756930f0298eaf5af492650b7ec3bf5ad351
parentec75d05e475e23ef819d8f724313b887858e8de1 (diff)
downloadeofirewall-e8fe286563e7f4ab96b9c6edfc9dff2983ee64db.zip
eofirewall-e8fe286563e7f4ab96b9c6edfc9dff2983ee64db.tar.gz
eofirewall-e8fe286563e7f4ab96b9c6edfc9dff2983ee64db.tar.bz2
port knocking: open only 6 seconds
-rwxr-xr-xfirewall2
1 files changed, 1 insertions, 1 deletions
diff --git a/firewall b/firewall
index 5148e69..092e43b 100755
--- a/firewall
+++ b/firewall
@@ -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()