From 3ce461ab05de2546cf605df881ec72666cb2cb10 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 10 Jan 2024 01:15:28 +0300 Subject: [PATCH] tweaks... Signed-off-by: Alex A. Naanou --- wireguard/assets/root/Makefile | 6 +++--- wireguard/make.sh | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/wireguard/assets/root/Makefile b/wireguard/assets/root/Makefile index 23268a9..aadb665 100644 --- a/wireguard/assets/root/Makefile +++ b/wireguard/assets/root/Makefile @@ -13,12 +13,12 @@ CLIENT_DIR := $(SERVER_DIR)/clients/ CLIENT_IPS ?= 10.42.0.0/16 ENDPOINT_PORT ?= 51820 -ENDPOINT ?= 1.2.3.4 +ENDPOINT ?= ${DOMAIN} +DNS ?= ${NS_LAN_IP} +ALLOWED_IPS ?= 0.0.0.0/0 # XXX need to generate this... CLIENT_IP ?= 10.42.0.1/32 -DNS ?= 10.1.1.1 -ALLOWED_IPS ?= 0.0.0.0/0 %_id: diff --git a/wireguard/make.sh b/wireguard/make.sh index 72e4183..f12de0a 100755 --- a/wireguard/make.sh +++ b/wireguard/make.sh @@ -93,9 +93,6 @@ echo "# Setup: wireguard default profile..." echo "# client config:" @ mkdir -p clients @ pct pull $ID /etc/wireguard/clients/default.conf clients/default.conf -echo "# ---" -@ lxc-attach $ID -- cat /etc/wireguard/clients/default.conf -echo "# ---" #echo "# Setup: bridge device..." @ lxc-attach $ID wg-quick up wg0