reordered and renamed for wikidocs

This commit is contained in:
2024-08-10 00:18:30 -05:00
parent 8b47549ff7
commit 1466447ccc
19 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
## Run as root
#### Install prereqs
```bash
apt install -y wireguard-tools resolvconf
```
#### Generate keys
```bash
cd /etc/wireguard
wg genkey | tee privatekey | wg pubkey > publickey
```
#### Create server config
```bash
echo "[Interface]" > /etc/wireguard/wg0.conf
echo "PrivateKey = " >> /etc/wireguard/wg0.conf
echo "Address = 10.8.0.1/24" >> /etc/wireguard/wg0.conf
echo "ListenPort = 51820" >> /etc/wireguard/wg0.conf
echo "DNS = 1.1.1.1" >> /etc/wireguard/wg0.conf
```