Hi All.
I would appreciate some help with my openwrt config.. been struggling with it for 2 whole days now.
My issue is that I cannot send email (SMTP) from my vlan ("lan") even though I've enabled port 993 in the firewall. The strange thing is that it works whenever I use "ipset" to define the src net/ip, but when I used the actual zone name ("lan") as source it doesn't work at all. In fact, both zone "lan" and "voip" (my ata is plugged into port "lan1" doesn't work at all in the firewall, but ipset works fine. I suspect tis a misconfigure network. Here are the relevant settings.
**/etc/config/network:**
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
config interface 'lan'
option device 'br-lan.3'
option proto 'static'
option ipaddr '192.168.3.254'
option netmask '255.255.255.0'
option ipv6 '0'
option delegate '0'
config bridge-vlan
option device 'br-lan'
option vlan '3'
list ports 'lan2:t'
list ports 'lan3'
list ports 'lan4'
config bridge-vlan
option device 'br-lan'
option vlan '6'
list ports 'lan1'
config interface 'voip'
option proto 'static'
option device 'br-lan.6'
option ipaddr '192.168.6.254'
option netmask '255.255.255.0'
**/etc/config/firewall**
config zone
option name 'lan'
list network 'lan'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
config rule
option name 'Allow SMTP'
option src 'lan'
option dest 'wan'
option proto 'tcp'
option dest_port '465 993'
option target 'ACCEPT'
config zone
option name 'voip'
list network 'voip'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
config rule
option name 'Allow voip -> WAN SIP'
option src 'voip'
option src_port '5004 5060'
option dest 'wan'
option proto 'tcpudp'
option target 'ACCEPT'
To repeat, if I use ipset to identify the src for both the SMTP and voip rules, then everything works fine. But using their zone names does not.