Advertisement
Guest User

Untitled

a guest
May 25th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. iptables -F
  2. iptables -X
  3. iptables –I INPUT –p tcp –dport 21 –i enp0s3 –m state –state NEW –m recent –set
  4. iptables –I INPUT –p tcp –dport 21 –i enp0s3 –m state –state NEW –m recent –update –seconds 60 –hitcount 3 –j
  5. DROP
  6. iptables -I INPUT –p tcp –dport 21 –m state –state NEW –j ACCEPT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement