Rename a variable
This commit is contained in:
parent
9d453f441c
commit
9393e7a79c
@ -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
|
||||||
|
@ -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:
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user