Answer the question
In order to leave comments, you need to log in
Iptables and SYN flood?
There is currently a SYN flood attack on my server. And only from one ip-address, but the server is still regularly " silent " for 5-7 minutes, and then available for 15-20 seconds.
I entered this IP into iptables with the following command:
iptables -A INPUT -p all -s 178.173.168.238 -j DROP
Answer the question
In order to leave comments, you need to log in
Is 178.173.168.238 the attacker's IP address? Access it through a browser.
Enter admin:admin... You won't believe it...
I have it like this:
echo 1 > /proc/sys/net/ipv4/tcp_syncookies
iptables -A INPUT -p tcp --tcp-flags ALL NONE -j DROP
# SYN and FIN are both set
iptables -A INPUT -p tcp --tcp-flags SYN,FIN SYN,FIN -j DROP
# SYN and RST are both set
iptables -A INPUT -p tcp --tcp-flags SYN,RST SYN,RST -j DROP
# FIN and RST are both set
iptables -A INPUT -p tcp --tcp-flags FIN,RST FIN,RST -j DROP
# FIN is the only bit set, without the expected accompanying ACK
iptables -A INPUT -p tcp --tcp-flags ACK,FIN FIN - j DROP
# PSH is the only bit set, without the expected accompanying ACK
iptables -A INPUT -p tcp --tcp-flags ACK,PSH PSH -j DROP
# URG is the only bit set, without the expected accompanying ACK
iptables -A INPUT -p tcp --tcp-flags ACK,URG URG -j DROP
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question