Advertisement
Guest User

Untitled

a guest
Jun 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. IPTABLES
  2. iptables -F
  3.  
  4. //1.
  5. iptables -A input -p tcp - -dport 22 -m limit - -limit 1/m - -limit -burst 3 -j ACCEPT
  6. //2
  7. iptables -A input -i eth1 -p tcp - -dport21 -j ACCEPT
  8. iptables -A output -i eth1 -p tcp - -dport21 -j ACCEPT
  9. //3
  10. iptables -A input -s 182.168.123.31 -j DROP
  11. iptables -A output -d 182.168.123.31 -j DROP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement