Ik ben bezig met configureren van een Edgerouter 3 Lite.
Daarop wil ik een Prive LAN, IOT, NOT (Network Of Things zonder Internet Access) en een Gasten netwerk.
Eth1 = Privé LAN
Eth1.20 = NOT
Eth1.30 = IOT
Eth1.40 = Gasten
Alles loopt dus over eth1 naar domme switches. Aan die switches hangen 2 UAP Lite's. Op deze heb ik 4 SSID's gemaakt.
LAN = Zonder VLAN (Is dat Untagged?)
NOT = VLAN20
IOT = VLAN30
Gasten = VLAN40
Om te beginnen wilde ik het IOT VLAN van het Privé VLAN scheiden dmv firewall rules.
Dat is prima gelukt. Maar Op m'n IOT netwerk zitten ook Chromecasts en Android TV boxen. Om die te kunnen gebruiken vanaf het Prive LAN moest ik MDNS inschakelen.
Op diverse fora las ik dat dit door deze commands kan:
code:
1
2
| set service mdns repeater interface eth1
set service mdns repeater interface eth1.30 |
Helaas lukte het daarmee nog niet bij mij. Ik heb toen ook een gat in de firewall gemaakt voor port 5353 vanaf de IOT interface richting LOCAL (De Edgerouter zelf) en IN.
Toen werkte het wel.
Alleen daarmee heb ik een ander probleem. Van mijn ISP (Telfort koper) krijg ik 100mb/s down en 30 mb/s up.
Na het geven van deze commands
code:
1
2
| set service mdns repeater interface eth1
set service mdns repeater interface eth1.30 |
zakt dat terug naar omgeveer 10mb/s down
Zodra ik die mdns service verwijder komt de snelheid weer terug.
Ik had dit ook met mijn Edgerouter X. Ik dacht dat die niet helemaal lekker was en heb daarom deze Lite (2e hands) gekocht.
Maar nu heb ik dus hetzelfde probleem.
Ik heb nog geprobeerd hwnat offloading aan te zetten. Maar dat kan blijkbaar niet met een Edgerouter Lite. Dan krijg ik deze melding:
code:
1
| Error: This platform integrates hardware NAT offload into forwarding offload. NAT offload is not individually configurable. |
Vervolgens heb ik offload forwarding aangezet met deze commands.
code:
1
2
| set system offload ipv4 forwarding enable
set system offload ipv6 forwarding enable |
Ik moet eerlijk zeggen dat ik niet goed weet wat dat offloaden precies doet. Maar ik las er het eea over. Dus wilde het toch even proberen. Maar helaasch ;-)
Hierbij ook nog even mijn config. Weten jullie wat hier aan de hand is?
code:
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
| firewall {
all-ping enable
broadcast-ping disable
group {
address-group HOME_ASSISTANT_SERVER {
address x.x.x.x
}
network-group ALL_LAN_IP_ADDRESSES {
network 192.168.0.0/16
network 172.16.0.0/12
network 10.0.0.0/8
}
port-group ESPHOME_PORTS {
port 6053
}
port-group MDNS_PORTS {
port 5353
}
}
ipv6-name WANv6_IN {
default-action drop
description "WAN inbound traffic forwarded to LAN"
enable-default-log
rule 10 {
action accept
description "Allow established/related sessions"
state {
established enable
related enable
}
}
rule 20 {
action drop
description "Drop invalid state"
state {
invalid enable
}
}
}
ipv6-name WANv6_LOCAL {
default-action drop
description "WAN inbound traffic to the router"
enable-default-log
rule 10 {
action accept
description "Allow established/related sessions"
state {
established enable
related enable
}
}
rule 20 {
action drop
description "Drop invalid state"
state {
invalid enable
}
}
rule 30 {
action accept
description "Allow IPv6 icmp"
protocol ipv6-icmp
}
rule 40 {
action accept
description "allow dhcpv6"
destination {
port 546
}
protocol udp
source {
port 547
}
}
}
ipv6-receive-redirects disable
ipv6-src-route disable
ip-src-route disable
log-martians enable
name IOT_TO_LAN {
default-action accept
rule 1 {
action accept
description "Established And Related"
log disable
protocol all
state {
established enable
related enable
}
}
rule 3 {
action drop
description "IOT Naar LAN"
destination {
group {
network-group ALL_LAN_IP_ADDRESSES
}
}
log disable
protocol all
}
rule 4 {
action accept
description MDNS
destination {
group {
port-group MDNS_PORTS
}
}
log disable
protocol all
}
}
name IOT_TO_LOCAL {
default-action drop
rule 1 {
action accept
description DNS
destination {
port 53
}
log disable
protocol tcp_udp
}
rule 2 {
action accept
description DHCP
destination {
port 67
}
log disable
protocol udp
}
rule 3 {
action accept
description "Established And Related"
log disable
protocol all
state {
established enable
related enable
}
}
rule 4 {
action accept
description MDNS
destination {
group {
port-group MDNS_PORTS
}
}
log disable
protocol all
}
}
name WAN_IN {
default-action drop
description "WAN to internal"
rule 10 {
action accept
description "Allow established/related"
state {
established enable
related enable
}
}
rule 20 {
action drop
description "Drop invalid state"
state {
invalid enable
}
}
}
name WAN_LOCAL {
default-action drop
description "WAN to router"
rule 10 {
action accept
description "Allow established/related"
state {
established enable
related enable
}
}
rule 20 {
action drop
description "Drop invalid state"
state {
invalid enable
}
}
}
receive-redirects disable
send-redirects enable
source-validation disable
syn-cookies enable
}
interfaces {
ethernet eth0 {
address dhcp
description Internet
duplex auto
firewall {
in {
ipv6-name WANv6_IN
name WAN_IN
}
local {
ipv6-name WANv6_LOCAL
name WAN_LOCAL
}
}
speed auto
}
ethernet eth1 {
address x.x.x.x/24
description LAN
duplex auto
speed auto
vif 20 {
address 192.168.20.254/24
description NOT
}
vif 30 {
address 192.168.30.254/24
description IOT
firewall {
in {
name IOT_TO_LAN
}
local {
name IOT_TO_LOCAL
}
}
}
vif 40 {
address 192.168.40.254/24
description Gasten
}
}
ethernet eth2 {
address x.x.x.x/24
description Managment_Port
duplex auto
speed auto
}
loopback lo {
}
}
service {
dhcp-server {
disabled false
hostfile-update disable
shared-network-name Gasten {
authoritative enable
subnet 192.168.40.0/24 {
default-router 192.168.40.254
dns-server 192.168.40.254
lease 86400
start 192.168.40.1 {
stop 192.168.40.199
}
}
}
shared-network-name IOT {
authoritative enable
subnet 192.168.30.0/24 {
default-router 192.168.30.254
dns-server 192.168.30.254
lease 86400
start 192.168.30.1 {
stop 192.168.30.199
}
}
}
shared-network-name LAN {
authoritative disable
subnet x.x.x.x/24 {
default-router x.x.x.x
dns-server x.x.x.x
lease 86400
start x.x.x.x {
stop x.x.x.x
}
}
}
shared-network-name NOT {
authoritative enable
subnet 192.168.20.0/24 {
default-router 192.168.20.254
dns-server 192.168.20.254
lease 86400
start 192.168.20.1 {
stop 192.168.20.199
}
}
}
static-arp disable
use-dnsmasq disable
}
dns {
forwarding {
cache-size 150
listen-on eth1
listen-on eth2
listen-on eth1.30
listen-on eth1.40
name-server 8.8.8.8
}
}
gui {
http-port 80
https-port 443
older-ciphers enable
}
mdns {
repeater {
interface eth1
interface eth1.30
}
}
nat {
rule 5010 {
description "masquerade for WAN"
outbound-interface eth0
type masquerade
}
}
ssh {
port 22
protocol-version v2
}
unms {
disable
}
}
system {
gateway-address x.x.x.x
host-name ubnt
login {
user Mark {
authentication {
encrypted-password $5$b4DWsXwVOQXeVWb7$n86lpW2kIu68H3sP/msEOHG11.lJ.bZgC7YTAS1fBR4
}
level admin
}
}
name-server 1.1.1.1
ntp {
server 0.ubnt.pool.ntp.org {
}
server 1.ubnt.pool.ntp.org {
}
server 2.ubnt.pool.ntp.org {
}
server 3.ubnt.pool.ntp.org {
}
}
offload {
hwnat disable
ipsec enable
ipv4 {
forwarding enable
}
ipv6 {
forwarding enable
}
}
syslog {
global {
facility all {
level notice
}
facility protocols {
level debug
}
}
}
time-zone UTC
}
/* Warning: Do not remove the following line. */
/* === vyatta-config-version: "config-management@1:conntrack@1:cron@1:dhcp-relay@1:dhcp-server@4:firewall@5:ipsec@5:nat@3:qos@1:quagga@2:suspend@1:system@4:ubnt-pptp@1:ubnt-udapi-server@1:ubnt-unms@1:ubnt-util@1:vrrp@1:webgui@1:webproxy@1:zone-policy@1" === */
/* Release version: v2.0.3.5189348.190502.1344 */ |
PS ik hoop dat ik de log zo goed geformateerd heb. Het is wel erg groot geworden

. Als het anders moet /kan, hoor ik het graag :-)