-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path10-net-base.yml.j2
67 lines (65 loc) · 1.78 KB
/
10-net-base.yml.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
home_net:
vm:
{% if 'cidr' in supernets %}
cidr: "{{ supernets.cidr | ansible.utils.ipsubnet(24, 10) }}"
{% endif %}
{% if 'cidr6' in supernets %}
cidr6: "{{ supernets.cidr6 | ansible.utils.ipsubnet(64, 10) }}"
{% endif %}
vlan: 10
mt_lists: [LAN, NOSEC]
talos:
{% if 'cidr' in supernets %}
cidr: "{{ supernets.cidr | ansible.utils.ipsubnet(24, 28) }}"
{% endif %}
{% if 'cidr6' in supernets %}
cidr6: "{{ supernets.cidr6 | ansible.utils.ipsubnet(64, 28) }}"
{% endif %}
cidr_internal: "172.28.0.0/16"
# cidr6_internal: "fd00:172:28::/56"
vlan: 28
mt_lists: [LAN, NOSEC]
general:
{% if 'cidr' in supernets %}
cidr: "{{ supernets.cidr | ansible.utils.ipsubnet(24, 50) }}"
{% endif %}
{% if 'cidr6' in supernets %}
cidr6: "{{ supernets.cidr6 | ansible.utils.ipsubnet(64, 50) }}"
{% endif %}
vlan: 50
mt_lists: [LAN, NOSEC]
upnp: true
public:
{% if 'cidr' in supernets %}
cidr: "{{ supernets.cidr | ansible.utils.ipsubnet(24, 55) }}"
{% endif %}
{% if 'cidr6' in supernets %}
cidr6: "{{ supernets.cidr6 | ansible.utils.ipsubnet(64, 55) }}"
{% endif %}
vlan: 55
mt_lists: [LAN, NOSEC]
upnp: true
internal_net:
mgmt:
{% if 'cidr' in supernets %}
cidr: "{{ supernets.cidr | ansible.utils.ipsubnet(24, 100) }}"
{% endif %}
{% if 'cidr6' in supernets %}
cidr6: "{{ supernets.cidr6 | ansible.utils.ipsubnet(64, 100) }}"
{% endif %}
vlan: 100
mt_lists: [LAN, SEC]
san:
{% if 'cidr' in supernets %}
cidr: "{{ supernets.cidr | ansible.utils.ipsubnet(24, 2) }}"
{% endif %}
{% if 'cidr6' in supernets %}
cidr6: "{{ supernets.cidr6 | ansible.utils.ipsubnet(64, 2) }}"
{% endif %}
vlan: 2
mtu: 9000
mt_lists: [LAN, SEC, NOWAN, NOROUTE]
wg_net:
mt:
cidr: "10.4.20.0/24"
# cidr6: "fd00:4:20::/64"