A production-ready Bash script for optimizing Linux VPS servers for high-connection workloads (VLESS, WebSocket, Reverse Proxy, CDN, Tunnel, etc.).
- Network Optimization: BBR/BBRv2 congestion control
- Sysctl Tuning: Optimized TCP/IP parameters for high-connection workloads
- File Descriptor Limits: Increased system-wide limits
- Swap Management: Intelligent swap creation based on RAM size
- NIC Optimization: Network interface tuning (GRO, GSO, TSO)
- IRQ Balance: Automatic setup for multi-core systems
- Advanced Tuning: THP disable
- Backup & Rollback: Automatic backups with rollback capability
- Multiple Profiles: General, High-Connection, Gaming, CDN modes
- Ubuntu 20.04+ / 22.04+ / 24.04+ or Debian 11+ / 12+
- Root privileges
- Kernel 4.9+ (for BBR support)
One-line installer (downloads, makes executable, and runs automatically):
wget -O optimized.sh https://raw.githubusercontent.com/zZedix/optimized/main/optimized.sh && chmod +x optimized.sh && sudo ./optimized.shThe script provides an interactive menu with the following options:
- General VPS Optimization - Balanced optimization for general use
- High-Connection Proxy Mode - Optimized for proxy servers and high-connection workloads
- Gaming / Low Latency - Optimized for low latency applications
- CDN Mode - Optimized for CDN and content delivery
- Rollback - Restore previous configurations from backups
- Exit - Exit the script
- Creates automatic backups before modifying system files
- Detects system information (RAM, CPU, virtualization type, network interface)
- Applies optimized sysctl parameters
- Increases file descriptor limits
- Manages swap files intelligently
- Optimizes network interfaces
- Enables BBR/BBRv2 congestion control
- Configures IRQ balancing
- Disables Transparent Huge Pages
Backups are stored in: /root/vps-optimizer-backups/
Logs are stored in: /var/log/vps-optimizer.log
- Automatic backups before any modifications
- Idempotent operations (safe to run multiple times)
- Rollback functionality
- Error handling and validation
- OpenVZ detection with appropriate warnings
If you find OptimiZED useful and want to support its development, consider making a donation:
- Bitcoin (BTC):
bc1q637gahjssmv9g3903j88tn6uyy0w2pwuvsp5k0 - Ethereum (ETH):
0x5B2eE8970E3B233F79D8c765E75f0705278098a0 - Tron (TRX):
TSAsosG9oHMAjAr3JxPQStj32uAgAUmMp3 - USDT (BEP20):
0x5B2eE8970E3B233F79D8c765E75f0705278098a0 - TON:
UQA-95WAUn_8pig7rsA9mqnuM5juEswKONSlu-jkbUBUhku6
- β Star the repository if you find it useful
- π Report bugs and suggest improvements
- π Improve documentation and translations
- π Share with others who might benefit
This project is open source and available for use.
Use this script at your own risk. Always test on a non-production server first. The script modifies system-level configurations that can affect server performance and stability.
Made with β€οΈ by zZedix
Securing the digital world, one line of code at a time!