Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-01-10 04:46:43 +03:00
parent 32d5ce9d96
commit 4b2c3819ce
2 changed files with 6 additions and 2 deletions

View File

@ -41,9 +41,13 @@ xread "Wireguard endpoint: " ENDPOINT
DFL_ENDPOINT_PORT=${DFL_ENDPOINT_PORT:=51820} DFL_ENDPOINT_PORT=${DFL_ENDPOINT_PORT:=51820}
xread "Wireguard endpoint port: " ENDPOINT_PORT xread "Wireguard endpoint port: " ENDPOINT_PORT
readVars readVars
DNS=${NS_LAN_IP/\/*}
#---------------------------------------------------------------------- #----------------------------------------------------------------------

View File

@ -12,10 +12,10 @@ CLIENT_TPL := templates/client.conf
CLIENT_DIR := $(SERVER_DIR)/clients/ CLIENT_DIR := $(SERVER_DIR)/clients/
CLIENT_IPS ?= 10.42.0.0/16 CLIENT_IPS ?= 10.42.0.0/16
ENDPOINT_PORT ?= 51820 ENDPOINT_PORT ?= ${ENDPOINT_PORT}
ENDPOINT ?= ${ENDPOINT} ENDPOINT ?= ${ENDPOINT}
DNS ?= ${NS_LAN_IPn} DNS ?= ${DNS}
ALLOWED_IPS ?= 0.0.0.0/0 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