mirror of
https://github.com/Kiritow/wg-ops.git
synced 2024-03-22 13:11:37 +08:00
32 lines
950 B
Markdown
32 lines
950 B
Markdown
# Wireguard Ops
|
|
|
|
A group of Interactive bash scripts for [Wireguard](https://github.com/WireGuard/wireguard-go) over [udp2raw-tunnel](https://github.com/wangyu-/udp2raw-tunnel), with optional [UDPSpeeder](https://github.com/wangyu-/UDPspeeder) support.
|
|
|
|
## Basic Usage
|
|
|
|
1. Run `install.sh`. (May prompt sudo)
|
|
|
|
2. Run `create.sh` and fill in content interactively.
|
|
|
|
3. Run the generated `start.sh`. (May prompt sudo)
|
|
|
|
Start as service: `systemctl start wg-quick@wg0`
|
|
|
|
Start service on system start-up: `systemctl enable wg-quick@wg0`
|
|
|
|
See [wg-quick(8)](https://man7.org/linux/man-pages/man8/wg-quick.8.html) for more information.
|
|
|
|
### Quick Import
|
|
|
|
On client-only nodes, run `quick_create_client.sh` and paste the **Quick Import String** (starts with `#QCS#`) to setup quickly.
|
|
|
|
## Notice
|
|
|
|
Make sure to setup firewall. UFW is recommended.
|
|
|
|
For a forwarding server, the following commands might be needed:
|
|
|
|
```
|
|
ufw route allow in on wg0 out on wg0
|
|
```
|