miniupnpd config
miniupnpd config
来源 https://blog.csdn.net/u011641885/article/details/49305373
UPnP全名是Universal Plug and Play,UPnP 最大的愿景就是希望任何设备只要一接上网络,所有在网络上的设备马上就能知道有新设备加入,这些设备彼此之间能互相沟通,更能直接使用或控制它,一切都不需要设定,完全的Plug and Play
1、UPNP开启后能方便智能监控设备直接透传到因特网,无需做烦琐的映射端口设置。
2、UPNP开启后能方便智能网络存储设备与因特网进行数据传输,节省手动设置时间。
3、UPNP开启后能方便在因特网使用ERP、CRM、第三方远程桌面等软件。
4、UPNP开启后能提高AnyChat系统的P2P成功率,节省服务器的带宽。
UPnP是一种对等即插即用网络协议,主要用于视频,音频领域的传输协议,对使用者来说,打开UPnP之后可以增加迅雷等下载软件的下载速度。
提示:UPnP服务开机启动会消耗一点CPU和内存资源。
- 安装必要的包
确保接入互联网,以及配置好安装源,然后执行以下命令:opkg update opkg install miniupnpd - 配置 UPnP 参数
UPnP 的配置参数在 /etc/config/upnp 中。
config upnp 的配置参数表键 值 是否必须设置 说明 enable_natpmp 1 是 开启 NAT-PMP 支持, 1 表示开启 enable_upnp 1 是 开启 UPnP 支持,1 表示开启 secure_mode 1 是 安全模式,客户端只能给自己转发一个输入口 log_output 0 是 日志输出级别,0表示不输出日志,如果设置了将输出到syslog中 download 数字 是 允许来自wan口的数据输入带宽,单位是(KB/秒)。 upload 数字 是 允许输出到wan口的数据输入带宽,单位是(KB/秒)。 external_iface 字符串 是 外网的设备域,默认是wan internal_iface 字符串 是 内网的设备域,默认是lan port 数字 是 监听的端口 upnp_lease_file 文件名 是 upnp客户端租用记录文件
config perm_rule 许可设置配置参数表:键 值 是否必须设置 说明 action 字符串 是 设置是否许可:allow 许可, deny 不许可 ext_ports 字符串 是 外部端口范围 int_addr 字符串 是 ip 地址,如果 0.0.0.0/0 表示全部 int_ports 字符串 是 内部端口范围 - 设置 miniupnpd 开机启动
设置完毕以后,下次开机即可驻留内存,使用/etc/init.d/miniupnpd start可以临时开启一次看看etc/init.d/miniupnpd enable - 检测是否有效开启
如果查看到监听的端口,表示开启完成。netstat -alnp|grep miniupnpd
miniupnpd的配置文件:/etc/config/upnpd
config upnpd config option external_iface 'wan' option internal_iface 'lan' option port '5000' option clean_ruleset_threshold '20' option clean_ruleset_interval '600' option uuid '0e324200-1a6d-4e68-ba8a-35c108fe69a6' option enabled '1' option download '30720' option upload '10240' option upnp_lease_file '/var/run/miniupnpd.leases' 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'
真正启动的配置文件/var/etc/miniupnpd.conf,但openwrt中/var linked到了/tmp,所以是/tmp/etc/miniupnpd.conf
ext_ifname=eth0 listening_ip=br-lan port=5000 enable_natpmp=yes enable_upnp=yes secure_mode=yes pcp_allow_thirdparty=no system_uptime=yes lease_file=/var/run/miniupnpd.leases bitrate_down=251658240 bitrate_up=83886080 clean_ruleset_threshold=20 clean_ruleset_interval=600 uuid=0e324200-1a6d-4e68-ba8a-35c108fe69a6 allow 1024-65535 0.0.0.0/0 1024-65535 deny 0-65535 0.0.0.0/0 0-65535
关于其他人说的 卸载负平衡MWAN3就可以使用 因为我本身没有这个软 我没有去下载也没有去卸载 如果有这个软件可以尝试不卸载的情况下去方式我的方式修改!
Tue Jun 13 11:02:56 2023 daemon.err miniupnpd[25142]: could not open lease file: /var/run/miniupnpd.leases Tue Jun 13 11:02:56 2023 daemon.notice miniupnpd[25142]: HTTP listening on port 5000 Tue Jun 13 11:02:56 2023 daemon.warn miniupnpd[25142]: no HTTP IPv6 address, disabling IPv6 Tue Jun 13 11:02:56 2023 daemon.notice miniupnpd[25142]: Listening for NAT-PMP/PCP traffic on port 5351 Tue Jun 13 11:02:59 2023 daemon.warn miniupnpd[25142]: SSDP packet sender 10.18.18.221:49312 not from a LAN, ignoring
查看进行运行情况
root@gl-ar300m:~# ps | grep upnpd 25142 root 1296 S /usr/sbin/miniupnpd -f /var/etc/miniupnpd.conf 26252 root 1284 S grep upnpd root@gl-ar300m:~# root@gl-ar300m:~# netstat -alnp | grep upnpd tcp 0 0 :::5000 :::* LISTEN 25142/miniupnpd udp 0 0 0.0.0.0:1900 0.0.0.0:* 25142/miniupnpd udp 0 0 192.168.11.1:43709 0.0.0.0:* 25142/miniupnpd udp 0 0 192.168.11.1:5351 0.0.0.0:* 25142/miniupnpd unix 2 [ ] DGRAM 166408 25142/miniupnpd root@gl-ar300m:~#
查看防火墙规则
链 zone_wan_forward (引用: 1) 数据包 流量 对象 协议 入口 出口 源地址 目标地址 选项 0 0.00 B MINIUPNPD all * * 0.0.0.0/0 0.0.0.0/0 - 链 zone_wan_postrouting (引用: 1) 数据包 流量 对象 协议 入口 出口 源地址 目标地址 选项 113 7.75 KB MINIUPNPD-POSTROUTING all * * 0.0.0.0/0 0.0.0.0/0 - 链 zone_wan_prerouting (引用: 1) 数据包 流量 对象 协议 入口 出口 源地址 目标地址 选项 3610793 242.58 MB MINIUPNPD all * * 0.0.0.0/0 0.0.0.0/0 -
root@gl-ar300m:~# iptables -t filter -nvL --line-numbers | grep -i upnpd Chain MINIUPNPD (1 references) 1 0 0 MINIUPNPD all -- * * 0.0.0.0/0 0.0.0.0/0 root@gl-ar300m:~# root@gl-ar300m:~# iptables -t nat -nvL --line-numbers | grep -i upnpd Chain MINIUPNPD (1 references) Chain MINIUPNPD-POSTROUTING (1 references) 1 181 12495 MINIUPNPD-POSTROUTING all -- * * 0.0.0.0/0 0.0.0.0/0 1 4994K 352M MINIUPNPD all -- * * 0.0.0.0/0 0.0.0.0/0 root@gl-ar300m:~#
root@gl-ar300m:~# iptables -t filter --line-numbers -nvL MINIUPNPD Chain MINIUPNPD (1 references) num pkts bytes target prot opt in out source destination root@gl-ar300m:~# root@gl-ar300m:~# root@gl-ar300m:~# iptables -t nat --line-numbers -nvL MINIUPNPD Chain MINIUPNPD (1 references) num pkts bytes target prot opt in out source destination root@gl-ar300m:~# root@gl-ar300m:~# iptables -t nat --line-numbers -nvL MINIUPNPD-POSTROUTING Chain MINIUPNPD-POSTROUTING (1 references) num pkts bytes target prot opt in out source destination root@gl-ar300m:~#




