|
@@ -118,26 +118,12 @@ Endpoint = $serverip:9009
|
|
|
|
|
|
AllowedIPs = 0.0.0.0/0, ::0/0
|
|
|
|
|
|
-
|
|
|
-PersistentKeepalive = 25" > client.conf
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+PersistentKeepalive = 25"|sed '/^#/d;/^\s*$/d' > client.conf
|
|
|
|
|
|
-
|
|
|
-echo "
|
|
|
-[Interface]
|
|
|
-PrivateKey = $(cat cprivatekey)
|
|
|
-Address = 10.0.0.2/24
|
|
|
-DNS = 8.8.8.8
|
|
|
-MTU = 1300
|
|
|
-PreUp = start .\route\routes-up.bat
|
|
|
-PostDown = start .\route\routes-down.bat
|
|
|
-
|
|
|
-[Peer]
|
|
|
-PublicKey = $(cat spublickey)
|
|
|
-Endpoint = $serverip:9009
|
|
|
-AllowedIPs = 0.0.0.0/0, ::0/0
|
|
|
-PersistentKeepalive = 25
|
|
|
|
|
|
-" > client.conf
|
|
|
|
|
|
|
|
|
chmod 777 -R /etc/wireguard
|