mirror of
https://github.com/Kiritow/wg-ops.git
synced 2024-03-22 13:11:37 +08:00
WireGuard Ops
app | ||
tools | ||
.gitignore | ||
create.sh | ||
generate.py | ||
install_cn.sh | ||
install.sh | ||
LICENSE | ||
mux.c | ||
Readme.md |
WireGuard Ops
A group of Interactive bash scripts for WireGuard over udp2raw-tunnel, with optional UDPSpeeder support.
Basic Usage
-
Run
install.sh
. (May prompt sudo) -
Write a valid WireGuard config file, with supported extension tags.
-
Run
python3 generate.py
to convert extension tags into config lines.
Start as service: systemctl start wg-quick@wg0
Start service on system start-up: systemctl enable wg-quick@wg0
See wg-quick(8) for more information.
Run python3 generate.py -h
for more help about the generator.
wg-ops: WireGuard configuration extended generator
OPTIONS
-h Display this help and quit.
-k Output generated config to standard output
-o <filename> Output generated config to file. Default is {source_filename}.gen
TAGS
#enable-bbr
#enable-forward
#iptables-forward
#route-to table
#route-from table
#udp2raw-server name port password
#udp2raw-client name port remote password
#udp2raw-client-mux name mux port remote password
#gost-server name port
#gost-client name port remote
#gost-client-mux name mux port remote
#use-tunnel name
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
Reload script only reload wireguard configs. Changes made to tunnels will not work without restart.