Guest User

Untitled

a guest
Dec 11th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #!/bin/bash
  2. iptables -F
  3. iptables -A INPUT -p tcp --dport <MCPORT> -j ACCEPT
  4. iptables -A INPUT -p udp --dport <MCPORT> -j ACCEPT
  5. iptables -A INPUT -p tcp --dport 22 -j ACCEPT
  6. iptables -P INPUT DROP
  7. iptables -P FORWARD DROP
  8. iptables -P OUTPUT ACCEPT
  9. iptables -A INPUT -i lo -j ACCEPT
  10. iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
  11. /sbin/service iptables save
Add Comment
Please, Sign In to add comment