Skip to content

Instantly share code, notes, and snippets.

View newsworthy39's full-sized avatar

newsworthy39

View GitHub Profile
[Interface]
PrivateKey = <Output of privatekey file that contains your private key>
Address = 203.0.123.12/24, fd86:ea04:1115::5/64
[Peer]
PublicKey = <Server Public key>
Endpoint = <Server Public IP>:51820
AllowedIPs = 203.0.123.12/24, fd86:ea04:1115::5/64
@newsworthy39
newsworthy39 / wg-quick.service
Last active March 24, 2024 19:40
wq-quick systemd unit files
# This file is largely based on the tinc@ service-idea.
# Both files belong in /lib/systemd/system/
# Enable it, systemctl enable wg-quick, then enable configurations (ie, /etc/wireguard/wg0.conf)
# systemctl enable wg-quick@wg0
[Unit]
Description=Wireguard VPN
After=network-online.target
Wants=network-online.target
@newsworthy39
newsworthy39 / userconf.txt
Created May 29, 2024 14:10 — forked from M0LTE/userconf.txt
Raspberry Pi userconf
Create a file named user userconf (or userconf.txt) containing the following:
pi:$6$c70VpvPsVNCG0YR5$l5vWWLsLko9Kj65gcQ8qvMkuOoRkEagI90qi3F/Y7rm8eNYZHW8CY6BOIKwMH7a3YYzZYL90zf304cAHLFaZE0
Place userconf (or userconf.txt) plus an empty file named ssh (or ssh.txt) in the BOOT (FAT32) partition of the SD card.
Insert the SD card in the Raspberry Pi and it should boot with access to user 'pi' (password : raspberry) via SSH.