🔧 add wireguard device

This commit is contained in:
Ingolf Wagner 2024-09-22 12:06:16 +09:00
parent 361497a6e6
commit 1a9c1f4913
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 7 additions and 2 deletions

View file

@ -65,6 +65,11 @@ in
publicKey = "8f8fYGymH3Tq8d14B2+ijMiHwocEbUIXSZji3U29IhA=";
allowedIPs = [ "10.100.0.103/32" ];
}
{
# ipad tina
publicKey = "kuzUJn+lROh7ttA0qMc2p1abpfxjDGeYA+Ryzm88+AE=";
allowedIPs = [ "10.100.0.104/32" ];
}
];
};
};

View file

@ -2,8 +2,8 @@
#
# Create a new wireguard client
client_name="iphone tina"
client_ip=10.100.0.103
client_name="ipad tina"
client_ip=10.100.0.104
private_key=$(wg genkey)
public_key=$(echo "$private_key" | wg pubkey)