CollabVPN: Difference between revisions

Wikimedia didn't like my formatting, oops!
(Add basic tutorial using systemd-networkd)
(Wikimedia didn't like my formatting, oops!)
 
# Create a file named <code>/etc/systemd/network/collabvpn.netdev</code>
# Put the following content into it: https://repo.julias.zone/collabvpn/netdev.txt
# Put the following content into it <code>[NetDev]</code> <code>Name=collabvpn</code><code>Kind=wireguard</code><code>[WireGuard]</code><code>PrivateKey=<YourPrivateKey,SeeBelow!></code><code>[WireGuardPeer]</code><code>PublicKey=DMXzEWzUWoPfV8lJympy1TLsCrCZMkcf/kRofQjg+Gs=</code><code>AllowedIPs=::/0, 0.0.0.0/0</code><code>Endpoint=collabvpn.julias.zone:80</code>
# Set the file permissions using <code>chown root:systemd-network /etc/systemd/network/collabvpn.netdev</code>; <code>chmod 0640 /etc/systemd/network/collabvpn.netdev</code>
# You can generate a keypair using <code>KEY=`wg genkey`; echo PrivateKey $KEY; echo PublicKey `echo $KEY | wg pubkey`</code>. ItIMPORTANT: isKeep important that you keepyour PrivateKey PRIVATE, as the name states it. DO NOT share it with anyone.
# Put the PrivateKey into the config.
# Send Julia your PublicKey, see below. Wait for her to respond and then continue.
# Create a file named <code>/etc/systemd/network/collabvpn.network</code>
# Put the following content into it https://repo.julias.zone/collabvpn/network.txt
# Put the following content into it <code>[Match]</code> <code>Name=collabvpn</code><code>[Network]</code><code>Address=<YourIPv6Address></code><code>Address=<YourIPv4Address></code><code>DNS=2a0f:e586:f:2c00::2</code><code>DNS=10.2.6.2</code>
# Fill in your addresses. IMPORTANT: Do not fill in your /64 as your address, fill in your /128. Your /64 is routed over that address and will be unusable if configured improperly.
# Setup a NAT for IPv4, setup a router advertisements for IPv6 and you're good to go.
14

edits