Skip to content

Instantly share code, notes, and snippets.

@bartprokop
Last active July 6, 2025 10:37
Show Gist options
  • Save bartprokop/dcbfca21ee25b8734d1050bf0d8fef64 to your computer and use it in GitHub Desktop.
Save bartprokop/dcbfca21ee25b8734d1050bf0d8fef64 to your computer and use it in GitHub Desktop.
Home to Home with Wireguard

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=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment