Got it @PhoneBoy , so I hope below are required steps I need to follow:
# Enable monitor-only mode
[Expert@HostName:0]# fwaccel dos config set --enable-monitor
# Enable logging
[Expert@HostName:0]# fwaccel dos config set --enable-log-drops
#Add a rule with action=drop, log=record, service/protocol=any source IP=192.168.2.101, maximum packets-per-second=1000
[Expert@HostName:0]# fw samp add -a d -l r quota service any source cidr:192.168.2.0/24 pkt-rate 1000 flush true
#Confirm the rule is in place
[Expert@HostName:0]# fw samp get
#Saving and Applying Changes to Policy Rules
[Expert@HostName:0]# fw samp add quota flush true
#Statistics and Monitoring
[Expert@HostName:0]# fwaccel dos stats get
After verifying the logs, when the DOS policy needs to be implemented :
# Disable monitor-only mode (this is the default)
[Expert@HostName:0]# fwaccel dos config set --disable-monitor
# Enable rate limiting policy rules (this is the default)
[Expert@HostName:0]# fwaccel dos config set --enable-rate-limit
Kindly confirm if the above steps are correct or is there anything I missed.
Also as per the SK in Applying changes section there is a point, "So, at reboot, either all the rules are installed, or no rules are installed (if no flush command was found)", what is a "no flush command" and where would it be used.