mirror of
https://github.com/undef-i/cwg.git
synced 2026-10-15 23:39:05 +08:00
No description
- C 90.5%
- Shell 8.4%
- Makefile 1.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| ext | ||
| src | ||
| .clang-format | ||
| .gitignore | ||
| .gitmodules | ||
| install.sh | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
cwg
A userspace implementation of AmneziaWG and WireGuard
Quick Start
curl -fsSL https://raw.githubusercontent.com/undef-i/cwg/master/install.sh | bash
To run it in a non-interactive terminal:
curl -fsSL https://raw.githubusercontent.com/undef-i/cwg/master/install.sh |
bash -s -- --non-interactive [--install-tools/--skip-tools] \
[--prebuilt/--source] [--link/--no-link]
To uninstall:
curl -fsSL https://raw.githubusercontent.com/undef-i/cwg/master/install.sh | bash -s -- --uninstall
Install
Use prebuilt binary
curl -fsSL "https://github.com/undef-i/cwg/releases/latest/download/cwg-linux-$(uname -m).tar.gz" |
tar -xz -C /usr/local/bin
ln -sf cwg /usr/local/bin/wireguard-go
ln -sf cwg /usr/local/bin/amneziawg-go
Build from source
git clone --recurse-submodules https://github.com/undef-i/cwg
cd cwg && make
install -m 0755 build/cwg /usr/local/bin/cwg
ln -sf cwg /usr/local/bin/wireguard-go
ln -sf cwg /usr/local/bin/amneziawg-go
Usage
Run directly with a mode:
cwg --wg wg0
cwg --awg awg0
With the installed links you can also run them directly as wireguard-go or
amneziawg-go:
sudo wireguard-go wg0
sudo amneziawg-go awg0
cwg --wg or wireguard-go serves the WireGuard UAPI at
/var/run/wireguard/wg0.sock.
cwg --awg or amneziawg-go serves the AmneziaWG UAPI at
/var/run/amneziawg/awg0.sock.
Pass -f or --foreground to run directly without forking.
License
GNU General Public License, version 3.