Skip to content

Manage your openvpn server via telegram-bot. Create/Revoke clients and watch server stats.

License

Notifications You must be signed in to change notification settings

imhassla/openvpn-access-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openvpn-access-bot

Manage your openvpn server via telegram-bot. Create/Revoke clients, watch server stats and more.

Install

python3-full and python3-pip required:

sudo apt update && sudo apt install git screen python3-full python3-pip -y

prepare openvpn server first, get the script, make it executable and run as sudo:

curl -O https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh && chmod +x openvpn-install.sh && sudo bash openvpn-install.sh

You need to run the script as root and have the TUN module enabled, you'll have to follow the assistant and answer a few questions to setup your VPN server.

Clone repo and install dependencies:

git clone https://github.com/imhassla/openvpn-access-bot.git
cd openvpn-access-bot
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt

Create a file called .env and add your TOKEN and ADMIN_IDS variables to this file:

echo 'TOKEN=bot_token' > .env
echo 'ADMIN_IDS=1145151,2145153' >> .env

run:

screen python3 openvpn-access-bot.py

Functions:

alt text

alt text

alt text

alt text

alt text

About

Manage your openvpn server via telegram-bot. Create/Revoke clients and watch server stats.

Topics

Resources

License

Stars

Watchers

Forks

Languages