Mijn vraag
Ik heb mijn EdgeRouter X VLAN-aware ingesteld met een LAN en vijf VLANs.
Computers die bedraad zijn verbonden op verschillende VLANs (bijv. Eth1: pvid=110 en Eth2: pvid=120) die kunnen elkaar bereiken met ping. Tenminste: ik heb firewall zo ingesteld dat VLAN110 wel kan pingen naar VLAN120 en omgekeerd niet.
Maar als mijn computers draadloos zijn verbonden (via Unifi AP) dan kunnen ze dat opeens niet!
Bovendien hebben ze geen toegang tot de ubnt router (en ook niet tot de Ziggo router waar de ERX op is aangesloten). Maar wel gewoon tot websites buiten mijn netwerk.
Ik heb al uren zoekwerk er in zitten, maar kom er niet uit. Iemand een idee? Ik word hier helemaal
Moet ik zoeken in de ERX of in het AP? (In het AP stel je volgens mij eigenlijk niet veel meer in dan: deze SSID hoort bij deze VLAN en dat lijkt gewoon te werken?). Iets met 'routing'?
Relevante software en hardware die ik gebruik
EdgeRouter X (ERX) en Unifi Access Point (AP)
Wat ik al gevonden of geprobeerd heb
Ik heb verschillende scenarios uitgezocht, bedraad en niet bedraad. Daarbij heb ik draadloos uitgeprobeerd met pvid=leeg (dus AP krijgt IP-adres van LAN) en met pvid=160 (dus AP krijgt IP-adres van VLAN160). Zie plaatjes van instellingen switch0 en van de tests die ik heb uitgevoerd.
/f/image/lO8GYoLF96H2Hs9Fk4OKW7F5.png?f=fotoalbum_large)
:fill(white):strip_exif()/f/image/qHQOBNlACHSbS5ecM6ASZGXn.png?f=user_large)
- beide computers draadloos op VLAN110: kunnen elkaar pingen (is zoals verwacht)
- een computer draadloos op VLAN110 en een bedraad op VLAN110: kunnen elkaar niet pingen (is niet zoals verwacht)
- een computer draadloos op VLAN160 (dus dezelfde VLAN als het AP): kan wel pingen met andere opties, maar nog steeds niet met draadloos op VLAN110.
Alvast bedankt voor het meedenken!
...
Ik heb mijn EdgeRouter X VLAN-aware ingesteld met een LAN en vijf VLANs.
Computers die bedraad zijn verbonden op verschillende VLANs (bijv. Eth1: pvid=110 en Eth2: pvid=120) die kunnen elkaar bereiken met ping. Tenminste: ik heb firewall zo ingesteld dat VLAN110 wel kan pingen naar VLAN120 en omgekeerd niet.
Maar als mijn computers draadloos zijn verbonden (via Unifi AP) dan kunnen ze dat opeens niet!
Bovendien hebben ze geen toegang tot de ubnt router (en ook niet tot de Ziggo router waar de ERX op is aangesloten). Maar wel gewoon tot websites buiten mijn netwerk.
Ik heb al uren zoekwerk er in zitten, maar kom er niet uit. Iemand een idee? Ik word hier helemaal

