Skip to content

zZedix/optimized

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 

Repository files navigation

OptimiZED

A production-ready Bash script for optimizing Linux VPS servers for high-connection workloads (VLESS, WebSocket, Reverse Proxy, CDN, Tunnel, etc.).

Features

  • 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

Requirements

  • Ubuntu 20.04+ / 22.04+ / 24.04+ or Debian 11+ / 12+
  • Root privileges
  • Kernel 4.9+ (for BBR support)

Installation

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.sh

Usage

The script provides an interactive menu with the following options:

  1. General VPS Optimization - Balanced optimization for general use
  2. High-Connection Proxy Mode - Optimized for proxy servers and high-connection workloads
  3. Gaming / Low Latency - Optimized for low latency applications
  4. CDN Mode - Optimized for CDN and content delivery
  5. Rollback - Restore previous configurations from backups
  6. Exit - Exit the script

What It Does

  • 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

Backup Location

Backups are stored in: /root/vps-optimizer-backups/

Logs are stored in: /var/log/vps-optimizer.log

Safety Features

  • Automatic backups before any modifications
  • Idempotent operations (safe to run multiple times)
  • Rollback functionality
  • Error handling and validation
  • OpenVZ detection with appropriate warnings

πŸ’° Donations

If you find OptimiZED useful and want to support its development, consider making a donation:

Cryptocurrency Donations

  • Bitcoin (BTC): bc1q637gahjssmv9g3903j88tn6uyy0w2pwuvsp5k0
  • Ethereum (ETH): 0x5B2eE8970E3B233F79D8c765E75f0705278098a0
  • Tron (TRX): TSAsosG9oHMAjAr3JxPQStj32uAgAUmMp3
  • USDT (BEP20): 0x5B2eE8970E3B233F79D8c765E75f0705278098a0
  • TON: UQA-95WAUn_8pig7rsA9mqnuM5juEswKONSlu-jkbUBUhku6

Other Ways to Support

  • ⭐ Star the repository if you find it useful
  • πŸ› Report bugs and suggest improvements
  • πŸ“– Improve documentation and translations
  • πŸ”— Share with others who might benefit

License

This project is open source and available for use.

Disclaimer

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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages