mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-29 11:10:09 +00:00
wireguard working...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a1d805a751
commit
438fc83115
@ -26,6 +26,7 @@ ALLOWED_IPS ?= ${ALLOWED_IPS}
|
|||||||
wg genkey 2> /dev/null > $@
|
wg genkey 2> /dev/null > $@
|
||||||
chmod 600 $@
|
chmod 600 $@
|
||||||
|
|
||||||
|
|
||||||
%_id.pub: %_id
|
%_id.pub: %_id
|
||||||
cat $< | wg pubkey > $@
|
cat $< | wg pubkey > $@
|
||||||
|
|
||||||
@ -42,6 +43,7 @@ $(SERVER_CONF): $(SERVER_TPL) $(SERVER_KEY)
|
|||||||
chmod 600 $@
|
chmod 600 $@
|
||||||
wg-quick up wg0
|
wg-quick up wg0
|
||||||
|
|
||||||
|
|
||||||
# XXX need to figure out a way to link this to the .config file without
|
# XXX need to figure out a way to link this to the .config file without
|
||||||
# conflicting with the server's wg0.conf
|
# conflicting with the server's wg0.conf
|
||||||
%.client: $(CLIENT_TPL) $(SERVER_CLIENT_TPL) \
|
%.client: $(CLIENT_TPL) $(SERVER_CLIENT_TPL) \
|
||||||
@ -70,9 +72,8 @@ $(SERVER_CONF): $(SERVER_TPL) $(SERVER_KEY)
|
|||||||
@ [ "$(QRCODE)" == "1" ] \
|
@ [ "$(QRCODE)" == "1" ] \
|
||||||
&& ( echo "# Profile: $*" \
|
&& ( echo "# Profile: $*" \
|
||||||
&& qrencode -t UTF8 -r "$(CLIENT_DIR)/$*.conf" )
|
&& qrencode -t UTF8 -r "$(CLIENT_DIR)/$*.conf" )
|
||||||
@ echo '---'
|
@ cat "$(CLIENT_DIR)/$*.conf"
|
||||||
@ echo "$(CLIENT_DIR)/$*.conf"
|
@ echo
|
||||||
@ echo '---'
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -81,11 +82,11 @@ $(SERVER_CONF): $(SERVER_TPL) $(SERVER_KEY)
|
|||||||
&& qrencode -t UTF8 -r "$*.conf" )
|
&& qrencode -t UTF8 -r "$*.conf" )
|
||||||
|
|
||||||
|
|
||||||
server: $(SERVER_CONF)
|
|
||||||
|
|
||||||
|
|
||||||
update:
|
update:
|
||||||
wg syncconf $(INTERFACE) <(wg-quick strip $(INTERFACE))
|
wg syncconf $(INTERFACE) <(wg-quick strip $(INTERFACE))
|
||||||
|
|
||||||
|
|
||||||
|
server: $(SERVER_CONF)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user