wg-bond

Crates.iowg-bond
lib.rswg-bond
version0.2.1
sourcesrc
created_at2020-08-07 01:41:03.886182
updated_at2020-08-18 14:47:45.454654
descriptionWireguard configuration manager
homepagehttps://gitlab.com/cab404/wg-bond
repositoryhttps://gitlab.com/cab404/wg-bond
max_upload_size
id273803
size488,107
Cabia Rangris (cab404)

documentation

README

wg-bond

Easy Wireguard configurator.

preview

I didn't write any documentation yet, but --help option is available.

NixOps example


# Initialize a config:
wgbond init wgvpn

# Add server:
wgbond add server \
--endpoint example.com:42000 \
--nixops \          # Include into NixOps export
--center \          # Make clients use this peer as gateway
--gateway \         # And get internet through it
--masquerade eth0   # And forward via eth0

wgbond add phone --keepalive 30

# Generate and push config to your NixOps cluster
wgbond nixops > wg.nix
nixops modify wg.nix machines.nix
nixops deploy

# Generate config for your phone
wgbond qr phone

Developing

Use VSCodium + Nix for the best experience. Just add recommended extensions, and you are good to go.

Commit count: 120

cargo fmt