tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-01-10 01:15:28 +03:00
parent 46187995e5
commit 3ce461ab05
2 changed files with 3 additions and 6 deletions

View File

@ -13,12 +13,12 @@ CLIENT_DIR := $(SERVER_DIR)/clients/
CLIENT_IPS ?= 10.42.0.0/16 CLIENT_IPS ?= 10.42.0.0/16
ENDPOINT_PORT ?= 51820 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... # XXX need to generate this...
CLIENT_IP ?= 10.42.0.1/32 CLIENT_IP ?= 10.42.0.1/32
DNS ?= 10.1.1.1
ALLOWED_IPS ?= 0.0.0.0/0
%_id: %_id:

View File

@ -93,9 +93,6 @@ echo "# Setup: wireguard default profile..."
echo "# client config:" echo "# client config:"
@ mkdir -p clients @ mkdir -p clients
@ pct pull $ID /etc/wireguard/clients/default.conf clients/default.conf @ 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..." #echo "# Setup: bridge device..."
@ lxc-attach $ID wg-quick up wg0 @ lxc-attach $ID wg-quick up wg0