Modify

Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#8836 closed defect (invalid)

upnp doesn't work (newest trunk svn)

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: miniupnpd Cc:

Description

Today I updated the svn and compile
then ifound miniupnp not work
i try:
/etc/init.d/miniupnpd enabled
/etc/init.d/miniupnpd start
/etc/init.d/miniupnpd restart

miniupnpd 1.5-5

Mar 27 02:49:16 OpenWrt daemon.err miniupnpd[4270]: ioctl(s, SIOCGIFADDR, ...): Cannot assign requested address
Mar 27 02:49:16 OpenWrt daemon.err miniupnpd[4270]: ioctl(s, SIOCGIFADDR, ...): Cannot assign requested address
Mar 27 02:49:16 OpenWrt daemon.err miniupnpd[4270]: chain MINIUPNPD not found
Mar 27 02:49:16 OpenWrt daemon.err miniupnpd[4270]: addnatrule() : iptc_is_chain() error : Cannot assign requested address
Mar 27 02:49:17 OpenWrt daemon.err miniupnpd[4270]: ioctl(s, SIOCGIFADDR, ...): Cannot assign requested address
Mar 27 02:49:17 OpenWrt daemon.err miniupnpd[4270]: ioctl(s, SIOCGIFADDR, ...): Cannot assign requested address
Mar 27 02:49:17 OpenWrt daemon.err miniupnpd[4270]: chain MINIUPNPD not found
Mar 27 02:49:17 OpenWrt daemon.err miniupnpd[4270]: addnatrule() : iptc_is_chain() error : Cannot assign requested address
Mar 27 02:49:19 OpenWrt daemon.err miniupnpd[4270]: ioctl(s, SIOCGIFADDR, ...): Cannot assign requested address
Mar 27 02:49:19 OpenWrt daemon.err miniupnpd[4270]: ioctl(s, SIOCGIFADDR, ...): Cannot assign requested address
Mar 27 02:49:19 OpenWrt daemon.err miniupnpd[4270]: chain MINIUPNPD not found

Attachments (0)

Change History (7)

comment:1 follow-up: Changed 7 years ago by Niels Böhm <bitbucket@…>

Are you sure it's not a configuration problem? It works for me here.

The MINIUPNPD iptables chain isn't created in the init script anymore, but in the firewall hotplug script, so you might want to try "/etc/init.d/firewall restart" directly after installing and enabling miniupnpd:

opkg update
opkg install miniupnpd
uci set upnpd.config.enabled=1
/etc/init.d/miniupnpd enable # note that it's "enable" without d
/etc/init.d/firewall restart
/etc/init.d/miniupnpd start

Also, if your lan is not called "lan" or your wan is not called "wan" in your network config, make sure to set the corresponding option(s) in upnpd's config file to tell it explicitly about your non-default network name(s).

comment:2 in reply to: ↑ 1 Changed 7 years ago by Niels Böhm <bitbucket@…>

Sorry, I forgot a "uci commit" after the "uci set".

comment:3 Changed 7 years ago by anonymous

