Skip to content

Instantly share code, notes, and snippets.

View mwt's full-sized avatar

Matthew W. Thomas mwt

View GitHub Profile
@mwt
mwt / wg-hosts.sh
Last active September 28, 2023 00:42
Update HOSTS file on my wireguard setup
#!/bin/sh
sed -i '/# BEGIN Wireguard vLAN #/,/# END Wireguard vLAN #/d' /etc/hosts
cat << EOF >> /etc/hosts
# BEGIN Wireguard vLAN #
10.7.0.1 letbox.wg
10.7.0.2 bellerophon.wg
10.7.0.3 specialk.wg
10.7.0.4 candy.wg
10.7.0.5 pixel7.wg
10.7.0.6 augustus.wg