Skip to content

Tools to optimize your linux server and config your vpn tunnel

Notifications You must be signed in to change notification settings

Sonra0/Config-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Config your server

You can have many packages to optimize your linux server and config vpn tunnel and tools.

photo

Getting Started

you can clone this project in your system and don't forget to do 'git submodule init' and 'git submodule update' . then run main.py by python3

Prerequisites

The things you need before run the script.

  • you have to run as root
  • install git
  • install curl
  • install python3

Installation

A step by step guide that will tell you how to get the development environment up and running.

make sure you are root !

do all commands in /root/ !

apt-get -y install git
apt-get install curl
sudo git clone --recurse-submodules https://github.com/Sonra0/Config-server.git
cd Config-server
python3 main.py

run by 1 command :

cd /root/ && sudo apt-get -y install git && sudo apt-get -y install python3 && sudo apt-get -y install curl && sudo git clone --recurse-submodules https://github.com/Sonra0/Config-server.git && cd Config-server && python3 main.py

After it's installed for the first time you can run it by :

cd /root/Config-server/ && python3 main.py

A few examples of useful tasks :

  • Iran firewall : ignore all requests from anywhere except from iran and your white ip list ( your destination server and etc. )

  • SSL certificate

  • Install Mhsanaei x-ui

  • Install Alireza x-ui

  • Install and config tunnels like Rathole and Chisel from Azumi

  • Linux optimizers

  • UFW install and setup

  • Change your SSH port

  • Backup your x-ui database and send it to your telegram bot

  • Change nameserver

I used below repositories in my script :