Skip to content

Commit

Permalink
Update wireguard-install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
nickvourd authored Dec 5, 2024
1 parent e773abc commit 7aab6ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wireguard-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -362,16 +362,16 @@ DNS = ${CLIENT_DNS_1},${CLIENT_DNS_2}
PublicKey = ${SERVER_PUB_KEY}
PresharedKey = ${CLIENT_PRE_SHARED_KEY}
Endpoint = ${ENDPOINT}
AllowedIPs = ${ALLOWED_IPS}" >"${HOME_DIR}/${SERVER_WG_NIC}-client-${CLIENT_NAME}.conf
PersistentKeepalive = 10"
AllowedIPs = ${ALLOWED_IPS}
PersistentKeepalive = 10" > "${HOME_DIR}/${SERVER_WG_NIC}-client-${CLIENT_NAME}.conf"
# Add the client as a peer to the server
echo -e "\n### Client ${CLIENT_NAME}
[Peer]
PublicKey = ${CLIENT_PUB_KEY}
PresharedKey = ${CLIENT_PRE_SHARED_KEY}
AllowedIPs = ${CLIENT_WG_IPV4}/32,${CLIENT_WG_IPV6}/128" >>"/etc/wireguard/${SERVER_WG_NIC}.conf
PersistentKeepalive = 10"
AllowedIPs = ${CLIENT_WG_IPV4}/32,${CLIENT_WG_IPV6}/128
PersistentKeepalive = 10" >> "/etc/wireguard/${SERVER_WG_NIC}.conf"
wg syncconf "${SERVER_WG_NIC}" <(wg-quick strip "${SERVER_WG_NIC}")
Expand Down

0 comments on commit 7aab6ff

Please sign in to comment.