mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-05-09 00:28:52 +00:00
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:
parent
4c0685a26d
commit
762cfd05fe
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue