Adding custom IPTables rules
Posted: 16 Feb 2021, 09:56
Good morning,
I wish to rate limit by outgoing trafic using some IPTables rules like this:
If I just add these rules in IPTables, will it break CSF? Or is there a way to add some custom iptables rules inside CSF?
I wish to rate limit by outgoing trafic using some IPTables rules like this:
Code: Select all
iptables -A OUTPUT -m hashlimit --hashlimit-upto 5000/sec --hashlimit-burst 10000 --hashlimit-mode dstip --hashlimit-name loutput_ip --hashlimit-dstmask 24 -j RETURN