返回列表 發帖

Block Bruteforce login

http://wiki.mikrotik.com/wiki/Bruteforce_login_prevention
/ip firewall filter
  1. add chain=input protocol=tcp dst-port=21 src-address-list=ftp_blacklist action=drop \
  2. comment="drop ftp brute forcers"

  3. add chain=output action=accept protocol=tcp content="530 Login incorrect" dst-limit=1/1m,9,dst-address/1m

  4. add chain=output action=add-dst-to-address-list protocol=tcp content="530 Login incorrect" \
  5. address-list=ftp_blacklist address-list-timeout=24h
複製代碼
  1. add chain=input protocol=tcp dst-port=22 src-address-list=ssh_blacklist action=drop \
  2. comment="drop ssh brute forcers" disabled=no

  3. add chain=input protocol=tcp dst-port=22 connection-state=new \
  4. src-address-list=ssh_stage3 action=add-src-to-address-list address-list=ssh_blacklist \
  5. address-list-timeout=10d comment="" disabled=no

  6. add chain=input protocol=tcp dst-port=22 connection-state=new \
  7. src-address-list=ssh_stage2 action=add-src-to-address-list address-list=ssh_stage3 \
  8. address-list-timeout=1m comment="" disabled=no

  9. add chain=input protocol=tcp dst-port=22 connection-state=new src-address-list=ssh_stage1 \
  10. action=add-src-to-address-list address-list=ssh_stage2 address-list-timeout=1m comment="" disabled=no

  11. add chain=input protocol=tcp dst-port=22 connection-state=new action=add-src-to-address-list \
  12. address-list=ssh_stage1 address-list-timeout=1m comment="" disabled=no
複製代碼

add rule no ppl hack
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

TOP

返回列表