Hi Guys,
I'm having troubles when setting up my pfsense with openwrt.
So I have 3 vlans (10 - IoT; 20- HomeAssistant 30- Home Usage) both are configurated at pfsense, each vlan with their own dhcp server, working properly btw.
Now, I have already configurated Openwrt, lan interface and vlan interfaces. Also, have setup dhcp relay for each vlan.
The problem is when I setup wireless with the IOT interface. For whatever reason the client is connecting but doesn't get an IP address.
When I go to the ssh and see tcpdum on lan1.10 (vlan) I can see package from the network, and also the request for dhcp, but for some reason, the clients don't get an IP.
I have disabled firewall, because i'm using the pfsense rules.
Below my network and dhcp config:
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fddf:04b7:2399::/48'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.5'
option netmask '255.255.255.0'
option ip6assign '60'
list dns '192.168.1.1'
list dns_search 'talvai.home.talvai'
option gateway '192.168.1.1'
config device
option type '8021q'
option ifname 'lan1'
option vid '10'
option name 'lan1.10'
config device
option type '8021q'
option ifname 'lan1'
option vid '20'
option name 'lan1.20'
config device
option type '8021q'
option ifname 'lan1'
option vid '30'
option name 'lan1.30'
config interface 'IoT'
option proto 'dhcp'
option device 'lan1.10'
option type 'bridge'
config interface 'Home'
option proto 'dhcp'
option device 'lan1.30'
dhcp
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option cachesize '1000'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option localservice '1'
option ednspacket_max '1232'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option ignore '1'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
config interface 'vlan10'
option proto 'relay'
option ipaddr '172.24.10.9' # IP estático do OpenWRT na VLAN 10
option network 'lan1 eth0.10' # Interface física conectada ao pfSense e interface VLAN
option server '172.24.10.1' # IP do servidor DHCP no pfSense para VLAN 10
config interface 'vlan20'
option proto 'relay'
option ipaddr '172.24.20.2' # IP estático do OpenWRT na VLAN 20
option network 'lan1 eth0.20'
option server '172.24.20.1' # IP do servidor DHCP no pfSense para VLAN 20
config interface 'vlan30'
option proto 'relay'
option ipaddr '172.24.30.2' # IP estático do OpenWRT na VLAN 30
option network 'lan1 eth0.30'
option server '172.24.30.1' # IP do servidor DHCP no pfSense para VLAN 30