-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlirou-config-example.yml
171 lines (151 loc) · 3.64 KB
/
lirou-config-example.yml
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
lr:
hostname: linux-router
description: Test Router
admin: John Wick
contact: john@example.com
# behaviour
networkeventlog: false
# system authentication
root_password: '$y$j9T$1XcFzb1B2fwtWLz2IIs.y1$UTBXioh2oV.3PctE7vSWVBzkhci0Jsp2NEzQ6JNf2H5'
root_keys:
- key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOV1xAo4NOKpc4y0wcr3NqgVNMdMkxeD2UzVK0SAVuvt
comment: mykey
# primary system IP
primary_address: '172.23.24.254'
# dynamic dns via nsupdate
ddns:
- name: lr
state: present
provider: nsupdate
interface: enp1s0
properties:
server: ns.example.com
domain: lr.example.com
keyfile: XXXXXXXXXXXXXXXXX
# wireless LAN interfaces
wifi:
enabled: true
name: wlp5s0
country: DE
channel: 36
phyname: phy0
mac: 04:f0:21:a8:84:20
driver: nl80211
software:
# WAN DHCP upstream via wifi
- name: wlp5s0
description: Upstream Wifi
state: present
mode: station
mac: 04:f0:21:a8:84:20
ssid: UpstreamWifi
passphrase: XXXXXXXXXXXXXXXXXX
# Wifi Access Point
- name: wlan_access
description: Access Wifi
state: present
# https://www.freedesktop.org/software/systemd/man/systemd.netdev.html#%5BWLAN%5D%20Section%20Options
mode: ap
mac: 04:f0:21:a8:84:22
ssid: Access_Wifi
passphrase: XXXXXXXXXXXXX
lans:
# Wifi Interface
- name: wlp5s0
description: Wifi Client
kind: interface
state: present
dhcpclient:
enabled: true
pull_gateway: true
pull_routes: true
upstream: true
additionalips:
- name: proxmox
address: '192.168.42.231'
netmask: 24
# First LAN Interface
- name: enp1s0
description: WAN
kind: interface
state: present
dhcpclient:
enabled: true
pull_gateway: true
pull_routes: true
upstream: false
# Second LAN Interface
- name: enp2s0
description: Admin
kind: interface
state: present
# Third LAN Interface
- name: enp3s0
description: Mixed
kind: interface
state: present
- name: enp3s0.25
description: Clients on Mixed
kind: vlan
state: present
vlan:
vid: 25
interface: enp3s0
# Fourth LAN Interface
- name: enp4s0
description: VLAN-only
kind: interface
state: present
- name: enp4s0.24
description: Management on VLAN-only
kind: vlan
state: present
vlan:
vid: 24
interface: enp4s0
- name: enp4s0.25
description: Clients on VLAN-only
kind: vlan
state: present
vlan:
vid: 25
interface: enp4s0
# Wifi AP Interface
- name: wlan_access
description: Client WLAN
kind: interface
state: present
# Admin Bridge
- name: lanbr24
description: Management
kind: bridge
state: present
bridge:
interfaces: [ enp2s0, enp3s0, enp4s0.24 ]
address: '172.23.24.254'
prefix: 24
dhcpd:
enabled: true
start: '172.23.24.100'
end: '172.23.24.199'
lease: '24h'
# Clients Bridge
- name: lanbr25
description: Clients
kind: bridge
state: present
bridge:
interfaces: [ enp3s0.25, enp4s0.25, wlan_access ]
address: '172.23.25.254'
prefix: 24
dhcpd:
enabled: true
start: '172.23.25.100'
end: '172.23.25.199'
lease: '24h'
dnat:
- src:
intf: enp1s0
addr: '192.168.42.231'
dest:
addr: '172.23.28.10'