在某些情况下,可以使用此工具测试路由器的UPNP功能是否开启的。

具体对应参数看下面说明:
1、操作系统是否支持UPnP功能:Windows XP,Vista,Windows 7均支持UPnP功能,Windows 2003不支持UPnP功能
2、SSDP服务是否已经启动:SSDP在Windows服务里名字是“SSDP Discovery Service”,如此项FAILED,请使用Windows控制面包→管理工具→服务 来启动该服务
3、SSDP服务的启用类型为自动:如果此项FAILED,请使用Windows控制面包→管理工具→服务 来更改SSDP的启动类型。
4、UPnP Host服务是否已经启动:UPnP Host在Windows服务里的名字是“Universal Plug and Play Device Host”如果此项FAILED,请使用Windows控制面包→管理工具→服务 来启动来启动该服务
5、UPnP Host服务的启用类型为自动:如果此项FAILED,请使用Windows控制面包→管理工具→服务 来更改UPnP Host的启动类型。
6、Windows 防火墙的UPnP框架允许例外:如果此项FAILED,请在Windows防火墙的例外选项里把UPnP框架的钩给勾上。
7、获取本机网卡IP:如果此项FAILED,请检查UPnP组件是否已经安装,如没有请按下面的图片操作。同时关闭其他防火墙试一下。
8、获取路由器外网IP:如果此项FAILED,请检查路由器UPnP服务是否开启,WAN口是否已经联机。
upnp只在你自己的一层路由器上起作用,在运营商那里是不起作用的。
你得去向运营商要公网IP。你本身网络环境是内网,upnp是无法穿透到公网的。

