diff --git a/README.md b/README.md index cbd8f25..620851c 100644 --- a/README.md +++ b/README.md @@ -4,14 +4,6 @@ This is an implementation of WireGuard in Go. ## Usage -### Config gen -The configs are generate from a yml file. If you want to change the config run `make cfg_gen config_name` where `config_name` is the name of the yaml file you'd like to generate from. The script will search in the `cfg/settings/` folder - -### Example: -`make cfg_gen default` will generate a config from `cfg/settings/default.yml` the file will be called `cfg/cfg_values.go` - -Every time you make changes to the yml you need to rerun this. - Most Linux kernel WireGuard users are used to adding an interface with `ip link add wg0 type wireguard`. With wireguard-go, instead simply run: ``` @@ -59,6 +51,18 @@ This requires an installation of the latest version of [Go](https://go.dev/). ``` $ git clone https://git.zx2c4.com/wireguard-go $ cd wireguard-go +``` + +### Config gen +The configs are generate from a yml file. If you want to change the config run `make cfg_gen config_name` where `config_name` is the name of the yaml file you'd like to generate from. The script will search in the `cfg/settings/` folder + +### Example: +`make cfg_gen default` will generate a config from `cfg/settings/default.yml` the file will be called `cfg/cfg_values.go` + +Every time you make changes to the yml you need to rerun. + +After the generation is done you can build with: +``` $ make ```