Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PORTS="
- #all server ports
- "
- IPS="
- #all bungee ips.
- "
- iptables -F
- iptables -X
- iptables -N bungee
- for ip in $IPS
- do
- iptables -A bungee --src $ip -j ACCEPT
- done
- iptables -A bungee -j DROP
- for p in $PORTS
- do
- iptables -I INPUT -m tcp -p tcp --dport $p -j bungee
- done
Advertisement
Add Comment
Please, Sign In to add comment