https://github.com/akeb/wireguard
https://github.com/akeb/wireguard
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/akeb/wireguard
- Owner: AKEB
- Created: 2023-08-25T20:16:36.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-26T16:56:51.000Z (almost 2 years ago)
- Last Synced: 2025-01-13T19:19:25.529Z (6 months ago)
- Language: Python
- Size: 24.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WireGuard
## Config
* Rename and edit file ```.env.example``` to ```.env```
* Rename and edit file ```wireguard.conf.example``` to ```wireguard.conf```
* ```chmod +x wg.sh```## Commands
* Start WireGuard ```./wg.sh start```
* Stop WireGuard ```./wg.sh stop```
* Restart WireGuard ```./wg.sh restart```
* Show logs WireGuard ```./wg.sh logs```
* Show stats WireGuard ```./wg.sh stat```
* Add new peers ```./wg.sh add ```
* Remove peers ```./wg.sh del ```
* Show peers ```./wg.sh show ```
* Send peers to telegram ```./wg.sh send ```## Install Bot
```bash
apt update && apt install -y python3.9 python3.9-venv
python3.9 -m venv venv
source ./venv/bin/activate
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org python-telegram-bot python-dotenv
deactivate./start_bot.sh
```