voodootje0

Untitled

Jul 13th, 2017
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. PORTS="
  2. #all server ports
  3. "
  4.  
  5. IPS="
  6. #all bungee ips.
  7. "
  8. iptables -F
  9. iptables -X
  10. iptables -N bungee
  11.  
  12. for ip in $IPS
  13. do
  14. iptables -A bungee --src $ip -j ACCEPT
  15. done
  16. iptables -A bungee -j DROP
  17.  
  18. for p in $PORTS
  19. do
  20. iptables -I INPUT -m tcp -p tcp --dport $p -j bungee
  21. done
Advertisement
Add Comment
Please, Sign In to add comment