Board logo

標題: Block Bruteforce login [打印本頁]

作者: hklkf    時間: 2014-9-4 21:12     標題: 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
複製代碼

作者: hklkf    時間: 2014-9-4 21:18

add rule no ppl hack
[attach]3341[/attach]




歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/) Powered by Discuz! 7.2