From 547ef14a31ab8753ffb2ffa16cd6affc54b0b586 Mon Sep 17 00:00:00 2001 From: coja Date: Sat, 22 Mar 2025 04:11:41 +0100 Subject: [PATCH 1/3] [kralizec] added readme for wireguard --- kralizec/wireguard11/README.md | 58 ++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 kralizec/wireguard11/README.md diff --git a/kralizec/wireguard11/README.md b/kralizec/wireguard11/README.md new file mode 100644 index 0000000..7c6e65e --- /dev/null +++ b/kralizec/wireguard11/README.md @@ -0,0 +1,58 @@ +--- +VMID: 103 +--- + +[Wireguard VPN quickstart](https://www.wireguard.com/quickstart) + +Check dmzadmin for `wireguard.gpg` to know who to contact for access + +--- + +### Server config + +New user/client needs to provide their wireguard `publickey` and new ip on the network needs to be assigned (`x`) +add next lines to the bottom of the conf file - `/etc/wireguard/wg0.conf` + +```conf +[Peer] +PublicKey = +AllowedIPs = 192.168.164.x/32 +``` + +--- + +### Client config + +client conf example +`x` is the assinged on the server as peer + +```conf + +[Interface] +Address = 192.168.164.x/32 +DNS = 1.1.1.1 +MTU = 1420 +SaveConfig = true +ListenPort = 51820 +FwMark = 0xca6c +PrivateKey = + +[Peer] +PublicKey = JP2FTHLUujkevz1kUymciLImsx1OX9ViUko7oPAIoiA= +AllowedIPs = 192.168.164.0/24, 192.168.1.0/24 +Endpoint = 77.105.27.232:51820 +PersistentKeepalive = 21 + +``` + +--- + +Command to resolve ip clashing with current and wireguard network + +```shell +ip route add dev " +``` + +`ip` you want to resove -> for wireguard vm 192.168.1.10 +`wg0` name of the wireguard conf + From dbd7f3dfd43305aec1f50c0b172b9c70d4b3f9be Mon Sep 17 00:00:00 2001 From: coja Date: Sat, 22 Mar 2025 04:21:53 +0100 Subject: [PATCH 2/3] [kralizec] updated readme for wireguard --- kralizec/wireguard11/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kralizec/wireguard11/README.md b/kralizec/wireguard11/README.md index 7c6e65e..52d5c3c 100644 --- a/kralizec/wireguard11/README.md +++ b/kralizec/wireguard11/README.md @@ -50,9 +50,9 @@ PersistentKeepalive = 21 Command to resolve ip clashing with current and wireguard network ```shell -ip route add dev " +ip route add dev ``` -`ip` you want to resove -> for wireguard vm 192.168.1.10 -`wg0` name of the wireguard conf +- `ip` you want to resove -> for wireguard vm 192.168.1.10 +- `wg0` name of the wireguard conf From c81ef26f4ed22a4a6b2d9129749741f94cc84cd4 Mon Sep 17 00:00:00 2001 From: coja Date: Sat, 22 Mar 2025 05:02:51 +0100 Subject: [PATCH 3/3] [scripts] added generate random pass script --- scripts/generatepass.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 scripts/generatepass.sh diff --git a/scripts/generatepass.sh b/scripts/generatepass.sh new file mode 100755 index 0000000..5ff9650 --- /dev/null +++ b/scripts/generatepass.sh @@ -0,0 +1,5 @@ + +#!/bin/bash + +echo $(shuf shared/english.txt | head) | sed "s/ //g" +