mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-29 11:10:09 +00:00
...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
15bad014b4
commit
96c6b07fe7
@ -41,6 +41,8 @@ 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
|
||||||
|
|
||||||
|
CLIENT_IPS=10.42.1.0/16
|
||||||
|
|
||||||
|
|
||||||
readVars
|
readVars
|
||||||
|
|
||||||
@ -73,7 +75,7 @@ OPTS_STAGE_2="\
|
|||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
echo "# Building config..."
|
echo "# Building config..."
|
||||||
buildAssets ENDPOINT ENDPOINT_PORT DNS
|
buildAssets ENDPOINT ENDPOINT_PORT DNS CLIENT_IPS
|
||||||
|
|
||||||
echo "# Creating CT..."
|
echo "# Creating CT..."
|
||||||
pctCreateAlpine $ID "${OPTS_STAGE_1}" "$PASS"
|
pctCreateAlpine $ID "${OPTS_STAGE_1}" "$PASS"
|
||||||
@ -83,6 +85,7 @@ echo "# Installing dependencies..."
|
|||||||
|
|
||||||
echo "# Copying assets..."
|
echo "# Copying assets..."
|
||||||
@ pct-push-r $ID ./assets /
|
@ pct-push-r $ID ./assets /
|
||||||
|
@ lxc-attach $ID -- chmod +x /root/getFreeClientIP
|
||||||
|
|
||||||
#echo "# Setup: wireguard server..."
|
#echo "# Setup: wireguard server..."
|
||||||
@ lxc-attach $ID -- bash -c 'cd /root && make server'
|
@ lxc-attach $ID -- bash -c 'cd /root && make server'
|
||||||
|
|||||||
@ -11,7 +11,7 @@ SERVER_PUBLIC_KEY := $(SERVER_DIR)/server_id.pub
|
|||||||
CLIENT_TPL := templates/client.conf
|
CLIENT_TPL := templates/client.conf
|
||||||
CLIENT_DIR := $(SERVER_DIR)/clients/
|
CLIENT_DIR := $(SERVER_DIR)/clients/
|
||||||
|
|
||||||
CLIENT_IPS ?= 10.42.0.0/16
|
CLIENT_IPS ?= ${CLIENT_IPS}
|
||||||
ENDPOINT_PORT ?= ${ENDPOINT_PORT}
|
ENDPOINT_PORT ?= ${ENDPOINT_PORT}
|
||||||
ENDPOINT ?= ${ENDPOINT}
|
ENDPOINT ?= ${ENDPOINT}
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
CLIENT_IPS=${CLIENT_IPS}
|
CLIENT_IPS=${CLIENT_IPS}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user