I have a system which is configured as SNMP agent and sends the TRAPS to some other remote m/c which is configured as SNMP manager.Now from this SNMP agent i want tot rate limit the SNMP traps using IPTABLES utility existing in Linux.Instead of writing a seperate application to rate limit the SNMP traps to SNMP manager , i want ot achieve this feature using the IPTABLE rule in OUTPUT chain. Is it possible! if yes can anybody suggest the rule in output chain.
Something like this:
Tweak with --limit and --limit-burst values until you like the result.
From Rusty's Remarkably Unreliable Guides (http://www.netfilter.org/documentation/index.html#documentation-howto):