In this moment, i have the following firewall rules:
Code: Select all
chain=forward action=add-src-to-address-list connection-state=new connection-limit=5000,32 protocol=tcp address-list=3rdAlertSPAM address-list-timeout=none-static out-interface=ETH1 dst-port=25,587 limit=5k/12h,0:packet log=no log-prefix=""
chain=forward action=add-src-to-address-list connection-state=new connection-limit=500,32 protocol=tcp address-list=2ndAlertSPAM address-list-timeout=1 out-interface=ETH1 dst-port=25,587 limit=500/1h,0:packet log=no log-prefix=""
chain=forward action=add-src-to-address-list connection-state=new connection-limit=50,32 protocol=tcp address-list=1stAlertSPAM address-list-timeout=5m out-interface=ETH1 dst-port=25,587 limit=50/30s,0:packet log=no log-prefix=""
chain=forward action=drop protocol=tcp src-address-list=1stAlertSPAM out-interface=ETH1 dst-port=25,465 log=no log-prefix=""
chain=forward action=drop protocol=tcp src-address-list=2ndAlertSPAM out-interface=ETH1 dst-port=25,465 log=no log-prefix=""
chain=forward action=drop protocol=tcp src-address-list=3rdAlertSPAM out-interface=ETH1 dst-port=25,465 log=no log-prefix=""
- If more than 50 emails are sent in less than 30 seconds, the IP is blocked for 5 minutes.
- If more than 500 emails are sent in less than 1 hour, the IP is blocked for 1 hour.
- If more than 5,000 emails are sent in less than 12 hours, the IP is permanently blocked.