I am having similar issues to above but my generate config is showing the correct CIDR format.
In my case I have a WAN interface and a LAN interface that are on different subnets 192.168.0.0 and 192.168.1.1 respectively.
My WAN interface is connected to a second router 192.168.0.12 .. and the gateway to internet is on that. I have also pptp vpn interface which builds a tunnel out through 192.168.0.12 to remote internet location.
All works well and I am routing between 192.168.0.0 and 192.168.1.0 but upnp devices are not visible across the 2 subnets.
upnp is finding and responding to traffic on the 192.168.1.1 subnet correctly but shows this in the system log:
Jan 20 20:37:42 OpenWrt daemon.info miniupnpd[11799]: SSDP M-SEARCH from 192.168.0.1:55221 ST: upnp:rootdevice
Jan 20 20:37:42 OpenWrt daemon.err miniupnpd[11799]: Can't find in which sub network the client is
from anything on the 192.168.0.0 subnet.
I don't see 2 entries for "listening_ip" in my generated conf - could this be the problem?
upnpd is:
config 'upnpd' 'config'
option 'download' '1024'
option 'upload' '512'
option 'external_iface' 'wan'
option 'internal_iface' 'lan'
option 'port' '5000'
option 'uuid' 'f39a89ae-9abe-4c6d-82e6-0809fd99b203'
option 'log_output' '1'
config 'perm_rule'
option 'comment' 'Allow subnet 1 high ports'
option 'ext_ports' '1024-65535'
option 'int_addr' '192.168.0.0/24'
option 'int_ports' '1024-65535'
option 'action' 'allow'
config 'perm_rule'
option 'comment' 'Allow subnet 2 high ports'
option 'ext_ports' '1024-65535'
option 'int_addr' '192.168.1.0/24'
option 'int_ports' '1024-65535'
option 'action' 'allow'
config 'perm_rule'
option 'action' 'allow'
option 'ext_ports' '1024-65535'
option 'int_addr' '0.0.0.0/0'
option 'int_ports' '1024-65535'
option 'comment' 'Allow high ports'
config 'perm_rule'
option 'action' 'deny'
option 'ext_ports' '0-65535'
option 'int_addr' '0.0.0.0/0'
option 'int_ports' '0-65535'
option 'comment' 'Default deny'
generated /var/etc/miniupnpd.conf :-
ext_ifname=eth1.1
listening_ip=192.168.1.196/24
port=5000
enable_natpmp=yes
enable_upnp=yes
secure_mode=yes
system_uptime=yes
bitrate_down=8388608
bitrate_up=4194304
uuid=f39a89ae-9abe-4c6d-82e6-0809fd99b203
allow 1024-65535 192.168.0.0/24 1024-65535
allow 1024-65535 192.168.1.0/24 1024-65535
allow 1024-65535 0.0.0.0/0 1024-65535
deny 0-65535 0.0.0.0/0 0-65535
Any clues?
Rgds
Alastair B