Skip to content

Wireguard

Setting up Wireguard on BuyVM using Ubuntu with IPv4 (NAT) and IPv6 (routed)

  • by

Background steps Start with these steps prior to configuring your server (slice). Obtain your link-local subnet First, you’ll need a link-local subnet. Run the following commands: date +%s%Ncat /var/lib/dbus/machine-id Make note of the data that follows each command. Execute the following: printf <date-code><machine-id> | sha1sum Take the ensuing string before the dash and execute the following command: printf <string> | cut -c 31- The resulting string will be 10 digits that represent your link-local IP without the initial “fd” prefix. The commands in series when executed will look like the following: jeffl@thunder:~$ date +%s%N1691408593566195307jeffl@thunder:~$ cat /var/lib/dbus/machine-id007cc62312139d9d7e0ed89a94007567jeffl@thunder:~$ printf 1691384330103279541007cc62312139d9d7e0ed89a94007567 | sha1sumbf9fac1f2453e2177384d0ef2ebb18014deef615 -jeffl@thunder:~$ printf bf9fac1f2453e2177384d0ef2ebb18014deef615 | cut… Read More »Setting up Wireguard on BuyVM using Ubuntu with IPv4 (NAT) and IPv6 (routed)