I have set some rules in ufw to rate limit connections, as such:
-A ufw-user-input -p tcp --dport 25 -m state --state NEW -m recent --set
-A ufw-user-input -p tcp --dport 25 -m state --state NEW -m recent --update --seconds 6 --hitcount 12 -j ufw-user-limit
-A ufw-user-input -p tcp --dport 25 -j ufw-user-limit-accept
These are in: before.rules
I would like to white list IPs from being subject to these rules. If I run the command:
sudo ufw allow from 192.168.0.0/24
will this range be white-listed from my rules? Or can this be done another way?