Install necessary packages
opkg update
opkg install luci-proto-wireguard
Generate keys on each peer. I use https://github.com/warner/wireguard-vanity-address to have some nice prefix
brew install rustup
rustup default stable
export PATH="$(brew --prefix rustup)/bin:$PATH"
cargo install wireguard-vanity-address
Example keys with Apple prefix:
❯ ~/.cargo/bin/wireguard-vanity-address --in 5 apple
searching for 'apple' in pubkey[0..5], one of every 33554432 keys should match
one trial takes 18.7 us, CPU cores available: 12
est yield: 52.3 seconds per key, 19.12e-3 keys/s
hit Ctrl-C to stop
private 6NuXmU6qH4d3+8NbMoDiXrcJhkPQ6P5lDLe51AbhoEY= public ApPLEA19k6uBUM8hmPP3sjnWjQVutGcsexBHfIfAECk=
private GHCUEf+Qkb8r6V6qa9D/g77TkobkkDyVBpMpo+pN53I= public APpLEuG8bVWZBCRhFki0ZmtgQsUjkdqeL9IRf2gSPHg=
private wIfJn03wwakdXJNDpe6bRCLWWfE9GJ+r5ZKnLtE+U2Q= public APPleAuzAzZbI8AC+stqcb9nHxzfQjGEsnDM8WwCiQM=