From 871651aca3444f71a3c2693beea2d8c8a4d76097 Mon Sep 17 00:00:00 2001 From: Emile Nijssen Date: Sun, 23 May 2021 13:36:44 +0200 Subject: [PATCH] wip --- config_/client1/presharedkey | 1 - config_/client1/privatekey | 1 - config_/client1/publickey | 1 - config_/privatekey | 1 - config_/publickey | 1 - config_/wg0 copy.conf | 11 ---------- config_/wg0.conf | 27 ------------------------ config_/wg0.json | 41 ------------------------------------ run-old.sh | 19 ----------------- run.sh | 9 -------- 10 files changed, 112 deletions(-) delete mode 100644 config_/client1/presharedkey delete mode 100644 config_/client1/privatekey delete mode 100644 config_/client1/publickey delete mode 100644 config_/privatekey delete mode 100644 config_/publickey delete mode 100644 config_/wg0 copy.conf delete mode 100644 config_/wg0.conf delete mode 100644 config_/wg0.json delete mode 100644 run-old.sh delete mode 100755 run.sh diff --git a/config_/client1/presharedkey b/config_/client1/presharedkey deleted file mode 100644 index 6823a0c..0000000 --- a/config_/client1/presharedkey +++ /dev/null @@ -1 +0,0 @@ -/FdYIW1UYh+URg7zMU6x+Lsw2E1nMrtyMA8HavZ9h5g= diff --git a/config_/client1/privatekey b/config_/client1/privatekey deleted file mode 100644 index e5580e7..0000000 --- a/config_/client1/privatekey +++ /dev/null @@ -1 +0,0 @@ -sHUUDbaZBQshfOvvF8HeebhhXq3rDKWlW1Vm+6XMklU= diff --git a/config_/client1/publickey b/config_/client1/publickey deleted file mode 100644 index e365ff0..0000000 --- a/config_/client1/publickey +++ /dev/null @@ -1 +0,0 @@ -i8xWKqicnDkNL14I4B+I1zlB8od/booA1joIosWn7X4= diff --git a/config_/privatekey b/config_/privatekey deleted file mode 100644 index 87314e2..0000000 --- a/config_/privatekey +++ /dev/null @@ -1 +0,0 @@ -iOQJS7OUUGPYATsX6nqlL+sOODoiWiN5IOE8Msfw/0o= diff --git a/config_/publickey b/config_/publickey deleted file mode 100644 index 227fbab..0000000 --- a/config_/publickey +++ /dev/null @@ -1 +0,0 @@ -BkdntwYazhYZzEEHhcYayq6TGw9/YUDQ251s+5bTgC0= diff --git a/config_/wg0 copy.conf b/config_/wg0 copy.conf deleted file mode 100644 index 559e488..0000000 --- a/config_/wg0 copy.conf +++ /dev/null @@ -1,11 +0,0 @@ -[Interface] -PrivateKey = iOQJS7OUUGPYATsX6nqlL+sOODoiWiN5IOE8Msfw/0o= # wg genkey > privatekey -# PublicKey = BkdntwYazhYZzEEHhcYayq6TGw9/YUDQ251s+5bTgC0= -Address = 10.8.0.1/24 -ListenPort = 51820 -DNS = 1.1.1.1 - -[Peer] -PublicKey = i8xWKqicnDkNL14I4B+I1zlB8od/booA1joIosWn7X4= -PresharedKey = MzplKtOQ44/IaAKri2VKqCoIlg4XiVH7TCp5bcYRTQU= -AllowedIPs = 10.8.0.2/32 \ No newline at end of file diff --git a/config_/wg0.conf b/config_/wg0.conf deleted file mode 100644 index cbeae7a..0000000 --- a/config_/wg0.conf +++ /dev/null @@ -1,27 +0,0 @@ - -# Note: Do not edit this file directly. -# Your changes will be overwritten! - -# Server -[Interface] -PrivateKey = iOQJS7OUUGPYATsX6nqlL+sOODoiWiN5IOE8Msfw/0o= -Address = 10.8.0.1/24 -ListenPort = 51820 - -# Client: Emile (af3111a4-7343-4380-a293-ed498d9aa3b8) -[Peer] -PublicKey = i8xWKqicnDkNL14I4B+I1zlB8od/booA1joIosWn7X4= -PresharedKey = MzplKtOQ44/IaAKri2VKqCoIlg4XiVH7TCp5bcYRTQU= -AllowedIPs = 10.8.0.2/32 - -# Client: Test (2ca33a1c-ed49-4bdd-b84c-adc77f1f3b2d) -[Peer] -PublicKey = 563oiA0IuQqt8JPEXHGINT4mHYKzlLx9Ol2gcV1vKCk= -PresharedKey = Q6xGB4og5Sj6M0MsHzkD16VsniT3FCqOnGmiLLilsU8= -AllowedIPs = 10.8.0.3/32 - -# Client: Test 3 (f1d0280c-07e7-4927-94dd-000a1723872f) -[Peer] -PublicKey = -PresharedKey = -AllowedIPs = 10.8.0.4/32 \ No newline at end of file diff --git a/config_/wg0.json b/config_/wg0.json deleted file mode 100644 index 796a329..0000000 --- a/config_/wg0.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "server": { - "privateKey": "iOQJS7OUUGPYATsX6nqlL+sOODoiWiN5IOE8Msfw/0o=", - "publicKey": "BkdntwYazhYZzEEHhcYayq6TGw9/YUDQ251s+5bTgC0=", - "address": "10.8.0.1", - "port": "51820", - "dns": "1.1.1.1" - }, - "clients": { - "af3111a4-7343-4380-a293-ed498d9aa3b8": { - "name": "Emile", - "createdAt": "2021-05-22T20:02:45.372Z", - "updatedAt": "2021-05-22T20:02:45.372Z", - "privateKey": "sHUUDbaZBQshfOvvF8HeebhhXq3rDKWlW1Vm+6XMklU=", - "publicKey": "i8xWKqicnDkNL14I4B+I1zlB8od/booA1joIosWn7X4=", - "preSharedKey": "MzplKtOQ44/IaAKri2VKqCoIlg4XiVH7TCp5bcYRTQU=", - "address": "10.8.0.2", - "enabled": true - }, - "2ca33a1c-ed49-4bdd-b84c-adc77f1f3b2d": { - "name": "Test", - "address": "10.8.0.3", - "privateKey": "AJVOxJxEnbWyrj7SbhJxxiIIgBsRljs1fP2xrN76Kns=", - "publicKey": "563oiA0IuQqt8JPEXHGINT4mHYKzlLx9Ol2gcV1vKCk=", - "preSharedKey": "Q6xGB4og5Sj6M0MsHzkD16VsniT3FCqOnGmiLLilsU8=", - "createdAt": "2021-05-22T21:41:49.876Z", - "updatedAt": "2021-05-23T10:04:29.051Z", - "enabled": true - }, - "f1d0280c-07e7-4927-94dd-000a1723872f": { - "name": "Test 3", - "address": "10.8.0.4", - "privateKey": "", - "publicKey": "", - "preSharedKey": "", - "createdAt": "2021-05-23T10:21:24.607Z", - "updatedAt": "2021-05-23T10:21:24.607Z", - "enabled": true - } - } -} \ No newline at end of file diff --git a/run-old.sh b/run-old.sh deleted file mode 100644 index 676f1e2..0000000 --- a/run-old.sh +++ /dev/null @@ -1,19 +0,0 @@ -docker run -d \ - --name=wireguard \ - - - - - - - - --cap-add=NET_ADMIN \ - --cap-add=SYS_MODULE \ - -e PUID=1000 \ - -e PGID=1000 \ - -e TZ=Europe/London \ - -p 51820:51820/udp \ - -v config:/config \ - -v modules:/lib/modules \ - --sysctl="net.ipv4.conf.all.src_valid_mark=1" \ - ghcr.io/linuxserver/wireguard \ No newline at end of file diff --git a/run.sh b/run.sh deleted file mode 100755 index 443b07e..0000000 --- a/run.sh +++ /dev/null @@ -1,9 +0,0 @@ -docker run \ - --name wg-easy \ - --cap-add=NET_ADMIN \ - --cap-add=SYS_MODULE \ - --sysctl="net.ipv4.conf.all.src_valid_mark=1" \ - --mount type=bind,source="$(pwd)"/config,target=/etc/wireguard \ - -p 51820:51820/udp \ - -p 51821:51821/tcp \ - wg-easy \ No newline at end of file