Martineau
Part of the Furniture
I would appreciate any feedback on how to troubleshoot this "somewhat working" setup...
I suggest you do not use single digit VLANs, instead use say 10,20,30,40,50 (60 is reserved on my RT-AC68U???) etc. or even 100,200 etc.
Also, can you try the following rules
Code:
ACTION="-I"
$INTERFACE="vlan10" # Change to your VLAN
iptables $ACTION INPUT -i $INTERFACE -m state --state NEW -j DROP # Protect Router Block EVERYTHING!
iptables $ACTION INPUT -i $INTERFACE -p tcp --dport 53 -j ACCEPT # Allow VLAN to access DNSSEC?
iptables $ACTION INPUT -i $INTERFACE -p udp -m multiport --dport 53,67 -j ACCEPT # Allow VLAN to access DNS,DHCP
taken from my script.
NOTE: Since I use multiple VLANs (20,30,40,50 & 200), I leave port 4 'tagged' in VLAN1, and also have port 4 tagged in the custom VLANxx.
Code:
admin@RT-AC68U:/jffs/scripts# robocfg show
Switch: enabled
Port 0: 100FD enabled stp: none vlan: 2 jumbo: off mac: XX:XX:XX:XX:XX:XX
Port 1: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 2: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 3: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 4: 1000FD enabled stp: none vlan: 1 jumbo: off mac: XX:XX:XX:XX:XX:XX
Port 8: DOWN enabled stp: none vlan: 2 jumbo: off mac: 00:00:00:00:00:00
VLANs: BCM5301x enabled mac_check mac_hash
1: vlan1: 1 2 3 4t 5t
2: vlan2: 0 5
20: vlan20: 4t 5t
30: vlan30: 4t 5t
40: vlan40: 4t 5t
50: vlan50: 4t 5t
<snip> # Here is the weird VLAN60 that appears along with the other rogue 5x,6x VLANs
60: vlan60: 0t 2 7t 8t
<snip>
200: vlan200: 4t 5t
Code:
admin@RT-AC68U:/jffs/scripts# ./VLANSwitch.sh 30 status verbose
vlan30 Robocfg Status
=====================
1: vlan1: 1 2 3 4t 5t
30: vlan30: 4t 5t
vlan30 Bridge Status
====================
br2 8000.xxxxxxxxxxxx no wl0.1
vlan30
vlan30 Status
=============
vlan30 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
inet addr:10.88.30.1 Bcast:10.88.30.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:28991 errors:0 dropped:0 overruns:0 frame:0
TX packets:30177 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:23092210 (22.0 MiB) TX bytes:2161594 (2.0 MiB)
vlan30 Statistics
=================
vlan30 VID: 30 REORDER_HDR: 1 dev->priv_flags: 8001
total frames received 28991
total bytes received 23092210
Broadcast/Multicast Rcvd 0
total frames transmitted 30177
total bytes transmitted 2161594
total headroom inc 1984
total encap on xmit 30177
Device: eth0
INGRESS priority mappings: 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0
EGRESS priority mappings:
br2 ACTIVE devices (ARP only accurate within 60secs?)
=====================================================
10.88.102.14 xx:xx:xx:xx:xx:xx Hive-Hub (myHivehub.Martineau.lan)
admin@RT-AC68U:/jffs/scripts# ./VLANSwitch.sh 40 status verbose
vlan40 Robocfg Status
=====================
1: vlan1: 1 2 3 4t 5t
40: vlan40: 4t 5t
vlan40 Bridge Status
====================
vlan40 Status
=============
vlan40 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX
inet addr:10.88.40.1 Bcast:10.88.40.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:210842 errors:0 dropped:0 overruns:0 frame:0
TX packets:89068 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:58013081 (55.3 MiB) TX bytes:20473537 (19.5 MiB)
vlan40 Statistics
=================
vlan40 VID: 40 REORDER_HDR: 1 dev->priv_flags: 1
total frames received 210842
total bytes received 58013081
Broadcast/Multicast Rcvd 65103
total frames transmitted 89068
total bytes transmitted 20473537
total headroom inc 0
total encap on xmit 89068
Device: eth0
INGRESS priority mappings: 0:0 1:0 2:0 310.88.40.15 xx:xx:xx:xx:xx:xx Samsung-TV (?):0 4:0 5:0 6:0 7:0
EGRESS priority mappings:
vlan40 ACTIVE devices (ARP only accurate within 60secs?)
========================================================
10.88.40.10 xx:xx:xx:xx:xx:xx SKYHD-Bedroom (?)
10.88.40.15 xx:xx:xx:xx:xx:xx Samsung-TV (?)
10.88.40.17 xx:xx:xx:xx:xx:xx SKYHD-Lounge (?)
Last edited: