mirror of
https://github.com/Kiritow/wg-ops.git
synced 2024-03-22 13:11:37 +08:00
15 lines
271 B
Bash
Executable File
15 lines
271 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo 'Detecting Public IP address...'
|
|
export WG_PUBLICIP=$(curl ident.me)
|
|
|
|
export WG_MYPRIK=$(wg genkey)
|
|
export WG_MYPUBK=$(echo $WG_MYPRIK | wg pubkey)
|
|
|
|
python3 tool_create.py
|
|
python3 tool_generate.py
|
|
|
|
chmod +x start.sh
|
|
chmod +x stop.sh
|
|
chmod +x restart.sh
|