Moet ik zoeken in de ERX of in het AP? (In het AP stel je volgens mij eigenlijk niet veel meer in dan: deze SSID hoort bij deze VLAN en dat lijkt gewoon te werken?). Iets met 'routing'?
Relevante software en hardware die ik gebruik
EdgeRouter X (ERX) en Unifi Access Point (AP)
Wat ik al gevonden of geprobeerd heb
Ik heb verschillende scenarios uitgezocht, bedraad en niet bedraad. Daarbij heb ik draadloos uitgeprobeerd met pvid=leeg (dus AP krijgt IP-adres van LAN) en met pvid=160 (dus AP krijgt IP-adres van VLAN160). Zie plaatjes van instellingen switch0 en van de tests die ik heb uitgevoerd.
/f/image/lO8GYoLF96H2Hs9Fk4OKW7F5.png?f=fotoalbum_large)
:fill(white):strip_exif()/f/image/qHQOBNlACHSbS5ecM6ASZGXn.png?f=user_large)
- beide computers draadloos op VLAN110: kunnen elkaar pingen (is zoals verwacht)
- een computer draadloos op VLAN110 en een bedraad op VLAN110: kunnen elkaar niet pingen (is niet zoals verwacht)
- een computer draadloos op VLAN160 (dus dezelfde VLAN als het AP): kan wel pingen met andere opties, maar nog steeds niet met draadloos op VLAN110.
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
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
| firewall { all-ping enable broadcast-ping disable group { address-group myVLANs { address 10.0.110.0/24 address 10.0.120.0/24 address 10.0.130.0/24 address 10.0.140.0/24 address 10.0.150.0/24 address 10.0.160.0/24 description "Local VLANs" } } ipv6-receive-redirects disable ipv6-src-route disable ip-src-route disable log-martians enable 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 } } } name vlan120in { default-action accept description "Prevent access VLAN200" rule 30 { action drop description "Drop VLANs" destination { group { address-group myVLANs } } log disable protocol all source { } state { established disable invalid disable new enable related disable } } rule 40 { action drop description "DROP Ziggo Router" destination { address 192.168.178.1 } log disable protocol all } } name vlan120local { default-action drop description "Prevent access to router" rule 1 { action accept description "allow DNS" destination { port 53 } log disable protocol tcp_udp } rule 2 { action accept description "allow DHCP" destination { port 67 } log disable protocol udp } } name vlan140in { default-action accept description "Prevent access VLAN200" rule 30 { action drop description "Drop VLANs" destination { group { address-group myVLANs } } log disable protocol all source { } state { established disable invalid disable new enable related disable } } rule 40 { action drop description "DROP Ziggo Router" destination { address 192.168.178.1 } log disable protocol all } } name vlan140local { default-action drop description "Prevent access to router" rule 1 { action accept description "allow DNS" destination { port 53 } log disable protocol tcp_udp } rule 2 { action accept description "allow DHCP" destination { port 67 } log disable protocol udp } } name vlan150in { default-action accept description "Prevent access VLAN200" rule 30 { action drop description "Drop VLANs" destination { group { address-group myVLANs } } log disable protocol all source { } state { established disable invalid disable new enable related disable } } rule 40 { action drop description "DROP Ziggo Router" destination { address 192.168.178.1 } log disable protocol all } } name vlan150local { default-action drop description "Prevent access to router" rule 1 { action accept description "allow DNS" destination { port 53 } log disable protocol tcp_udp } rule 2 { action accept description "allow DHCP" destination { port 67 } log disable protocol udp } } name vlan200in { default-action accept description "Prevent access VLAN200" rule 10 { action accept description "allow 10.0.110.12" destination { address 10.0.110.12 } log disable protocol all } rule 20 { action accept description "allow 10.0.110.13" destination { address 10.0.110.13 } log disable protocol all } rule 30 { action drop description "Drop VLANs" destination { group { address-group myVLANs } } log disable protocol all source { } state { established disable invalid disable new enable related disable } } rule 40 { action drop description "DROP Ziggo Router" destination { address 192.168.178.1 } log disable protocol all } } receive-redirects disable send-redirects enable source-validation disable syn-cookies enable } interfaces { ethernet eth0 { address dhcp description Internet duplex auto firewall { in { name WAN_IN } local { name WAN_LOCAL } } speed auto } ethernet eth1 { description Local duplex auto speed auto } ethernet eth2 { description Local duplex auto speed auto } ethernet eth3 { description Local duplex auto speed auto } ethernet eth4 { description Local duplex auto speed auto } loopback lo { } switch switch0 { address 192.168.1.1/24 description Local mtu 1500 switch-port { interface eth1 { vlan { pvid 110 } } interface eth2 { vlan { pvid 160 } } interface eth3 { vlan { vid 110 vid 120 vid 130 vid 140 vid 150 } } interface eth4 { vlan { pvid 160 vid 110 vid 120 vid 130 vid 140 vid 150 } } vlan-aware enable } vif 110 { address 10.0.110.1/24 description "HOME1 devices" mtu 1500 } vif 120 { address 10.0.120.1/24 description "HOME2 devices" firewall { in { name vlan120in } local { name vlan120local } } mtu 1500 } vif 130 { address 10.0.130.1/24 description "HOME3 restricted" mtu 1500 } vif 140 { address 10.0.140.1/24 description IOT firewall { in { name vlan140in } local { name vlan140local } } mtu 1500 } vif 150 { address 10.0.150.1/24 description GUEST firewall { in { name vlan150in } local { name vlan150local } } mtu 1500 } vif 160 { address 10.0.160.1/24 description "Unifi APs" mtu 1500 } } } service { dhcp-server { disabled false hostfile-update enable shared-network-name LAN { authoritative enable subnet 192.168.1.0/24 { default-router 192.168.1.1 dns-server 192.168.1.1 lease 86400 start 192.168.1.38 { stop 192.168.1.243 } } } shared-network-name VLAN110HOME1 { authoritative enable subnet 10.0.110.0/24 { default-router 10.0.110.1 lease 86400 start 10.0.110.20 { stop 10.0.110.200 } static-mapping remco-laptop { ip-address 10.0.110.9 mac-address e0:69:95:cc:d1:8d } } } shared-network-name VLAN120HOME2 { authoritative enable subnet 10.0.120.0/24 { default-router 10.0.120.1 lease 86400 start 10.0.120.20 { stop 10.0.120.200 } } } shared-network-name VLAN130HOME3 { authoritative enable subnet 10.0.130.0/24 { default-router 10.0.130.1 lease 86400 start 10.0.130.20 { stop 10.0.130.200 } } } shared-network-name VLAN140IOT { authoritative enable subnet 10.0.140.0/24 { default-router 10.0.140.1 lease 86400 start 10.0.140.20 { stop 10.0.140.200 } } } shared-network-name VLAN150GUEST { authoritative enable subnet 10.0.150.0/24 { default-router 10.0.150.1 lease 86400 start 10.0.150.20 { stop 10.0.150.200 } } } shared-network-name VLAN160UNIFI { authoritative enable subnet 10.0.160.0/24 { default-router 10.0.160.1 lease 86400 start 10.0.160.20 { stop 10.0.160.200 } } } static-arp disable use-dnsmasq enable } dns { forwarding { cache-size 150 listen-on switch0.110 listen-on switch0.120 listen-on switch0.130 listen-on switch0.140 listen-on switch0.150 listen-on switch0.160 system } } gui { http-port 80 https-port 443 older-ciphers enable } nat { rule 5010 { description "masquerade for WAN" outbound-interface eth0 type masquerade } } ssh { port 22 protocol-version v2 } unms { disable } } system { domain-name home.local host-name ubnt2 name-server 1.1.1.1 name-server 1.0.0.1 name-server 127.0.0.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 { } } syslog { global { facility all { level notice } facility protocols { level debug } } } time-zone Europe/Amsterdam } /* Release version: v1.10.11.5274269.200221.1028 */ |
Alvast bedankt voor het meedenken!
...