Skip to contentSkip to conversation

Limit on a per host basis?

DISCUSSION Udo van den Heuvel 2 participants 2 messages Nov 13, 2004 – Nov 15, 2004

lore
Share & tools
lore
#0 lore raw

Hello,

How can I limit traffic (packets coming in) at a per host rate? It looks like the normal limit target is more general and cannot take account of different hosts in a selection.

E.g.: I would like to filter ntp traffic (udp, port 123) to xx packets per minute at most.
How could I accomplish this?

Your ideas are very welcome!

Kind regards,
Udo

#1 lore raw
Quoted 5 lines · Udo van den Heuvel

Hello,

How can I limit traffic (packets coming in) at a per host rate?

Your ideas are very welcome!

This can be done with ipt_recent.

Try iptables -m recent -h for more informations.

Quoted 2 lines

Kind regards,
Udo

HTH,

Samuel
CookingLinux TM