root@OpenWrt:~# uci set upnpd.config.enabled=1
root@OpenWrt:~# /etc/init.d/miniupnpd enable
root@OpenWrt:~# /etc/init.d/miniupnpd restart
root@OpenWrt:~# miniupnpd[14045]: system uptime is 62628 seconds
miniupnpd[14045]: HTTP listening on port 5000
miniupnpd[14045]: Listening for NAT-PMP traffic on port 5351
miniupnpd[14045]: HTTP connection from 192.168.1.118:56853
miniupnpd[14045]: HTTP REQUEST : GET /rootDesc.xml (HTTP/1.1)
miniupnpd[14045]: HTTP connection from 192.168.1.118:56855
miniupnpd[14045]: HTTP REQUEST : GET /rootDesc.xml (HTTP/1.1)
miniupnpd[14045]: HTTP connection from 192.168.1.118:56856
miniupnpd[14045]: HTTP REQUEST : GET /rootDesc.xml (HTTP/1.1)
miniupnpd[14045]: HTTP connection from 192.168.1.118:56857
miniupnpd[14045]: HTTP REQUEST : GET /L3F.xml (HTTP/1.1)
miniupnpd[14045]: HTTP connection from 192.168.1.118:56858
miniupnpd[14045]: HTTP REQUEST : GET /WANCfg.xml (HTTP/1.1)
miniupnpd[14045]: HTTP connection from 192.168.1.118:56859
miniupnpd[14045]: HTTP REQUEST : GET /WANIPCn.xml (HTTP/1.1)
miniupnpd[14045]: HTTP connection from 192.168.1.118:56860
miniupnpd[14045]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.1)
miniupnpd[14045]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#GetConnectionTypeInfo
miniupnpd[14045]: HTTP connection from 192.168.1.118:56861
miniupnpd[14045]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.1)
miniupnpd[14045]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#GetNATRSIPStatus
miniupnpd[14045]: HTTP connection from 192.168.1.118:56862
miniupnpd[14045]: HTTP REQUEST : GET /rootDesc.xml (HTTP/1.1)
miniupnpd[14045]: HTTP connection from 192.168.1.118:56863
miniupnpd[14045]: HTTP REQUEST : GET /L3F.xml (HTTP/1.1)
miniupnpd[14045]: HTTP connection from 192.168.1.118:56864
miniupnpd[14045]: HTTP REQUEST : GET /WANCfg.xml (HTTP/1.1)
miniupnpd[14045]: HTTP connection from 192.168.1.118:56865
miniupnpd[14045]: HTTP REQUEST : GET /WANIPCn.xml (HTTP/1.1)
miniupnpd[14045]: HTTP connection from 192.168.1.118:56866
miniupnpd[14045]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.1)
miniupnpd[14045]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#GetConnectionTypeInfo
miniupnpd[14045]: HTTP connection from 192.168.1.118:56867
miniupnpd[14045]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.1)
miniupnpd[14045]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#GetNATRSIPStatus
miniupnpd[14045]: HTTP connection from 192.168.1.118:56873
miniupnpd[14045]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.1)
miniupnpd[14045]: SOAPAction: urn:schemas-upnp-org:control-1-0#QueryStateVariable
miniupnpd[14045]: ioctl(s, SIOCGIFADDR, ...): Cannot assign requested address
miniupnpd[14045]: HTTP connection from 192.168.1.118:56874
miniupnpd[14045]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.1)
miniupnpd[14045]: SOAPAction: urn:schemas-upnp-org:control-1-0#QueryStateVariable
miniupnpd[14045]: ioctl(s, SIOCGIFADDR, ...): Cannot assign requested address
miniupnpd[14045]: HTTP connection from 192.168.1.118:56875
miniupnpd[14045]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.1)
miniupnpd[14045]: SOAPAction: urn:schemas-upnp-org:control-1-0#QueryStateVariable
miniupnpd[14045]: ioctl(s, SIOCGIFADDR, ...): Cannot assign requested address
miniupnpd[14045]: HTTP connection from 192.168.1.118:56876
miniupnpd[14045]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.1)
miniupnpd[14045]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry
miniupnpd[14045]: GetGenericPortMappingEntry: index=0
miniupnpd[14045]: Returning UPnPError 713: SpecifiedArrayIndexInvalid
miniupnpd[14045]: HTTP connection from 192.168.1.118:56884
miniupnpd[14045]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.1)
miniupnpd[14045]: SOAPAction: urn:schemas-upnp-org:control-1-0#QueryStateVariable
miniupnpd[14045]: ioctl(s, SIOCGIFADDR, ...): Cannot assign requested address
miniupnpd[14045]: HTTP connection from 192.168.1.118:56885
miniupnpd[14045]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.1)
miniupnpd[14045]: SOAPAction: urn:schemas-upnp-org:control-1-0#QueryStateVariable
miniupnpd[14045]: ioctl(s, SIOCGIFADDR, ...): Cannot assign requested address
miniupnpd[14045]: HTTP connection from 192.168.1.118:56886
miniupnpd[14045]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.1)
miniupnpd[14045]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping
miniupnpd[14045]: AddPortMapping: ext port 62987 to 192.168.1.118:62987 protocol UDP for: Teredo
miniupnpd[14045]: no permission rule matched : accept by default (n_perms=0)
miniupnpd[14045]: chain MINIUPNPD not found
miniupnpd[14045]: redirecting port 62987 to 192.168.1.118:62987 protocol UDP for: Teredo
miniupnpd[14045]: addnatrule() : iptc_is_chain() error : Cannot assign requested address

miniupnpd[14045]: Returning UPnPError 501: ActionFailed

comment:4 Changed 7 years ago by anonymous

thanks I solved

/etc/config/wireless

config 'wifi-device' 'radio0'
	option 'type' 'mac80211'
	option 'macaddr' '00:14:d1:65:03:a7'
	option 'hwmode' '11ng'
	option 'htmode' 'HT20'
	list 'ht_capab' 'SHORT-GI-40'
	list 'ht_capab' 'DSSS_CCK-40'
	option 'disabled' '0'
	option 'channel' '10'
	option 'country' 'CN'
	option 'txpower' '17'

config 'wifi-iface'                      #here
	option 'network' 'wwan'
	option 'encryption' 'psk'
	option 'device' 'radio0'
	option 'mode' 'sta'
	option 'key' '123'
	option 'ssid' 'UAP'
	option 'channel' '10'

config 'wifi-iface'
	option 'device' 'radio0'
	option 'mode' 'ap'
	option 'ssid' 'OpenWrt'
	option 'encryption' 'none'
	option 'network' 'lan'
	option 'channel' '3'


/etc/config/upnpd

config upnpd config
	option enabled		1
	option secure_mode	1
	option log_output	0
	option download 	1024
	option upload   	512
	option external_iface	wan
	option external_iface	wwan''' #add here for wwan! it works well'''
	option internal_iface	lan

comment:5 Changed 7 years ago by openwrt@…

You're trying to use two different external interfaces which doesn't work unless you enable having multiple external interfaces in the config.h, by creating a patch to drop in the package patches dir. Unfortunately enabling this by default is not an option due to problems it creates for the normal case.

comment:6 Changed 7 years ago by cshore

  • Resolution set to invalid
  • Status changed from new to closed

comment:7 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.