Initializing CUPnPFinderOrg
Start diccovery CUPnPFinderOrg
Found device
Initializing CUPnPFinder
Start diccovery CUPnPFinder
Found device
Started ACAT mapper succesfully
Initiating morph upnp
UPnP: Initiated on 192.168.11.124:61909, searching devices...
UPnP: New compatible device is found [OpenWRT router]
bound to 192.168.11.124:50001.
Internet Gateway Device Detected.
Successfully subscribed to service urn:schemas-upnp-org:service:WANIPConnection:1, absEventSubURL: http://192.168.11.1:5000/evt/IPConn.
Internet Gateway Device Detected.
Error: m_UpnpSendAction: Error code :'402', Error description :'Invalid Args'.
Error: GetStateVariable("ConnectionType"): in a call to m_UpnpGetServiceVarStatus: Error code :'404', Error description :'Invalid Var'.
Error: GetStateVariable("PossibleConnectionTypes"): in a call to m_UpnpGetServiceVarStatus: Error code :'404', Error description :'Invalid Var'.
Error: GetStateVariable("Uptime"): in a call to m_UpnpGetServiceVarStatus: Error code :'404', Error description :'Invalid Var'.
Error: GetStateVariable("LastConnectionError"): in a call to m_UpnpGetServiceVarStatus: Error code :'404', Error description :'Invalid Var'.
Error: GetStateVariable("RSIPAvailable"): in a call to m_UpnpGetServiceVarStatus: Error code :'404', Error description :'Invalid Var'.
Error: GetStateVariable("NATEnabled"): in a call to m_UpnpGetServiceVarStatus: Error code :'404', Error description :'Invalid Var'.
Error: GetStateVariable("ExternalIPAddress"): in a call to m_UpnpGetServiceVarStatus: Error code :'404', Error description :'Invalid Var'.
Error: GetStateVariable("PortMappingLeaseDuration"): in a call to m_UpnpGetServiceVarStatus: Error code :'404', Error description :'Invalid Var'.
Started ACAT mapper succesfully
upnpc : miniupnpc library test client. (c) 2006-2008 Thomas Bernard
Found valid IGD : http://192.168.11.1:5000/ctl/IPConn
Local LAN ip address : 192.168.11.124
Miniupnp mapper succesfully
starting a tcp port reply server at port 2205
starting a tcp port reply server at port 2202
starting a tcp port reply server at port 2203
starting a tcp port reply server at port 2204
starting a tcp port reply server at port 2206
starting a tcp port reply server at port 2209
Trying to setup port forwardings with UPnP...
Found UPnP device: WANConnectionDevice (ChildLevel: 0, UID: uuid:0e324200-1a6d-4e68-ba8a-35c108fe69a8)
Cancel Asyncfinder.
Trying to setup port forwardings with UPnP...
Found UPnP device: WANConnectionDevice (ChildLevel: 0, UID: uuid:0e324200-1a6d-4e68-ba8a-35c108fe69a8)
Cancel Asyncfinder.
UPnP: New compatible device is found [OpenWRT router]
UPnP: Added embedded device: WANDevice [urn:schemas-upnp-org:device:WANDevice:1]
UPnP: Added embedded device: WANConnectionDevice [urn:schemas-upnp-org:device:WANConnectionDevice:1]
UPnP: Added service: urn:schemas-upnp-org:service:WANIPConnection:1 (Enabled)
UPnP: Subscribed with service "urn:schemas-upnp-org:service:WANIPConnection:1" [SID=uuid:dc0ccd10-0000-1000-a5f4-d41d8cd98f00]
UPnP: New ConnectionStatus for "urn:schemas-upnp-org:service:WANIPConnection:1" (Connected) [SID=uuid:dc0ccd10-0000-1000-a5f4-d41d8cd98f00]
UPnP: New ConnectionStatus for "urn:schemas-upnp-org:service:WANIPConnection:1" (Connected) [SID=uuid:dc0ccd10-0000-1000-a5f4-d41d8cd98f00]
UPnP: Failed to get specific port mapping entry "upnptest (TCP Port) [TCP: 2203]". [Invalid Args (402)]
UPnP: Failed to add port mapping "upnptest (TCP Port) [TCP: 2203]" [urn:schemas-upnp-org:service:WANIPConnection:1] [Invalid Args (402)]
UPnP: Failed to get specific port mapping entry "upnptest (TCP Port) [TCP: 2203]". [Invalid Args (402)]
UPnP: Failed to delete port mapping "upnptest (TCP Port) [TCP: 2203]". [urn:schemas-upnp-org:service:WANIPConnection:1] [Invalid Args (402)]
UPnP: Device removed: WANConnectionDevice
UPnP: Device removed: WANDevice
UPnP: Device removed: OpenWRT router
UPNP_DISCOVERY_SEARCH_RESULT: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
deviceList: 0 devices.
Service:
serviceType: urn:schemas-upnp-org:service:WANIPConnection:1
serviceId: urn:upnp-org:serviceId:WANIPConn1
SCPDURL: /WANIPCn.xml
absSCPDURL: http://192.168.11.1:5000/WANIPCn.xml
controlURL: /ctl/IPConn
absControlURL: http://192.168.11.1:5000/ctl/IPConn
eventSubURL: /evt/IPConn
absEventSubURL: http://192.168.11.1:5000/evt/IPConn
WAN Service Detected: 'urn:schemas-upnp-org:service:WANIPConnection:1'.
Argument:
name: NewConnectionType
direction: in
retval: 0
relatedStateVariable: ConnectionType
argumentList: 1 arguments.
Action:
name: SetConnectionType
Argument:
name: NewConnectionType
direction: out
retval: 0
relatedStateVariable: ConnectionType
Argument:
name: NewPossibleConnectionTypes
direction: out
retval: 0
relatedStateVariable: PossibleConnectionTypes
argumentList: 2 arguments.
Action:
name: GetConnectionTypeInfo
argumentList: 0 arguments.
Action:
name: RequestConnection
argumentList: 0 arguments.
Action:
name: ForceTermination
Argument:
name: NewConnectionStatus
direction: out
retval: 0
relatedStateVariable: ConnectionStatus
Argument:
name: NewLastConnectionError
direction: out
retval: 0
relatedStateVariable: LastConnectionError
Argument:
name: NewUptime
direction: out
retval: 0
relatedStateVariable: Uptime
argumentList: 3 arguments.
Action:
name: GetStatusInfo
Argument:
name: NewRSIPAvailable
direction: out
retval: 0
relatedStateVariable: RSIPAvailable
Argument:
name: NewNATEnabled
direction: out
retval: 0
relatedStateVariable: NATEnabled
argumentList: 2 arguments.
Action:
name: GetNATRSIPStatus
Argument:
name: NewPortMappingIndex
direction: in
retval: 0
relatedStateVariable: PortMappingNumberOfEntries
Argument:
name: NewRemoteHost
direction: out
retval: 0
relatedStateVariable: RemoteHost
Argument:
name: NewExternalPort
direction: out
retval: 0
relatedStateVariable: ExternalPort
Argument:
name: NewProtocol
direction: out
retval: 0
relatedStateVariable: PortMappingProtocol
Argument:
name: NewInternalPort
direction: out
retval: 0
relatedStateVariable: InternalPort
Argument:
name: NewInternalClient
direction: out
retval: 0
relatedStateVariable: InternalClient
Argument:
name: NewEnabled
direction: out
retval: 0
relatedStateVariable: PortMappingEnabled
Argument:
name: NewPortMappingDescription
direction: out
retval: 0
relatedStateVariable: PortMappingDescription
Argument:
name: NewLeaseDuration
direction: out
retval: 0
relatedStateVariable: PortMappingLeaseDuration
argumentList: 9 arguments.
Action:
name: GetGenericPortMappingEntry
Argument:
name: NewRemoteHost
direction: in
retval: 0
relatedStateVariable: RemoteHost
Argument:
name: NewExternalPort
direction: in
retval: 0
relatedStateVariable: ExternalPort
Argument:
name: NewProtocol
direction: in
retval: 0
relatedStateVariable: PortMappingProtocol
Argument:
name: NewInternalPort
direction: out
retval: 0
relatedStateVariable: InternalPort
Argument:
name: NewInternalClient
direction: out
retval: 0
relatedStateVariable: InternalClient
Argument:
name: NewEnabled
direction: out
retval: 0
relatedStateVariable: PortMappingEnabled
Argument:
name: NewPortMappingDescription
direction: out
retval: 0
relatedStateVariable: PortMappingDescription
Argument:
name: NewLeaseDuration
direction: out
retval: 0
relatedStateVariable: PortMappingLeaseDuration
argumentList: 8 arguments.
Action:
name: GetSpecificPortMappingEntry
Argument:
name: NewRemoteHost
direction: in
retval: 0
relatedStateVariable: RemoteHost
Argument:
name: NewExternalPort
direction: in
retval: 0
relatedStateVariable: ExternalPort
Argument:
name: NewProtocol
direction: in
retval: 0
relatedStateVariable: PortMappingProtocol
Argument:
name: NewInternalPort
direction: in
retval: 0
relatedStateVariable: InternalPort
Argument:
name: NewInternalClient
direction: in
retval: 0
relatedStateVariable: InternalClient
Argument:
name: NewEnabled
direction: in
retval: 0
relatedStateVariable: PortMappingEnabled
Argument:
name: NewPortMappingDescription
direction: in
retval: 0
relatedStateVariable: PortMappingDescription
Argument:
name: NewLeaseDuration
direction: in
retval: 0
relatedStateVariable: PortMappingLeaseDuration
argumentList: 8 arguments.
Action:
name: AddPortMapping
Argument:
name: NewRemoteHost
direction: in
retval: 0
relatedStateVariable: RemoteHost
Argument:
name: NewExternalPort
direction: in
retval: 0
relatedStateVariable: ExternalPort
Argument:
name: NewProtocol
direction: in
retval: 0
relatedStateVariable: PortMappingProtocol
argumentList: 3 arguments.
Action:
name: DeletePortMapping
Argument:
name: NewExternalIPAddress
direction: out
retval: 0
relatedStateVariable: ExternalIPAddress
argumentList: 1 arguments.
Action:
name: GetExternalIPAddress
actionList: 11 actions.
allowedValueList: 0 allowedValues.
StateVariable:
name: ConnectionType
dataType: string
defaultValue: IP_Routed
sendEvents: no
AllowedValue:
allowedValue: Unconfigured
AllowedValue:
allowedValue: IP_Routed
AllowedValue:
allowedValue: IP_Bridged
allowedValueList: 3 allowedValues.
StateVariable:
name: PossibleConnectionTypes
dataType: string
defaultValue:
sendEvents: yes
AllowedValue:
allowedValue: Unconfigured
AllowedValue:
allowedValue: Connecting
AllowedValue:
allowedValue: Connected
AllowedValue:
allowedValue: PendingDisconnect
AllowedValue:
allowedValue: Disconnecting
AllowedValue:
allowedValue: Disconnected
allowedValueList: 6 allowedValues.
StateVariable:
name: ConnectionStatus
dataType: string
defaultValue: Unconfigured
sendEvents: yes
allowedValueList: 0 allowedValues.
StateVariable:
name: Uptime
dataType: ui4
defaultValue:
sendEvents: no
AllowedValue:
allowedValue: ERROR_NONE
allowedValueList: 1 allowedValues.
StateVariable:
name: LastConnectionError
dataType: string
defaultValue: ERROR_NONE
sendEvents: no
allowedValueList: 0 allowedValues.
StateVariable:
name: RSIPAvailable
dataType: boolean
defaultValue: 0
sendEvents: no
allowedValueList: 0 allowedValues.
StateVariable:
name: NATEnabled
dataType: boolean
defaultValue: 1
sendEvents: no
allowedValueList: 0 allowedValues.
StateVariable:
name: ExternalIPAddress
dataType: string
defaultValue:
sendEvents: yes
allowedValueList: 0 allowedValues.
StateVariable:
name: PortMappingNumberOfEntries
dataType: ui2
defaultValue:
sendEvents: yes
allowedValueList: 0 allowedValues.
StateVariable:
name: PortMappingEnabled
dataType: boolean
defaultValue:
sendEvents: no
allowedValueList: 0 allowedValues.
StateVariable:
name: PortMappingLeaseDuration
dataType: ui4
defaultValue: 3600
sendEvents: no
allowedValueList: 0 allowedValues.
StateVariable:
name: RemoteHost
dataType: string
defaultValue:
sendEvents: no
allowedValueList: 0 allowedValues.
StateVariable:
name: ExternalPort
dataType: ui2
defaultValue:
sendEvents: no
allowedValueList: 0 allowedValues.
StateVariable:
name: InternalPort
dataType: ui2
defaultValue:
sendEvents: no
AllowedValue:
allowedValue: TCP
AllowedValue:
allowedValue: UDP
allowedValueList: 2 allowedValues.
StateVariable:
name: PortMappingProtocol
dataType: string
defaultValue:
sendEvents: no
allowedValueList: 0 allowedValues.
StateVariable:
name: InternalClient
dataType: string
defaultValue:
sendEvents: no
allowedValueList: 0 allowedValues.
StateVariable:
name: PortMappingDescription
dataType: string
defaultValue:
sendEvents: no
serviceStateTable: 17 stateVariables.
serviceList: 1 services.
Device:
friendlyName: WANConnectionDevice
deviceType: urn:schemas-upnp-org:device:WANConnectionDevice:1
manufacturer: MiniUPnP
manufacturerURL: http://miniupnp.free.fr/
modelDescription: MiniUPnP daemon
modelName: MiniUPnPd
modelNumber: 20171017
modelURL: http://miniupnp.free.fr/
serialNumber: 00000000
UDN: uuid:0e324200-1a6d-4e68-ba8a-35c108fe69a8
UPC: 000000000000
presentationURL: http://192.168.11.1:5000/rootDesc.xml
deviceList: 1 devices.
Service:
serviceType: urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1
serviceId: urn:upnp-org:serviceId:WANCommonIFC1
SCPDURL: /WANCfg.xml
absSCPDURL: http://192.168.11.1:5000/WANCfg.xml
controlURL: /ctl/CmnIfCfg
absControlURL: http://192.168.11.1:5000/ctl/CmnIfCfg
eventSubURL: /evt/CmnIfCfg
absEventSubURL: http://192.168.11.1:5000/evt/CmnIfCfg
Uninteresting service detected: 'urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1'. Ignoring.
serviceList: 1 services.
Device:
friendlyName: WANDevice
deviceType: urn:schemas-upnp-org:device:WANDevice:1
manufacturer: MiniUPnP
manufacturerURL: http://miniupnp.free.fr/
modelDescription: WAN Device
modelName: WAN Device
modelNumber: 20171017
modelURL: http://miniupnp.free.fr/
serialNumber: 00000000
UDN: uuid:0e324200-1a6d-4e68-ba8a-35c108fe69a7
UPC: 000000000000
presentationURL: http://192.168.11.1:5000/rootDesc.xml
deviceList: 1 devices.
Service:
serviceType: urn:schemas-upnp-org:service:Layer3Forwarding:1
serviceId: urn:upnp-org:serviceId:L3Forwarding1
SCPDURL: /L3F.xml
absSCPDURL: http://192.168.11.1:5000/L3F.xml
controlURL: /ctl/L3F
absControlURL: http://192.168.11.1:5000/ctl/L3F
eventSubURL: /evt/L3F
absEventSubURL: http://192.168.11.1:5000/evt/L3F
Uninteresting service detected: 'urn:schemas-upnp-org:service:Layer3Forwarding:1'. Ignoring.
serviceList: 1 services.
Device:
friendlyName: OpenWRT router
deviceType: urn:schemas-upnp-org:device:InternetGatewayDevice:1
manufacturer: OpenWRT
manufacturerURL: http://www.openwrt.org/
modelDescription: OpenWRT router
modelName: OpenWRT router
modelNumber: 1
modelURL: http://www.openwrt.org/
serialNumber: 00000000
UDN: uuid:0e324200-1a6d-4e68-ba8a-35c108fe69a6
UPC:
presentationURL: http://192.168.11.1/
Root Device:
URLBase:
Fixed URLBase: http://192.168.11.1:5000/rootDesc.xml
location: http://192.168.11.1:5000/rootDesc.xml
expires: 120
UPNP_EVENT_RECEIVED:
SID: uuid:f752eaf0-0000-1000-a5f4-d41d8cd98f00
Key: 0
Property list:
PossibleConnectionTypes='IP_Routed'
ConnectionStatus='Connected'
ExternalIPAddress='192.168.22.37'
PortMappingNumberOfEntries='1'
UPNP_DISCOVERY_SEARCH_RESULT: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
GetStateVariable: PortMappingNumberOfEntries='1'.
AddPortMapping(NewRemoteHost='', NewExternalPort='2204', NewProtocol='TCP', NewInternalPort='2204', NewInternalClient='192.168.11.124', NewEnabled='1', NewPortMappingDescription='aMule', NewLeaseDuration='0')
GetStateVariable: ConnectionStatus='Connected'.
GetStateVariable: PortMappingNumberOfEntries='1'.
GetStatusInfo()
Response:
NewConnectionStatus='Connected'
NewLastConnectionError='ERROR_NONE'
NewUptime='18719'
CUPnPControlPoint::DeletePortMappings: m_ActivePortMappingsMap.size() == 1
GetStateVariable: PortMappingNumberOfEntries='1'.
UPNP_DISCOVERY_SEARCH_TIMEOUT.
Started ssdp discover
LOCATION: http://192.168.11.1:5000/rootDesc.xml
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE: Retrieving device description from http://192.168.11.1:5000/rootDesc.xml.
Response:
Invoking adding portmap
Inokecommand on:http://192.168.11.1:5000/ctl/IPConn
UPNP_EVENT_RECEIVED:
SID: uuid:f752eaf0-0000-1000-a5f4-d41d8cd98f00
Key: 1
Property list:
PossibleConnectionTypes='IP_Routed'
ConnectionStatus='Connected'
ExternalIPAddress='192.168.22.37'
PortMappingNumberOfEntries='2'
Added UPnP NAT Support: (TCP Port) NAT ROUTER/FIREWALL:2206 -> 192.168.11.124:2206
Inokecommand on:http://192.168.11.1:5000/ctl/IPConn
UPNP_EVENT_RECEIVED:
SID: uuid:f752eaf0-0000-1000-a5f4-d41d8cd98f00
Key: 2
Property list:
PossibleConnectionTypes='IP_Routed'
ConnectionStatus='Connected'
ExternalIPAddress='192.168.22.37'
PortMappingNumberOfEntries='1'
Go to http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
for more information.
List of UPNP devices found on the network :
desc: http://192.168.11.1:5000/rootDesc.xml
st: urn:schemas-upnp-org:device:InternetGatewayDevice:1
ExternalIPAddress = 192.168.22.37
UPNP_EVENT_RECEIVED:
SID: uuid:f752eaf0-0000-1000-a5f4-d41d8cd98f00
Key: 3
Property list:
PossibleConnectionTypes='IP_Routed'
ConnectionStatus='Connected'
ExternalIPAddress='192.168.22.37'
PortMappingNumberOfEntries='2'
InternalIP:Port = 192.168.11.124:2209
external 192.168.22.37:2209 is redirected to internal 192.168.11.124:2209
============= End

浙公网安备 33010602011771号