Falsche Peer-PublicKeys in m16/m13 WireGuard-Configs korrigiert
- m16.conf/m13.conf: Peer-PublicKey war der eigene statt der des Servers, dadurch wurde kein Peer geladen und DNS/VPN funktionierte nicht - setup-base.sh: AllowedIPs Komma→Semikolon fuer NM-Format Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
13177aba11
commit
f35bed5598
3 changed files with 3 additions and 3 deletions
|
|
@ -183,7 +183,7 @@ if [[ -n "$REPO_DIR" && -f "$WG_CONF" ]]; then
|
||||||
WG_ADDR=$(grep -oP 'Address\s*=\s*\K.*' "$WG_CONF")
|
WG_ADDR=$(grep -oP 'Address\s*=\s*\K.*' "$WG_CONF")
|
||||||
WG_PUBKEY=$(grep -oP 'PublicKey\s*=\s*\K.*' "$WG_CONF")
|
WG_PUBKEY=$(grep -oP 'PublicKey\s*=\s*\K.*' "$WG_CONF")
|
||||||
WG_PSK=$(grep -oP 'PresharedKey\s*=\s*\K.*' "$WG_CONF")
|
WG_PSK=$(grep -oP 'PresharedKey\s*=\s*\K.*' "$WG_CONF")
|
||||||
WG_ALLOWED=$(grep -oP 'AllowedIPs\s*=\s*\K.*' "$WG_CONF" | tr -d ' ')
|
WG_ALLOWED=$(grep -oP 'AllowedIPs\s*=\s*\K.*' "$WG_CONF" | tr -d ' ' | tr ',' ';')
|
||||||
WG_ENDPOINT=$(grep -oP 'Endpoint\s*=\s*\K.*' "$WG_CONF")
|
WG_ENDPOINT=$(grep -oP 'Endpoint\s*=\s*\K.*' "$WG_CONF")
|
||||||
WG_KEEPALIVE=$(grep -oP 'PersistentKeepalive\s*=\s*\K.*' "$WG_CONF")
|
WG_KEEPALIVE=$(grep -oP 'PersistentKeepalive\s*=\s*\K.*' "$WG_CONF")
|
||||||
# NM-Verbindungsdatei direkt schreiben (laeuft als root, Keys persistent)
|
# NM-Verbindungsdatei direkt schreiben (laeuft als root, Keys persistent)
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ ListenPort = 51820
|
||||||
Address = 10.13.13.8/24
|
Address = 10.13.13.8/24
|
||||||
|
|
||||||
[Peer]
|
[Peer]
|
||||||
PublicKey = 7WrqHPof31gcCYMjLWPoP1EIxPR2896/3KL1pQ3YZGs=
|
PublicKey = mp0YKEjsUbnld3aTAnF6cSzTfixhZETQCoKiFHIcF30=
|
||||||
PresharedKey = JNq27UrO94P1eSBWfID4TsgQXNKa/PhAKquIHtsq89w=
|
PresharedKey = JNq27UrO94P1eSBWfID4TsgQXNKa/PhAKquIHtsq89w=
|
||||||
AllowedIPs = 10.47.11.0/24,10.13.13.0/24
|
AllowedIPs = 10.47.11.0/24,10.13.13.0/24
|
||||||
Endpoint = 24.134.39.137:443
|
Endpoint = 24.134.39.137:443
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ ListenPort = 51820
|
||||||
Address = 10.13.13.7/24
|
Address = 10.13.13.7/24
|
||||||
|
|
||||||
[Peer]
|
[Peer]
|
||||||
PublicKey = J/dD1t3Bo9Zbcvxg6PvGP78kgMlL4s4yYfrUMpcoS2w=
|
PublicKey = mp0YKEjsUbnld3aTAnF6cSzTfixhZETQCoKiFHIcF30=
|
||||||
PresharedKey = vReUFqlQoOG1eUMTje+F2OOtgisgp/vNsDyx6lq3KXE=
|
PresharedKey = vReUFqlQoOG1eUMTje+F2OOtgisgp/vNsDyx6lq3KXE=
|
||||||
AllowedIPs = 10.47.11.0/24,10.13.13.0/24
|
AllowedIPs = 10.47.11.0/24,10.13.13.0/24
|
||||||
Endpoint = 24.134.39.137:443
|
Endpoint = 24.134.39.137:443
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue