wireguard.conf.tmpl 405 B

12345678910111213141516
  1. #
  2. # Wireguard tunnel to {{ config['peer_fqdn'] }} (Salt managed)
  3. #
  4. [Interface]
  5. PrivateKey = {{ config['local_privkey'] }}
  6. {%- if config['mode'] == 'server' %}
  7. ListenPort = {{ config['port'] }}
  8. {%- endif %}
  9. FwMark = 0x1023
  10. [Peer]
  11. {%- if config['mode'] == 'client' %}
  12. Endpoint = {{ config['peer_ip'] }}:{{ config['port'] }}
  13. {%- endif %}
  14. PublicKey = {{ config['peer_pubkey'] }}
  15. AllowedIPs = 0.0.0.0/0, ::/0