All of lore.kernel.org
 help / color / mirror / Atom feed
* Denial-of-Service attack on UDP-port 5060 (SIP/VoIP)
@ 2010-11-28 16:02 Secure-SIP-Server
  2010-11-28 18:59 ` Pascal Hambourg
  0 siblings, 1 reply; 12+ messages in thread
From: Secure-SIP-Server @ 2010-11-28 16:02 UTC (permalink / raw)
  To: netfilter

Hi,

I'm suffering on a Denial-of-Service attack on my SIP(VoIP) UDP port 5060, 
getting more then 70 REGISTER requests per second since yesterday. All 
comming from the Japanese IP 59.146.75.111:5088.

First I wrote into my iptable:
....
/sbin/iptables -P INPUT DROP
/sbin/iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
....
/sbin/iptables -A INPUT -p udp --dport 5060 -s 59.146.75.111 -j REJECT
....

but it didn't work.
1st Question:
Why??

Then I wrote:
....
/sbin/iptables -P INPUT DROP
/sbin/iptables -A INPUT -m state --state ESTABLISHED -j ACCEPT
/sbin/iptables -A INPUT -p udp --dport 5060 -s 59.146.75.111 -j REJECT
/sbin/iptables -A INPUT -m state --state RELATED -j ACCEPT
....

Nothing changed, still receiving this REGISTER requests on my server.
Then I did:
....
/sbin/iptables -P INPUT DROP
/sbin/iptables -A INPUT -p udp --dport 5060 -s 59.146.75.111 -j REJECT
/sbin/iptables -A INPUT -m state --state ESTABLISHED -j ACCEPT
/sbin/iptables -A INPUT -m state --state RELATED -j ACCEPT
....

This worked! All requests from that IP are rejected, all others reach my 
server as ever.

/sbin/iptables -L --line-numbers -v -n
shows me an rapidly increasing number of packages and bytes rejected by the 
first statement.

Now my 2nd question:
How can this requests (UDP) be from a ESTABLISHED connection??? They passed 
the firewall in the first two examples and therefore they must be 
ESTABLISHED!?!

3rd question:
Is there a way to tell iptables to lock only a specific IP:PORT for a while 
if this IP transmits more then 50 requests per second? If so, how?

Thanks and regards

Detlef Pilzecker
Weitlahnerstrafle 8
D - 83209 Prien am Chiemsee 


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-12-01 18:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-28 16:02 Denial-of-Service attack on UDP-port 5060 (SIP/VoIP) Secure-SIP-Server
2010-11-28 18:59 ` Pascal Hambourg
2010-11-28 21:31   ` Secure-SIP-Server
2010-11-29  1:20     ` SISINT BA
2010-11-29  2:50     ` /dev/rob0
2010-11-29 13:12       ` SISINT BA
2010-11-29 21:38     ` Secure-SIP-Server
2010-12-01 15:48       ` /dev/rob0
2010-12-01 18:31         ` Secure-SIP-Server
2010-11-30 13:14     ` Using iptables for throttling SMTP traffic Secure-SIP-Server
2010-11-30 13:24       ` Jan Engelhardt
2010-11-30 14:01       ` lst_hoe02

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.