I have a bridged network (wlan and wan) working fine - devices connected through wlan get internet access through eth0 (the wlan port).
I have added a "guest" network and need to forward traffic between guest and the bridged lan (each on its own subnet). But for some reason, the forwarding rule described in the uci firewall doc just doesn't work as advertised.
In /etc/config/network:
config interface 'br'
option ifname 'eth0'
option type 'bridge'
option force_link '1'
option proto 'dhcp'
config interface 'guest'
option proto 'static'
option ipaddr '10.0.0.1'
option netmask '255.255.255.0'
In /etc/config/dhcp:
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option filterwin2k '0'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/br/'
option domain 'br'
option expandhosts '1'
option nonegcache '0'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
option localservice '0'
option localservice '1'
config dhcp 'guest'
option interface 'guest'
option start '50'
option limit '100'
option leasetime '1h'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
/etc/config/firewall
config defaults
option syn_flood '1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
option disable_ipv6 '1'
config zone
option name 'br'
list network 'br'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
config zone
option name 'guest'
option network 'guest'
option output 'ACCEPT'
option input 'ACCEPT'
option forward 'ACCEPT'
config forwarding
option src 'guest'
option dest 'br'
config forwarding
option src 'br'
option dest 'guest'
config rule
option name 'Allow Guest DNS'
option src 'guest'
option dest_port '53'
option proto 'tcp udp'
option target 'ACCEPT'
config rule
option name 'Allow Guest DHCP'
option src 'guest'
option src_port '67-68'
option dest_port '67-68'
option proto 'udp'
option target 'ACCEPT'
The guest network wide open at the moment (accepting input and forward requests) because I can't seem to get any traffic through the connection. I'll worry about restricting access once it's working. Pretty sure a default route is needed somewhere (since br gets its IP via DHCP and is in the 192.168.x.x range, and the guest clients are in the 10.0.0.x range) but I haven't been successful figuring out how to do that via UCI. Have spent several days pouring over docs and posts (many of which are years out of date) and have come up empty. Any help would be appreciated!
(Last edited by sbinder on 16 Nov 2017, 20:54)