Can i Limit Max Connections

Hi,
Having seen that a virus sending big number of small packets can decrese overall network(especially wireless network) performance, I was thinking if i can limit max noumber of connections ( session) per IP adress, or for a specific IP adress.
If yess, please someon tell me how?

thanks

To allow not more than 4 concurrent connection from each particular IP address, you can use this rule:

/ip firewall rule forward add protocol=tcp tcp-options=syn-only connection-limit=5
action=drop

Cheers…