Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- iptables -F
- iptables -A INPUT -p tcp --dport <MCPORT> -j ACCEPT
- iptables -A INPUT -p udp --dport <MCPORT> -j ACCEPT
- iptables -A INPUT -p tcp --dport 22 -j ACCEPT
- iptables -P INPUT DROP
- iptables -P FORWARD DROP
- iptables -P OUTPUT ACCEPT
- iptables -A INPUT -i lo -j ACCEPT
- iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
- /sbin/service iptables save
Add Comment
Please, Sign In to add comment