From df24b7c862417378b32d80d4a6517565cf8e790e Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Mon, 22 Aug 2022 04:34:34 +0300 Subject: [PATCH] remove generated configs --- .gitignore | 1 + config_generator/configs/wg-external.conf | 12 ------------ config_generator/configs/wg-internal.conf | 18 ------------------ config_generator/configs/wg-mobile-client.conf | 11 ----------- 4 files changed, 1 insertion(+), 41 deletions(-) create mode 100644 .gitignore delete mode 100644 config_generator/configs/wg-external.conf delete mode 100644 config_generator/configs/wg-internal.conf delete mode 100644 config_generator/configs/wg-mobile-client.conf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..114b811 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +config_generator/configs/* diff --git a/config_generator/configs/wg-external.conf b/config_generator/configs/wg-external.conf deleted file mode 100644 index 3627088..0000000 --- a/config_generator/configs/wg-external.conf +++ /dev/null @@ -1,12 +0,0 @@ -[Interface] -Address = 10.20.30.2/32 -PrivateKey = wFOIRBeFqxu9cU/tAvKAHCOnTDsxQCe2hR02mjF/kHo= -PostUp = iptables -t nat -A POSTROUTING -o `ip link show | awk -F ': ' '/state UP/ {print $2}'` -j MASQUERADE -PostDown = iptables -t nat -D POSTROUTING -o `ip link show | awk -F ': ' '/state UP/ {print $2}'` -j MASQUERADE - -#internal node -[Peer] -PublicKey = UG0rzuBEciN9XGWZnvyU+I8XEosm6Q8XKLumnk+k61o= -AllowedIPs = 10.20.30.0/24 -Endpoint = 195.2.79.13:17968 -PersistentKeepalive = 25 diff --git a/config_generator/configs/wg-internal.conf b/config_generator/configs/wg-internal.conf deleted file mode 100644 index e21c22e..0000000 --- a/config_generator/configs/wg-internal.conf +++ /dev/null @@ -1,18 +0,0 @@ -[Interface] -Address = 10.20.30.1/32 -ListenPort = 17968 -PrivateKey = iPnvzKtdDawMWNHEPDIzKq2Za2pG4EkGq1nlZmyDLlE= -PostUp = iptables -t nat -A POSTROUTING -o `ip link show | awk -F ': ' '/state UP/ {print $2}'` -j MASQUERADE -PostUp = ip rule add from `ip route | awk '/default/ {print $3; exit}'` table main -PostDown = iptables -t nat -D POSTROUTING -o `ip link show | awk -F ': ' '/state UP/ {print $2}'` -j MASQUERADE -PostDown = ip rule del from `ip route | awk '/default/ {print $3; exit}'` table main - -#external node -[Peer] -PublicKey = Kph5VVV/mCx5DPVwD2vwk8RS2Lv6J8U2reVszJKyFEU= -AllowedIPs = 10.20.30.2/32, 0.0.0.0/0 - -#mobile-client node -[Peer] -PublicKey = B+VlF5NaHyFCeA/AX7dXQbjo9pe7VVFgvLbbO+vZvnE= -AllowedIPs = 10.20.30.3/32 diff --git a/config_generator/configs/wg-mobile-client.conf b/config_generator/configs/wg-mobile-client.conf deleted file mode 100644 index 863d4ea..0000000 --- a/config_generator/configs/wg-mobile-client.conf +++ /dev/null @@ -1,11 +0,0 @@ -[Interface] -Address = 10.20.30.3/32 -PrivateKey = OLiqlb0Q4Ryx0QihepS0fYhgWCckZCjEE8ePu6/akkk= -DNS = 1.1.1.1, 8.8.8.8 - -#internal node -[Peer] -PublicKey = UG0rzuBEciN9XGWZnvyU+I8XEosm6Q8XKLumnk+k61o= -AllowedIPs = 0.0.0.0/0 -Endpoint = 195.2.79.13:17968 -PersistentKeepalive = 25