Advertisement
kajege

drop ssh

May 11th, 2017
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. #ssh_blocker
  2.  
  3. / ip firewall filter
  4. add chain=input protocol=tcp dst-port=22 src-address-list=black_list action=drop \
  5. comment=”drop ssh brute forcers” disabled=no
  6. add chain=input protocol=tcp dst-port=22 connection-state=new \
  7. src-address-list=ssh_stage3 action=add-src-to-address-list address-list=black_list address-list-timeout=1d \
  8. comment=”” disabled=no
  9. add chain=input protocol=tcp dst-port=22 connection-state=new \
  10. src-address-list=ssh_stage2 action=add-src-to-address-list address-list=ssh_stage3 address-list-timeout=1m \
  11. comment=”” disabled=no
  12. add chain=input protocol=tcp dst-port=22 connection-state=new \
  13. src-address-list=ssh_stage1 action=add-src-to-address-list address-list=ssh_stage2 address-list-timeout=1m \
  14. comment=”” disabled=no
  15. add chain=input protocol=tcp dst-port=22 connection-state=new \
  16. action=add-src-to-address-list address-list=ssh_stage1 address-list-timeout=1m comment=”” \
  17. disabled=no
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement