All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Detecting p2p traffic
@ 2006-05-07 23:43 Andrew Beverley
  2006-05-08 19:22 ` Jason Boxman
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Andrew Beverley @ 2006-05-07 23:43 UTC (permalink / raw)
  To: lartc

After varying degrees of success with p2p detection modules, I would like to
write the following rules using iptables to reliably identify p2p traffic:

1. If a host on the network has 5 or more simutaneous tcp connections to ports
above 1024, mark all connections to ports 1024 and above as 60.

2. If a host has received (or sent) UDP packets from 5 different hosts' ports
above 1024 in a minute then classify all UDP traffic to and from that host
above port 1024 as 60.

Number 1 can almost be acheived using something similar to:
iptables .. --dport 1024: -m connlimit --connlimit-above 5 -j MARK --set-mark 60

Unfortunately though it still leaves 5 connections slurping up plenty of
bandwidth.

I have no ideas for number 2.

Anybody any ideas?

On my network all p2p traffic falls into these categories, and I don't mind
overmatching with other traffic.

Thanks,

Andy
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

end of thread, other threads:[~2006-05-22 14:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-07 23:43 [LARTC] Detecting p2p traffic Andrew Beverley
2006-05-08 19:22 ` Jason Boxman
2006-05-22  6:26 ` Andrew Beverley
2006-05-22  6:39 ` Andrew Beverley
2006-05-22  6:42 ` Samuel Díaz García
2006-05-22 14:25 ` Luciano Ruete

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.