Rename a variable

This commit is contained in:
Wojciech Kozlowski 2022-10-02 15:03:39 +02:00
parent 9d453f441c
commit 9393e7a79c
4 changed files with 5 additions and 5 deletions

View File

@ -16,6 +16,7 @@ postfix_smtp_user:
# VPN network variables # VPN network variables
vpn_wg0_port: vpn_wg0_port:
vpn_wg0_netmask: vpn_wg0_netmask:
vpn_wg0_subnet:
vpn_wg0_preshared_key: vpn_wg0_preshared_key:
# Service variables # Service variables

View File

@ -22,8 +22,7 @@ vpn_wg0_interface_private_key:
vpn_wg0_peer_public_key: vpn_wg0_peer_public_key:
vpn_wg0_endpoint_address: vpn_wg0_endpoint_address:
vpn_wg0_subnet: vpn_remote_br0_subnet:
vpn_remote_subnet:
vpn_reverse_proxy_address: vpn_reverse_proxy_address:

View File

@ -6,9 +6,9 @@ iface wg0 inet static
post-up /usr/local/sbin/post-up-$IFACE-inet.nft post-up /usr/local/sbin/post-up-$IFACE-inet.nft
post-up /usr/local/sbin/post-up-$IFACE-ipv4.nft post-up /usr/local/sbin/post-up-$IFACE-ipv4.nft
post-up ip route add {{ vpn_remote_subnet }} dev $IFACE post-up ip route add {{ vpn_remote_br0_subnet }} dev $IFACE
pre-down ip route del {{ vpn_remote_subnet }} dev $IFACE pre-down ip route del {{ vpn_remote_br0_subnet }} dev $IFACE
pre-down /usr/local/sbin/pre-down-$IFACE-ipv4.nft pre-down /usr/local/sbin/pre-down-$IFACE-ipv4.nft
pre-down /usr/local/sbin/pre-down-$IFACE-inet.nft pre-down /usr/local/sbin/pre-down-$IFACE-inet.nft

View File

@ -5,4 +5,4 @@ ListenPort = {{ vpn_wg0_port }}
[Peer] [Peer]
PublicKey = {{ vpn_wg0_peer_public_key }} PublicKey = {{ vpn_wg0_peer_public_key }}
PresharedKey = {{ vpn_wg0_preshared_key }} PresharedKey = {{ vpn_wg0_preshared_key }}
AllowedIPs = {{ vpn_wg0_subnet }},{{ vpn_remote_subnet }} AllowedIPs = {{ vpn_wg0_subnet }},{{ vpn_remote_br0_subnet }}