2021-04-11 22:34:52 +00:00
|
|
|
- hosts: all
|
|
|
|
become: yes
|
|
|
|
vars:
|
|
|
|
fastd_profiles:
|
|
|
|
vpn:
|
2021-06-05 16:57:05 +00:00
|
|
|
# set log level to info
|
|
|
|
log_level: info
|
|
|
|
|
2021-04-11 22:34:52 +00:00
|
|
|
# start tunnel and start it on boot
|
|
|
|
start: yes
|
|
|
|
|
2021-06-05 16:57:05 +00:00
|
|
|
# address and port to listen on
|
|
|
|
bind: "any:10061"
|
2021-04-11 22:34:52 +00:00
|
|
|
|
|
|
|
# the private key
|
|
|
|
private_key: 605fbc328e258182b0b2859ca06b586dead2bd88d6566c89da11acfa9a537942
|
|
|
|
|
|
|
|
# the public key of the serv
|
|
|
|
public_key: b91be575b02ac02e5b9f387bf0d1b3bc8b3a2a6605c4b64dbfd3482621b3e17b
|
|
|
|
|
|
|
|
# optional: interface name (default: fastd-<profile name>)
|
|
|
|
interface: fastd-vpn
|
|
|
|
|
|
|
|
# acceptable encryption methods
|
|
|
|
methods:
|
|
|
|
- "salsa2012+gmac"
|
|
|
|
- "null"
|
|
|
|
|
|
|
|
# peer configuration
|
|
|
|
peers:
|
|
|
|
gluon20171c61:
|
|
|
|
# public key of the remote
|
|
|
|
public_key: 7e383ce9ba4fea8a82c1860864c2f940ef9f8a92b04f62fb7ac5f57442872f0e
|
|
|
|
# connection description with fastd syntax
|
|
|
|
remotes:
|
|
|
|
- 'ipv4 "gluon20171c61.leipzig.freifunk.net" port 10061'
|
|
|
|
gluon20171b61:
|
|
|
|
public_key: 6a5e3d0d88feb0350078b5ce7c7a15baf918e0c2455d6854ec933c96c7a01a43
|
|
|
|
remotes:
|
|
|
|
- 'ipv4 "gluon20171b61.leipzig.freifunk.net" port 10061'
|
|
|
|
|
2021-10-16 13:49:02 +00:00
|
|
|
# append additional configuration like skip the verification
|
|
|
|
additional_config: |
|
|
|
|
on verify sync "true";
|
|
|
|
|
2021-04-11 22:34:52 +00:00
|
|
|
tasks:
|
|
|
|
- import_role:
|
|
|
|
name: fastd
|
|
|
|
|