Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. iptables -P INPUT REJECT --reject-with icmp-host-prohibited
  2.  
  3. iptables -P INPUT DROP
  4.  
  5. iptables -A INPUT -p tcp ! --dport 22 -j REJECT --reject-with icmp-host-prohibited
  6.  
  7. iptables -A INPUT -p tcp ! --dport 22 -j DROP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement