update wireguard client script

This commit is contained in:
Ingolf Wagner 2024-06-06 10:31:44 +02:00
commit d845e2e729
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
3 changed files with 16 additions and 19 deletions

View file

@ -2,8 +2,8 @@
#
# Create a new wireguard client
client_name="ipad tina"
client_ip=10.100.0.9
client_name="iphone tina"
client_ip=10.100.0.103
private_key=$(wg genkey)
public_key=$(echo "$private_key" | wg pubkey)
@ -15,7 +15,7 @@ ListenPort = 51820
PrivateKey = ${private_key}
[Peer]
PublicKey = uWR93xJe5oEbX3DsAYpOS9CuSg1VmXEQxJzdlJpe3DU=
PublicKey = txECSpa5HeIWgRtcZNxBUzkdN72rsA2w6Is6gIp0Tlc=
Endpoint = ingolf-wagner.de:51820
AllowedIPs = 10.100.0.1/24
EOF