MEschenbacher's Wireguard Saltstack Formula
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

31 lines
958B

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