MEschenbacher's Wireguard Saltstack Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
837B

  1. wireguard:
  2. interfaces:
  3. wgtest:
  4. listen_port: 51820
  5. # fwmark: 0x1
  6. private_key: secret
  7. # preshared_key: secret
  8. peers:
  9. - peer: 1ymBfBty05PNhD/QJKUlu4aL2p4jKSWVVqVQWIQG6wM=
  10. endpoint: '10.42.0.0:1338'
  11. allowed_ips:
  12. - 10.0.0.2/32
  13. - 'fdff::2/128'
  14. persistent_keepalive: 25
  15. - peer: 2ymBfBty05PNhD/QJKUlu4aL2p4jKSWVVqVQWIQG6wM=
  16. endpoint: '[2001:db8::1]:1339'
  17. allowed_ips:
  18. - 10.0.0.3/32
  19. - 'fdff::3/128'
  20. # optionally, a list of interfaces can be specified for which forwarding will
  21. # be set to 1 via sysctl.present
  22. # ATTENTION: this option is experimental and I haven't made my mind up whether
  23. # it'll stay. Please don't rely on this for now.
  24. set_forward_interfaces:
  25. - all
  26. - wgtest