DNSMasq/DHCP will create the subnets, based on what interfaces? Each VLAN interface (vlan1.x) or bridge interface (brX)? I would try figure out that piece first.If the "br0" interface was updated to use each Ethernet port's unique VLAN interface, wouldn't that work ?
In AsusWRT, netfilter/iptables only sees the bridge interface (br0), not the physical interfaces (vlanX). If you want to filter on the specific vlans, then you need ebtables brouting rules, then you can filter on the physical interfaces (vlanX). Or, have a separate bridge interface (br0, br1, br2, etc.) for each Ethernet port. That's about all I know for this stuff.
#Block communication between all private VLANs.
iptables -I FORWARD -i vlan+ ! -o vlan2 -j DROP
iptables -I FORWARD ! -i vlan2 -o vlan+ -j DROP
#Allow all private VLANs to communicate with vlan2.
iptables -I FORWARD -i vlan+ -o vlan2 -j ACCEPT
iptables -I FORWARD -i vlan2 -o vlan+ -j ACCEPT
#!/bin/sh
for N in 1 2 3 4 5 6 7 8; do
cat <<EOF >>"$1"
### configure DHCP subnet for Ethernet port ${N}?
interface=Eth_Port_${N}
dhcp-range=Eth_Port_${N},192.168.${N}0.2,192.168.${N}0.254,255.255.255.0,8h
dhcp-option=Eth_Port_${N},3,192.168.${N}0.1
dhcp-option=Eth_Port_${N},6,8.8.8.8,8.8.4.4
EOF
done
Here's what I found while doing quick check of AsusWRT. Probably want to avoid stepping on reserved or known packet marks... these are marks that would "bit XOR modify" other marks that are currently in use by the firmware.How about this ?
How could you come up with a unique packet mark ?
0000000001111111 = 0x007F = 127 ASUS QoS and bandwidth limiter
0000000010000000 = 0x0080 = 128 (ISIS) Ethernet Port 1
0000000100000000 = 0x0100 = 256 (ISIS) Ethernet Port 2
0000001000000000 = 0x0200 = 512 (ISIS) Ethernet Port 3
0000010000000000 = 0x0400 = 1024 (ISIS) Ethernet Port 4
0000100000000000 = 0x0800 = 2048 (ISIS) Ethernet Port 5
0001000000000000 = 0x1000 = 4096 (ISIS) Ethernet Port 6
0010000000000000 = 0x2000 = 8192 (ISIS) Ethernet Port 7
0100000000000000 = 0x4000 = 16384 (ISIS) Ethernet Port 8
1000000000000000 = 0x8000 = 32768 Merlin NAT Loopback
All these questions you have, can be answered by reading the AsusWRT source code.Where did you find that ?
I am sorry, I don't remember writing that. It seems he was just explaining how it works. It was probably my brother Jon.Just read your post at ...
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!