iptables will wait for exclusive access

iptables will wait for exclusive access using the "-w" switch if another process has already a lock on it.
This commit is contained in:
t3chn0m4g3 2014-12-18 14:20:54 +01:00
parent 4c0685a26d
commit 762cfd05fe

View file

@ -3,7 +3,7 @@
# T-Pot Community Edition post install script # # T-Pot Community Edition post install script #
# Ubuntu server 14.04, x64 # # Ubuntu server 14.04, x64 #
# # # #
# v0.15 by mo, DTAG, 2014-11-28 # # v0.16 by mo, DTAG, 2014-12-18 #
######################################################## ########################################################
# Let's make sure there is a warning if running for a second time # Let's make sure there is a warning if running for a second time
@ -170,7 +170,7 @@ stop on runlevel [!2345]
respawn respawn
pre-start script pre-start script
sleep 1 sleep 1
/sbin/iptables -A INPUT -p tcp --syn -m state --state NEW -j NFQUEUE /sbin/iptables -A INPUT -w -p tcp --syn -m state --state NEW -j NFQUEUE
end script end script
script script
sleep 1 sleep 1
@ -178,7 +178,7 @@ script
end script end script
post-stop script post-stop script
sleep 1 sleep 1
/sbin/iptables -D INPUT -p tcp --syn -m state --state NEW -j NFQUEUE /sbin/iptables -D INPUT -w -p tcp --syn -m state --state NEW -j NFQUEUE
/usr/bin/docker rm honeytrap /usr/bin/docker rm honeytrap
end script end script
EOF EOF