Security Best Practices for Minecraft Servers
Don't let your server become a target. Secure it properly.
Server Access Security
1. Strong Passwords
- Use password manager
- 20+ characters
- Mix symbols, numbers
- Never reuse
2. SSH Key Authentication
ssh-keygen -t rsa -b 4096
ssh-copy-id user@server
Disable password login:
PasswordAuthentication no
3. Firewall Configuration
ufw allow 25565/tcp
ufw allow 22/tcp
ufw enable
In-Game Security
Permission System
LuckPerms Best Practices:
/lp group default permission set
essentials.spawn true
essentials.home true
essentials.sethome true
Never give:
*(all permissions)essentials.*worldedit.*- Operator status
Anti-Cheat
Recommended Plugins:
- Matrix (Best free)
- Vulcan (Premium)
- Spartan
Configuration:
checks:
fly: true
speed: true
killaura: true
scaffold: true
Anti-Grief Protection
CoreProtect:
log-blocks: true
log-entities: true
log-interactions: true
Quick rollback:
/co rollback u:Griefer t:24h r:100
WorldGuard Regions:
/region define spawn
/region flag spawn pvp deny
/region flag spawn build deny
DDoS Protection
1. Use DDoS Protection Services
- TCPShield (free)
- Cloudflare Spectrum
- OVH Game
2. Hide Real IP
server-ip=proxy.tcpshield.com
3. Rate Limiting
connection-throttle: 5000
player-sample-count: 12
Plugin Security
Vetting Plugins
✅ Check SpigotMC reviews ✅ Read source code ✅ Test on local server ✅ Regular updates
❌ Leaked/nulled plugins ❌ Unknown developers ❌ Obfuscated code
Auto-Update (Carefully)
auto-update: false # Update manually
check-updates: true
Backup Strategy
Automated Backups
#!/bin/bash
tar -czf backup-$(date +%Y%m%d).tar.gz server/
find . -name "backup-*.tar.gz" -mtime +7 -delete
Run daily via cron:
0 3 * * * /root/backup.sh
Off-Site Storage
- Google Drive
- Dropbox
- AWS S3
- External server
Staff Security
Vetting Process
- Application review
- Discord interview
- Trial period
- Background check
- Gradual permissions
Staff Permissions
Helper:
- essentials.kick
- essentials.mute
Moderator:
- essentials.ban
- coreprotect.inspect
Admin:
- worldedit.* (limited regions)
- luckperms.user.*
Monitoring
Log Everything
logging:
commands: true
chat: true
connections: true
Alert Systems
- Discord webhooks
- Email notifications
- SMS alerts (critical)
Tools
- LogBlock
- CoreProtect
- DiscordSRV
Exploit Prevention
Common Exploits
-
Dupe glitches
- Update Paper/Spigot
- Test new mechanics
-
Lag machines
- Entity limits
- Redstone limits
- ClearLag
-
Social engineering
- Staff training
- Verification system
- 2FA for critical actions
Incident Response
If Compromised:
- Take server offline
- Change all passwords
- Review logs
- Restore from backup
- Patch vulnerability
- Notify players
Communication
- Transparency
- Clear timeline
- Compensation plan
- Prevention steps
Security Checklist
- [ ] Strong passwords everywhere
- [ ] SSH keys enabled
- [ ] Firewall configured
- [ ] Permissions locked down
- [ ] Anti-cheat active
- [ ] DDoS protection
- [ ] Daily backups
- [ ] Staff vetted
- [ ] Logs monitored
- [ ] Incident plan ready
Security is not optional - it's essential!

