Advertisement
SynOfficial

Untitled

Jan 6th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. iptables -t filter -I INPUT -p tcp --dport 25565 -j ACCEPT
  2.  
  3. iptables -t filter -I INPUT -p tcp --dport 25565 -m state \
  4. --state RELATED,ESTABLISHED -j ACCEPT
  5.  
  6. # Adjust "--connlimit-above NN" to limit the maximum connections per IP
  7. # that you need.
  8. iptables -t filter -I INPUT -p tcp --syn --dport 25565 -m connlimit \
  9. --connlimit-above 10 --connlimit-mask 32 -j DROP
  10.  
  11. # Adjust "--connlimit-above NNN" to the maximum total connections you
  12. # want your web server to support
  13. iptables -t filter -I INPUT -p tcp --syn --dport 25565 -m connlimit \
  14. --connlimit-above 150 -j DROP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement