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