Advertisement
Logos01

Untitled

Jun 27th, 2013
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. iptables -N SSH-ALL
  2. iptables -N SSH-BLOCKED
  3. iptables -A input_wan --protocol tcp --dport 22 --jump SSH-ALL
  4. iptables -A SSH-ALL --protocol tcp --match recent --name SSH --set
  5. iptables -A SSH-ALL --protocol tcp --match recent --name SSH --update --seconds 180 --hitcount 8 --jump SSH-BLOCKED
  6. iptables -A SSH-ALL --protocol tcp --jump ACCEPT
  7. iptables -A SSH-BLOCKED -j ULOG --ulog-nlgroup 1 --ulog-prefix "Blocked SSH Event: "
  8. iptables -A SSH-BLOCKED -j SET --add-set blackhole src
  9. iptables -A SSH-BLOCKED --protocol tcp --jump DROP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement