wg-ops/Readme.md

28 lines
832 B
Markdown
Raw Normal View History

2021-07-13 13:59:59 +08:00
# Wireguard Ops
2021-07-13 15:52:39 +08:00
2021-07-16 16:43:32 +08:00
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.
2021-07-16 11:56:50 +08:00
## Usage
1. Run `install.sh`. (May require Super user permission)
2. Run `create.sh` and fill in content interactively.
3. Run the generated `start.sh`. (May require Super user permission)
2021-07-16 16:38:55 +08:00
2021-07-31 02:32:08 +08:00
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.
2021-07-16 16:38:55 +08:00
## 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
```