Hello everyone,
I'm using a dumb-esque access point This what I'm trying to achieve:
1 iot SSID that has access only to lan (will be narrowed only to my server in the future) for my iot devices.
1 lan SSID that have access to everything
I managed the first part using the guess network documentation, juste reversing the lan rule (rejecting !192.168.0.0/16), devices connected to my iot SSID have access to any 192.168.10.* (iot) or 192.168.1.* (lan).
But I can't access iot devices from my lan network... I'm a bit confused and I'm pretty sure it's going to be obvious but I'm stuck. I tried some configurations but never got it working so I'm asking for some help.
TLDR:
iot -> lan : (as intended)
iot -> internet : (as intended)
lan -> internet : (as intended)
lan -> iot : (not as intended)
Here is my config :
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.2'
option netmask '255.255.255.0'
option ip6assign '60'
list dns '192.168.1.254'
option gateway '192.168.1.254'
config device
option type 'bridge'
option name 'br-iot'
option bridge_empty '1'
config interface 'iot'
option proto 'static'
option device 'br-iot'
option ipaddr '192.168.10.1'
option netmask '255.255.255.0'
config wifi-device 'radio0'
option type 'mac80211'
option path 'platform/18000000.wifi'
option channel '1'
option band '2g'
option htmode 'HE40'
option cell_density '0'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'iot'
option mode 'ap'
option ssid 'iot'
option encryption 'sae-mixed'
option key '####!'
config defaults
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option synflood_protect '1'
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
option masq '1'
list network 'lan'
config zone
option name 'iot'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
list network 'iot'
config forwarding
option src 'iot'
option dest 'lan'
config rule
option src 'iot'
option target 'ACCEPT'
option name 'ap-access'
list proto 'all'
config rule
option name 'iot-restriction'
option src 'iot'
list dest_ip '!192.168.0.0/16'
option target 'REJECT'
list proto 'all'
option dest 'lan'
Thank you and have a nice day