123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- #
- # This file is managed by ansible. Do not edit by hand!
- #
- bind {{item.bind}};
- include "secret.conf";
- interface "{{item.interface}}";
- log level {{item.loglevel|default('warn')}};
- {% if item.syslog_level is defined %}
- log to syslog level {{item.syslog_level}};
- {% endif %}
- {% if item.stderr_level is defined %}
- log to syslog level {{item.stderr_level}};
- {% endif %}
- mode {{item.mode}};
- method "{{item.method}}";
- peer limit {{item.peer_limit}};
- hide ip addresses {{item.hide_ip_addressess|default('yes')}};
- mtu {{item.mtu}};
- secure handshakes {{item.secure_handshake|default('yes')}};
- status socket "{{item.status_socket}}";
- user "{{fastd_user_name}}";
- drop capabilities {{item.drop_capabilities|default('yes')}};
- forward {{item.forward|default('no')}};
- hide mac addresses {{item.hide_mac_addresses|default('yes')}};
- {% if item.includes is defined %}
- {% for include in item.includes %}
- include {{include}};
- {% endfor %}
- {% endif %}
- {% if item.peer_includes is defined %}
- {% for include in item.peers %}
- {% if include.file is defined %}
- include peer "{{include.file}}" {% if include.name is defined %}[ as "{{include.name}}" ]{% endif %};
- {% endif %}
- {% endfor %}
- {% endif %}
- {% if item.peer_dir is defined %}
- include peers from "{{item.peer_dir}}";
- {% endif %}
- {% if item.mac is defined %}
- mac "{{item.mac.name}}" use "{{item.mac.implementation}}";
- {% endif %}
- {% if item.packet_mark is defined %}
- packet mark {{item.packet_mark}};
- {% endif %}
- {% if item.on_pre_up_script is defined %}
- on pre-up "
- {{item.on_pre_up_script}}
- ";
- {% endif %}
- {% if item.on_up_script is defined %}
- on up "
- {{item.on_up_script}}
- ";
- {% endif %}
- {% if item.on_verify_script is defined %}
- on verify "
- {{item.on_verify_script}}
- ";
- {% endif %}
- {% if item.on_down_script is defined %}
- on down "
- {{item.on_down_script}}
- ";
- {% endif %}
- {% if item.on_post_down_script is defined %}
- on post-down "
- {{item.on_post_down_script}}
- ";
- {% endif %}
- {% if item.on_connect_script is defined %}
- on connect "
- {{item.on_connect_script}}
- ";
- {% endif %}
- {% if item.on_establish_script is defined %}
- on establish "
- {{item.on_establish_script}}
- ";
- {% endif %}
- {% if item.on_disestablish_script is defined %}
- on disestablish "
- {{item.on_disestablish_script}}
- ";
- {% endif %}
- {% if item.peers is defined and item.peer_dir is not defined %}
- {% for peer in item.peers %}
- peer "{{peer.name}}" {
-
- };
- {% endfor %}
- {% endif %}
- {% if item.peer_groups is defined %}
- {% for peer_group in item.peer_groups %}
- peer group "{{peer_group-name}}" {
-
- };
- {% endfor %}
- {% endif %}
|