optimize vpn client conf
This commit is contained in:
parent
5bac50269f
commit
521bfd2840
@ -1,11 +1,11 @@
|
|||||||
[Interface]
|
[Interface]
|
||||||
Address = {{ vpn_gateway_net_prefix }}.{{ vpn_client.index }}/32
|
Address = {{ vpn_gateway_net_prefix }}.{{ vpn_client.index }}/{{ vpn_gateway_net_cidr }}
|
||||||
PrivateKey = {{ vpn_client.private_key }}
|
PrivateKey = {{ vpn_client.private_key }}
|
||||||
DNS = {{ vpn_internal_dns }}
|
DNS = {{ vpn_internal_dns }}
|
||||||
|
|
||||||
[Peer]
|
[Peer]
|
||||||
PublicKey = {{ vpn_gateway_public_key }}
|
PublicKey = {{ vpn_gateway_public_key }}
|
||||||
Endpoint = {{ vpn_gateway_host }}:{{ vpn_gateway_port }}
|
Endpoint = {{ vpn_gateway_host }}:{{ vpn_gateway_port }}
|
||||||
AllowedIPs = {{ vpn_gateway_net_prefix }}.1/{% if vpn_allow_adjacent_client_traffic %}{{ vpn_gateway_net_cidr }}{% else %}32{% endif %}
|
AllowedIPs = {{ vpn_gateway_net_prefix }}{% if vpn_allow_adjacent_client_traffic %}.0/{{ vpn_gateway_net_cidr }}{% else %}.1/32{% endif %}
|
||||||
|
|
||||||
PersistentKeepalive = {{ vpn_keepalive }}
|
PersistentKeepalive = {{ vpn_keepalive }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user