244 lines
No EOL
46 KiB
Text
244 lines
No EOL
46 KiB
Text
{
|
|
"router_address": "10.1.10.1",
|
|
"client_address": "10.1.10.206",
|
|
"port": 49152,
|
|
"gateway_dict": {
|
|
"server": "Linux/3.14.28-Prod_17.2, UPnP/1.0, Portable SDK for UPnP devices/1.6.22",
|
|
"urlBase": "http://10.1.10.1:49152",
|
|
"location": "http://10.1.10.1:49152/IGDdevicedesc_brlan0.xml",
|
|
"specVersion": {
|
|
"major": "1",
|
|
"minor": "0"
|
|
},
|
|
"usn": "uuid:ebf5a0a0-1dd1-11b2-a90f-603d266f9915::urn:schemas-upnp-org:device:InternetGatewayDevice:1",
|
|
"urn": "urn:schemas-upnp-org:device:InternetGatewayDevice:1"
|
|
},
|
|
"expected_devices": [
|
|
{
|
|
"cache_control": "max-age=1800",
|
|
"location": "http://10.1.10.1:49152/IGDdevicedesc_brlan0.xml",
|
|
"server": "Linux/3.14.28-Prod_17.2, UPnP/1.0, Portable SDK for UPnP devices/1.6.22",
|
|
"st": "urn:schemas-upnp-org:device:InternetGatewayDevice:1",
|
|
"usn": "uuid:ebf5a0a0-1dd1-11b2-a90f-603d266f9915::urn:schemas-upnp-org:device:InternetGatewayDevice:1"
|
|
}
|
|
],
|
|
"commands": {
|
|
"available": {
|
|
"SetDefaultConnectionService": "urn:schemas-upnp-org:service:Layer3Forwarding:1",
|
|
"GetDefaultConnectionService": "urn:schemas-upnp-org:service:Layer3Forwarding:1",
|
|
"GetCommonLinkProperties": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1",
|
|
"GetTotalBytesSent": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1",
|
|
"GetTotalBytesReceived": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1",
|
|
"GetTotalPacketsSent": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1",
|
|
"GetTotalPacketsReceived": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1",
|
|
"SetConnectionType": "urn:schemas-upnp-org:service:WANIPConnection:1",
|
|
"GetConnectionTypeInfo": "urn:schemas-upnp-org:service:WANIPConnection:1",
|
|
"RequestConnection": "urn:schemas-upnp-org:service:WANIPConnection:1",
|
|
"ForceTermination": "urn:schemas-upnp-org:service:WANIPConnection:1",
|
|
"GetStatusInfo": "urn:schemas-upnp-org:service:WANIPConnection:1",
|
|
"GetNATRSIPStatus": "urn:schemas-upnp-org:service:WANIPConnection:1",
|
|
"GetGenericPortMappingEntry": "urn:schemas-upnp-org:service:WANIPConnection:1",
|
|
"GetSpecificPortMappingEntry": "urn:schemas-upnp-org:service:WANIPConnection:1",
|
|
"AddPortMapping": "urn:schemas-upnp-org:service:WANIPConnection:1",
|
|
"DeletePortMapping": "urn:schemas-upnp-org:service:WANIPConnection:1",
|
|
"GetExternalIPAddress": "urn:schemas-upnp-org:service:WANIPConnection:1"
|
|
},
|
|
"failed": {
|
|
"urn:schemas-upnp-org:service:WANIPConnection:1": [
|
|
"RequestTermination"
|
|
]
|
|
}
|
|
},
|
|
"ssdp": {
|
|
"lan_address": "10.1.10.206",
|
|
"router_address": "10.1.10.1",
|
|
"sent": [
|
|
"M-SEARCH * HTTP/1.1\r\nHOST: 239.255.255.250:1900\r\nST: urn:schemas-upnp-org:device:InternetGatewayDevice:1\r\nMAN: \"ssdp:discover\"\r\nMX: 1\r\n\r\n"
|
|
],
|
|
"received": [
|
|
[
|
|
[
|
|
"10.1.10.1",
|
|
48344
|
|
],
|
|
"HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age=1800\r\nDATE: Thu, 04 Oct 2018 22:59:40 GMT\r\nEXT:\r\nLOCATION: http://10.1.10.1:49152/IGDdevicedesc_brlan0.xml\r\nOPT: \"http://schemas.upnp.org/upnp/1/0/\"; ns=01\r\n01-NLS: 51849aee-c34d-11e8-9b33-d597ca3721d9\r\nSERVER: Linux/3.14.28-Prod_17.2, UPnP/1.0, Portable SDK for UPnP devices/1.6.22\r\nX-User-Agent: redsonic\r\nST: urn:schemas-upnp-org:device:InternetGatewayDevice:1\r\nUSN: uuid:ebf5a0a0-1dd1-11b2-a90f-603d266f9915::urn:schemas-upnp-org:device:InternetGatewayDevice:1\r\n\r\n"
|
|
]
|
|
]
|
|
},
|
|
"scpd": {
|
|
"GET": {
|
|
"IGDdevicedesc_brlan0.xml": {
|
|
"request": "GET /IGDdevicedesc_brlan0.xml HTTP/1.1\r\nAccept-Encoding: gzip\r\nHost: 10.1.10.1\r\n\r\n",
|
|
"response": "<?xml version=\"1.0\"?>\n<root xmlns=\"urn:schemas-upnp-org:device-1-0\">\n<specVersion>\n<major>1</major>\n<minor>0</minor>\n</specVersion>\n<device>\n<deviceType>urn:schemas-upnp-org:device:InternetGatewayDevice:1</deviceType>\n<friendlyName>CGA4131COM</friendlyName>\n<manufacturer>Cisco</manufacturer>\n<manufacturerURL>http://www.cisco.com/</manufacturerURL>\n<modelDescription>CGA4131COM</modelDescription>\n<modelName>CGA4131COM</modelName>\n<modelNumber>CGA4131COM</modelNumber>\n<modelURL>http://www.cisco.com</modelURL>\n<serialNumber></serialNumber>\n<UDN>uuid:ebf5a0a0-1dd1-11b2-a90f-603d266f9915</UDN>\n<UPC>CGA4131COM</UPC>\n<serviceList>\n<service>\n<serviceType>urn:schemas-upnp-org:service:Layer3Forwarding:1</serviceType>\n<serviceId>urn:upnp-org:serviceId:L3Forwarding1</serviceId>\n<SCPDURL>/Layer3ForwardingSCPD.xml</SCPDURL>\n<controlURL>/upnp/control/Layer3Forwarding</controlURL>\n<eventSubURL>/upnp/event/Layer3Forwarding</eventSubURL>\n</service>\n</serviceList>\n<deviceList>\n<device>\n<deviceType>urn:schemas-upnp-org:device:WANDevice:1</deviceType>\n<friendlyName>WANDevice:1</friendlyName>\n<manufacturer>Cisco</manufacturer>\n<manufacturerURL>http://www.cisco.com/</manufacturerURL>\n<modelDescription>CGA4131COM</modelDescription>\n<modelName>CGA4131COM</modelName>\n<modelNumber>CGA4131COM</modelNumber>\n<modelURL>http://www.cisco.com</modelURL>\n<serialNumber></serialNumber>\n<UDN>uuid:ebf5a0a0-1dd1-11b2-a92f-603d266f9915</UDN>\n<UPC>CGA4131COM</UPC>\n<serviceList>\n<service>\n<serviceType>urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1</serviceType>\n<serviceId>urn:upnp-org:serviceId:WANCommonIFC1</serviceId>\n<SCPDURL>/WANCommonInterfaceConfigSCPD.xml</SCPDURL>\n<controlURL>/upnp/control/WANCommonInterfaceConfig0</controlURL>\n<eventSubURL>/upnp/event/WANCommonInterfaceConfig0</eventSubURL>\n</service>\n</serviceList>\n<deviceList>\n <device>\n <deviceType>urn:schemas-upnp-org:device:WANConnectionDevice:1</deviceType>\n <friendlyName>WANConnectionDevice:1</friendlyName>\n <manufacturer>Cisco</manufacturer>\n <manufacturerURL>http://www.cisco.com/</manufacturerURL>\n <modelDescription>CGA4131COM</modelDescription>\n <modelName>CGA4131COM</modelName>\n <modelNumber>CGA4131COM</modelNumber>\n <modelURL>http://www.cisco.com</modelURL>\n <serialNumber></serialNumber>\n <UDN>uuid:ebf5a0a0-1dd1-11b2-a93f-603d266f9915</UDN>\n <UPC>CGA4131COM</UPC>\n <serviceList>\n <service>\n <serviceType>urn:schemas-upnp-org:service:WANIPConnection:1</serviceType>\n <serviceId>urn:upnp-org:serviceId:WANIPConn1</serviceId>\n <SCPDURL>/WANIPConnectionServiceSCPD.xml</SCPDURL>\n <controlURL>/upnp/control/WANIPConnection0</controlURL>\n <eventSubURL>/upnp/event/WANIPConnection0</eventSubURL>\n </service>\n </serviceList>\n </device>\n</deviceList>\n</device>\n</deviceList>\n<presentationURL>http://10.1.10.1/</presentationURL></device>\n</root>"
|
|
},
|
|
"Layer3ForwardingSCPD.xml": {
|
|
"request": "GET /Layer3ForwardingSCPD.xml HTTP/1.1\r\nAccept-Encoding: gzip\r\nHost: 10.1.10.1\r\n\r\n",
|
|
"response": "<?xml version=\"1.0\"?>\n\n<!--\n Copyright [2014] [Cisco Systems, Inc.]\n\n Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n-->\n\n<scpd xmlns=\"urn:schemas-upnp-org:service-1-0\">\n\t<specVersion>\n\t\t<major>1</major>\n\t\t<minor>0</minor>\n\t</specVersion>\n\t<actionList>\n\t\t<action>\n\t\t<name>SetDefaultConnectionService</name>\n\t\t\t<argumentList>\n\t\t\t\t<argument>\n\t\t\t\t\t<name>NewDefaultConnectionService</name>\n\t\t\t\t\t<direction>in</direction>\n\t\t\t\t\t<relatedStateVariable>DefaultConnectionService</relatedStateVariable>\n\t\t\t\t</argument>\n\t\t\t</argumentList>\n\t\t</action>\n\t\t<action>\n\t\t<name>GetDefaultConnectionService</name>\n\t\t\t<argumentList>\n\t\t\t\t<argument>\n\t\t\t\t\t<name>NewDefaultConnectionService</name>\n\t\t\t\t\t<direction>out</direction>\n\t\t\t\t\t<relatedStateVariable>DefaultConnectionService</relatedStateVariable>\n\t\t\t\t</argument>\n\t\t\t</argumentList>\n\t\t</action>\n\t</actionList>\n\t<serviceStateTable>\n\t\t<stateVariable sendEvents=\"yes\">\n\t\t\t<name>DefaultConnectionService</name>\n\t\t\t<dataType>string</dataType>\n\t\t</stateVariable>\n\t</serviceStateTable>\n</scpd>"
|
|
},
|
|
"WANCommonInterfaceConfigSCPD.xml": {
|
|
"request": "GET /WANCommonInterfaceConfigSCPD.xml HTTP/1.1\r\nAccept-Encoding: gzip\r\nHost: 10.1.10.1\r\n\r\n",
|
|
"response": "<?xml version=\"1.0\"?>\n\n<!--\n Copyright [2014] [Cisco Systems, Inc.]\n\n Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n-->\n\n<scpd xmlns=\"urn:schemas-upnp-org:service-1-0\">\n\t<specVersion>\n\t\t<major>1</major>\n\t\t<minor>0</minor>\n\t</specVersion>\n\t<actionList>\n\t\t<action>\n\t\t<name>GetCommonLinkProperties</name>\n\t\t\t<argumentList>\n\t\t\t\t<argument>\n\t\t\t\t\t<name>NewWANAccessType</name>\n\t\t\t\t\t<direction>out</direction>\n\t\t\t\t\t<relatedStateVariable>WANAccessType</relatedStateVariable>\n\t\t\t\t</argument>\n\t\t\t\t<argument>\n\t\t\t\t\t<name>NewLayer1UpstreamMaxBitRate</name>\n\t\t\t\t\t<direction>out</direction>\n\t\t\t\t\t<relatedStateVariable>Layer1UpstreamMaxBitRate</relatedStateVariable>\n\t\t\t\t</argument>\n\t\t\t\t<argument>\n\t\t\t\t\t<name>NewLayer1DownstreamMaxBitRate</name>\n\t\t\t\t\t<direction>out</direction>\n\t\t\t\t\t<relatedStateVariable>Layer1DownstreamMaxBitRate</relatedStateVariable>\n\t\t\t\t</argument>\n\t\t\t\t<argument>\n\t\t\t\t\t<name>NewPhysicalLinkStatus</name>\n\t\t\t\t\t<direction>out</direction>\n\t\t\t\t\t<relatedStateVariable>PhysicalLinkStatus</relatedStateVariable>\n\t\t\t\t</argument>\n\t\t\t</argumentList>\n\t\t</action>\n\t\t<action> \n\t\t<name>GetTotalBytesSent</name> \n\t\t\t<argumentList> \n\t\t\t\t<argument> \n\t\t\t\t\t<name>NewTotalBytesSent</name> \n\t\t\t\t\t<direction>out</direction> \n\t\t\t\t\t<relatedStateVariable>TotalBytesSent</relatedStateVariable> \n\t\t\t\t</argument> \n\t\t\t</argumentList> \n\t\t</action> \n\t\t<action> \n\t\t<name>GetTotalBytesReceived</name> \n\t\t\t<argumentList> \n\t\t\t\t<argument> \n\t\t\t\t\t<name>NewTotalBytesReceived</name> \n\t\t\t\t\t<direction>out</direction> \n\t\t\t\t\t<relatedStateVariable>TotalBytesReceived</relatedStateVariable> \n\t\t\t\t</argument> \n\t\t\t</argumentList> \n\t\t</action> \n\t\t<action> \n\t\t<name>GetTotalPacketsSent</name> \n\t\t\t<argumentList> \n\t\t\t\t<argument> \n\t\t\t\t\t<name>NewTotalPacketsSent</name> \n\t\t\t\t\t<direction>out</direction> \n\t\t\t\t\t<relatedStateVariable>TotalPacketsSent</relatedStateVariable> \n\t\t\t\t</argument> \n\t\t\t</argumentList> \n\t\t</action> \n\t\t<action> \n\t\t<name>GetTotalPacketsReceived</name> \n\t\t\t<argumentList> \n\t\t\t\t<argument> \n\t\t\t\t\t<name>NewTotalPacketsReceived</name> \n\t\t\t\t\t<direction>out</direction> \n\t\t\t\t\t<relatedStateVariable>TotalPacketsReceived</relatedStateVariable> \n\t\t\t\t</argument> \n\t\t\t</argumentList> \n\t\t</action> \n\t</actionList>\n\t<serviceStateTable>\n\t\t<stateVariable sendEvents=\"no\">\n\t\t<name>WANAccessType</name>\n\t\t<dataType>string</dataType>\n\t\t\t<allowedValueList>\n\t\t\t\t<allowedValue>DSL</allowedValue>\n\t\t\t\t<allowedValue>POTS</allowedValue>\n\t\t\t\t<allowedValue>Cable</allowedValue>\n\t\t\t\t<allowedValue>Ethernet</allowedValue>\n\t\t\t</allowedValueList>\n\t\t</stateVariable>\n\t\t<stateVariable sendEvents=\"no\">\n\t\t\t<name>Layer1UpstreamMaxBitRate</name>\n\t\t\t<dataType>ui4</dataType>\n\t\t</stateVariable>\n\t\t<stateVariable sendEvents=\"no\">\n\t\t\t<name>Layer1DownstreamMaxBitRate</name>\n\t\t\t<dataType>ui4</dataType>\n\t\t</stateVariable>\n\t\t<stateVariable sendEvents=\"yes\">\n\t\t\t<name>PhysicalLinkStatus</name>\n\t\t\t<dataType>string</dataType>\n\t\t\t\t<allowedValueList>\n\t\t\t\t\t<allowedValue>Up</allowedValue>\n\t\t\t\t\t<allowedValue>Down</allowedValue>\n\t\t\t\t\t<allowedValue>Initializing</allowedValue>\n\t\t\t\t\t<allowedValue>Unavailable</allowedValue>\n\t\t\t\t</allowedValueList>\n\t\t</stateVariable>\n\t\t<stateVariable sendEvents=\"no\"> \n\t\t\t<name>TotalBytesSent</name> \n\t\t\t<dataType>ui4</dataType> \n\t\t</stateVariable> \n\t\t<stateVariable sendEvents=\"no\"> \n\t\t\t<name>TotalBytesReceived</name> \n\t\t\t<dataType>ui4</dataType> \n\t\t</stateVariable> \n\t\t<stateVariable sendEvents=\"no\"> \n\t\t\t<name>TotalPacketsSent</name> \n\t\t\t<dataType>ui4</dataType> \n\t\t</stateVariable> \n\t\t<stateVariable sendEvents=\"no\"> \n\t\t\t<name>TotalPacketsReceived</name> \n\t\t\t<dataType>ui4</dataType> \n\t\t</stateVariable> \n\t</serviceStateTable>\n</scpd>"
|
|
},
|
|
"WANIPConnectionServiceSCPD.xml": {
|
|
"request": "GET /WANIPConnectionServiceSCPD.xml HTTP/1.1\r\nAccept-Encoding: gzip\r\nHost: 10.1.10.1\r\n\r\n",
|
|
"response": "<?xml version=\"1.0\"?>\n\n<!--\n Copyright [2014] [Cisco Systems, Inc.]\n\n Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n-->\n\n<scpd xmlns=\"urn:schemas-upnp-org:service-1-0\">\n<specVersion>\n<major>1</major>\n<minor>0</minor>\n</specVersion>\n<actionList>\n<action>\n<name>SetConnectionType</name>\n<argumentList>\n<argument>\n<name>NewConnectionType</name>\n<direction>in</direction>\n<relatedStateVariable>ConnectionType</relatedStateVariable>\n</argument>\n</argumentList>\n</action>\n<action>\n<name>GetConnectionTypeInfo</name>\n<argumentList>\n<argument>\n<name>NewConnectionType</name>\n<direction>out</direction>\n<relatedStateVariable>ConnectionType</relatedStateVariable>\n</argument>\n<argument>\n<name>NewPossibleConnectionTypes</name>\n<direction>out</direction>\n<relatedStateVariable>PossibleConnectionTypes</relatedStateVariable>\n</argument>\n</argumentList>\n</action>\n<action>\n<name>RequestConnection</name>\n</action>\n<action>\n<name>RequestTermination</name>\n</action>\n<action>\n<name>ForceTermination</name>\n</action>\n<action>\n<name>GetStatusInfo</name>\n<argumentList>\n<argument>\n<name>NewConnectionStatus</name>\n<direction>out</direction>\n<relatedStateVariable>ConnectionStatus</relatedStateVariable>\n</argument>\n<argument>\n<name>NewLastConnectionError</name>\n<direction>out</direction>\n<relatedStateVariable>LastConnectionError</relatedStateVariable>\n</argument>\n<argument>\n<name>NewUptime</name>\n<direction>out</direction>\n<relatedStateVariable>Uptime</relatedStateVariable>\n</argument>\n</argumentList>\n</action>\n<action>\n<name>GetNATRSIPStatus</name>\n<argumentList>\n<argument>\n<name>NewRSIPAvailable</name>\n<direction>out</direction>\n<relatedStateVariable>RSIPAvailable</relatedStateVariable>\n</argument>\n<argument>\n<name>NewNATEnabled</name>\n<direction>out</direction>\n<relatedStateVariable>NATEnabled</relatedStateVariable>\n</argument>\n</argumentList>\n</action>\n<action>\n<name>GetGenericPortMappingEntry</name>\n<argumentList>\n<argument>\n<name>NewPortMappingIndex</name>\n<direction>in</direction>\n<relatedStateVariable>PortMappingNumberOfEntries</relatedStateVariable>\n</argument>\n<argument>\n<name>NewRemoteHost</name>\n<direction>out</direction>\n<relatedStateVariable>RemoteHost</relatedStateVariable>\n</argument>\n<argument>\n<name>NewExternalPort</name>\n<direction>out</direction>\n<relatedStateVariable>ExternalPort</relatedStateVariable>\n</argument>\n<argument>\n<name>NewProtocol</name>\n<direction>out</direction>\n<relatedStateVariable>PortMappingProtocol</relatedStateVariable>\n</argument>\n<argument>\n<name>NewInternalPort</name>\n<direction>out</direction>\n<relatedStateVariable>InternalPort</relatedStateVariable>\n</argument>\n<argument>\n<name>NewInternalClient</name>\n<direction>out</direction>\n<relatedStateVariable>InternalClient</relatedStateVariable>\n</argument>\n<argument>\n<name>NewEnabled</name>\n<direction>out</direction>\n<relatedStateVariable>PortMappingEnabled</relatedStateVariable>\n</argument>\n<argument>\n<name>NewPortMappingDescription</name>\n<direction>out</direction>\n<relatedStateVariable>PortMappingDescription</relatedStateVariable>\n</argument>\n<argument>\n<name>NewLeaseDuration</name>\n<direction>out</direction>\n<relatedStateVariable>PortMappingLeaseDuration</relatedStateVariable>\n</argument>\n</argumentList>\n</action>\n<action>\n<name>GetSpecificPortMappingEntry</name>\n<argumentList>\n<argument>\n<name>NewRemoteHost</name>\n<direction>in</direction>\n<relatedStateVariable>RemoteHost</relatedStateVariable>\n</argument>\n<argument>\n<name>NewExternalPort</name>\n<direction>in</direction>\n<relatedStateVariable>ExternalPort</relatedStateVariable>\n</argument>\n<argument>\n<name>NewProtocol</name>\n<direction>in</direction>\n<relatedStateVariable>PortMappingProtocol</relatedStateVariable>\n</argument>\n<argument>\n<name>NewInternalPort</name>\n<direction>out</direction>\n<relatedStateVariable>InternalPort</relatedStateVariable>\n</argument>\n<argument>\n<name>NewInternalClient</name>\n<direction>out</direction>\n<relatedStateVariable>InternalClient</relatedStateVariable>\n</argument>\n<argument>\n<name>NewEnabled</name>\n<direction>out</direction>\n<relatedStateVariable>PortMappingEnabled</relatedStateVariable>\n</argument>\n<argument>\n<name>NewPortMappingDescription</name>\n<direction>out</direction>\n<relatedStateVariable>PortMappingDescription</relatedStateVariable>\n</argument>\n<argument>\n<name>NewLeaseDuration</name>\n<direction>out</direction>\n<relatedStateVariable>PortMappingLeaseDuration</relatedStateVariable>\n</argument>\n</argumentList>\n</action>\n<action>\n<name>AddPortMapping</name>\n<argumentList>\n<argument>\n<name>NewRemoteHost</name>\n<direction>in</direction>\n<relatedStateVariable>RemoteHost</relatedStateVariable>\n</argument>\n<argument>\n<name>NewExternalPort</name>\n<direction>in</direction>\n<relatedStateVariable>ExternalPort</relatedStateVariable>\n</argument>\n<argument>\n<name>NewProtocol</name>\n<direction>in</direction>\n<relatedStateVariable>PortMappingProtocol</relatedStateVariable>\n</argument>\n<argument>\n<name>NewInternalPort</name>\n<direction>in</direction>\n<relatedStateVariable>InternalPort</relatedStateVariable>\n</argument>\n<argument>\n<name>NewInternalClient</name>\n<direction>in</direction>\n<relatedStateVariable>InternalClient</relatedStateVariable>\n</argument>\n<argument>\n<name>NewEnabled</name>\n<direction>in</direction>\n<relatedStateVariable>PortMappingEnabled</relatedStateVariable>\n</argument>\n<argument>\n<name>NewPortMappingDescription</name>\n<direction>in</direction>\n<relatedStateVariable>PortMappingDescription</relatedStateVariable>\n</argument>\n<argument>\n<name>NewLeaseDuration</name>\n<direction>in</direction>\n<relatedStateVariable>PortMappingLeaseDuration</relatedStateVariable>\n</argument>\n</argumentList>\n</action>\n<action>\n<name>DeletePortMapping</name>\n<argumentList>\n<argument>\n<name>NewRemoteHost</name>\n<direction>in</direction>\n<relatedStateVariable>RemoteHost</relatedStateVariable>\n</argument>\n<argument>\n<name>NewExternalPort</name>\n<direction>in</direction>\n<relatedStateVariable>ExternalPort</relatedStateVariable>\n</argument>\n<argument>\n<name>NewProtocol</name>\n<direction>in</direction>\n<relatedStateVariable>PortMappingProtocol</relatedStateVariable>\n</argument>\n</argumentList>\n</action>\n<action>\n<name>GetExternalIPAddress</name>\n<argumentList>\n<argument>\n<name>NewExternalIPAddress</name>\n<direction>out</direction>\n<relatedStateVariable>ExternalIPAddress</relatedStateVariable>\n</argument>\n</argumentList>\n</action>\n</actionList>\n<serviceStateTable>\n<stateVariable sendEvents=\"no\">\n<name>ConnectionType</name>\n<dataType>string</dataType>\n<allowedValueList>\n<allowedValue>Unconfigured</allowedValue>\n<allowedValue>IP_Routed</allowedValue>\n<allowedValue>IP_Bridged</allowedValue>\n</allowedValueList>\n<defaultValue>IP_Routed</defaultValue>\n</stateVariable>\n<stateVariable sendEvents=\"yes\">\n<name>PossibleConnectionTypes</name>\n<dataType>string</dataType>\n</stateVariable>\n<stateVariable sendEvents=\"yes\">\n<name>ConnectionStatus</name>\n<dataType>string</dataType>\n<allowedValueList>\n<allowedValue>Unconfigured</allowedValue>\n<allowedValue>Connecting</allowedValue>\n<allowedValue>Connected</allowedValue>\n<allowedValue>PendingDisconnect</allowedValue>\n<allowedValue>Disconnecting</allowedValue>\n<allowedValue>Disconnected</allowedValue>\n</allowedValueList>\n</stateVariable>\n<stateVariable sendEvents=\"no\">\n<name>Uptime</name>\n<dataType>ui4</dataType>\n</stateVariable>\n<stateVariable sendEvents=\"no\">\n<name>LastConnectionError</name>\n<dataType>string</dataType>\n<allowedValueList>\n<allowedValue>ERROR_NONE</allowedValue>\n</allowedValueList>\n</stateVariable>\n<stateVariable sendEvents=\"no\">\n<name>RSIPAvailable</name>\n<dataType>boolean</dataType>\n</stateVariable>\n<stateVariable sendEvents=\"no\">\n<name>NATEnabled</name>\n<dataType>boolean</dataType>\n</stateVariable>\n<stateVariable sendEvents=\"yes\">\n<name>ExternalIPAddress</name>\n<dataType>string</dataType>\n</stateVariable>\n<stateVariable sendEvents=\"yes\">\n<name>PortMappingNumberOfEntries</name>\n<dataType>ui2</dataType>\n</stateVariable>\n<stateVariable sendEvents=\"no\">\n<name>PortMappingEnabled</name>\n<dataType>boolean</dataType>\n</stateVariable>\n<stateVariable sendEvents=\"no\">\n<name>PortMappingLeaseDuration</name>\n<dataType>ui4</dataType>\n<allowedValueRange>\n<minimum>0</minimum>\n<maximum>604800</maximum>\n</allowedValueRange>\n<defaultValue>3600</defaultValue>\n</stateVariable>\n<stateVariable sendEvents=\"no\">\n<name>RemoteHost</name>\n<dataType>string</dataType>\n</stateVariable>\n<stateVariable sendEvents=\"no\">\n<name>ExternalPort</name>\n<dataType>ui2</dataType>\n</stateVariable>\n<stateVariable sendEvents=\"no\">\n<name>InternalPort</name>\n<dataType>ui2</dataType>\n<allowedValueRange>\n<minimum>1</minimum>\n<maximum>65535</maximum>\n</allowedValueRange>\n</stateVariable>\n<stateVariable sendEvents=\"no\">\n<name>PortMappingProtocol</name>\n<dataType>string</dataType>\n<allowedValueList>\n<allowedValue>TCP</allowedValue>\n<allowedValue>UDP</allowedValue>\n</allowedValueList>\n</stateVariable>\n<stateVariable sendEvents=\"no\">\n<name>InternalClient</name>\n<dataType>string</dataType>\n</stateVariable>\n<stateVariable sendEvents=\"no\">\n<name>PortMappingDescription</name>\n<dataType>string</dataType>\n</stateVariable>\n</serviceStateTable>\n</scpd>"
|
|
}
|
|
},
|
|
"POST": {
|
|
"http://10.1.10.1:49152/upnp/control/WANIPConnection0": [
|
|
{
|
|
"request": "POST /upnp/control/WANIPConnection0 HTTP/1.1\r\nHost: 10.1.10.1:49152\r\nUser-Agent: python3/txupnp, UPnP/1.0, MiniUPnPc/1.9\r\nContent-Length: 285\r\nContent-Type: text/xml\r\nSOAPAction: \"urn:schemas-upnp-org:service:WANIPConnection:1#GetExternalIPAddress\"\r\nConnection: Close\r\nCache-Control: no-cache\r\nPragma: no-cache\r\n\r\n<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:GetExternalIPAddress xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\"></u:GetExternalIPAddress></s:Body></s:Envelope>\r\n",
|
|
"response": "<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body>\n<u:GetExternalIPAddressResponse xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\">\r\n<NewExternalIPAddress>1.2.3.4</NewExternalIPAddress>\r\n</u:GetExternalIPAddressResponse>\r\n</s:Body> </s:Envelope>"
|
|
},
|
|
{
|
|
"request": "POST /upnp/control/WANIPConnection0 HTTP/1.1\r\nHost: 10.1.10.1:49152\r\nUser-Agent: python3/txupnp, UPnP/1.0, MiniUPnPc/1.9\r\nContent-Length: 341\r\nContent-Type: text/xml\r\nSOAPAction: \"urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry\"\r\nConnection: Close\r\nCache-Control: no-cache\r\nPragma: no-cache\r\n\r\n<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:GetGenericPortMappingEntry xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\"><NewPortMappingIndex>0</NewPortMappingIndex></u:GetGenericPortMappingEntry></s:Body></s:Envelope>\r\n",
|
|
"response": "<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body>\n<u:GetGenericPortMappingEntryResponse xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\">\r\n<NewRemoteHost></NewRemoteHost>\r\n<NewExternalPort>59596</NewExternalPort>\r\n<NewProtocol>TCP</NewProtocol>\r\n<NewInternalPort>59596</NewInternalPort>\r\n<NewInternalClient>10.1.10.71</NewInternalClient>\r\n<NewEnabled>1</NewEnabled>\r\n<NewPortMappingDescription>uTorrent (TCP)</NewPortMappingDescription>\r\n<NewLeaseDuration>10800</NewLeaseDuration>\r\n</u:GetGenericPortMappingEntryResponse>\r\n</s:Body> </s:Envelope>"
|
|
},
|
|
{
|
|
"request": "POST /upnp/control/WANIPConnection0 HTTP/1.1\r\nHost: 10.1.10.1:49152\r\nUser-Agent: python3/txupnp, UPnP/1.0, MiniUPnPc/1.9\r\nContent-Length: 341\r\nContent-Type: text/xml\r\nSOAPAction: \"urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry\"\r\nConnection: Close\r\nCache-Control: no-cache\r\nPragma: no-cache\r\n\r\n<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:GetGenericPortMappingEntry xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\"><NewPortMappingIndex>1</NewPortMappingIndex></u:GetGenericPortMappingEntry></s:Body></s:Envelope>\r\n",
|
|
"response": "<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body>\n<u:GetGenericPortMappingEntryResponse xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\">\r\n<NewRemoteHost></NewRemoteHost>\r\n<NewExternalPort>59596</NewExternalPort>\r\n<NewProtocol>UDP</NewProtocol>\r\n<NewInternalPort>59596</NewInternalPort>\r\n<NewInternalClient>10.1.10.71</NewInternalClient>\r\n<NewEnabled>1</NewEnabled>\r\n<NewPortMappingDescription>uTorrent (UDP)</NewPortMappingDescription>\r\n<NewLeaseDuration>10800</NewLeaseDuration>\r\n</u:GetGenericPortMappingEntryResponse>\r\n</s:Body> </s:Envelope>"
|
|
},
|
|
{
|
|
"request": "POST /upnp/control/WANIPConnection0 HTTP/1.1\r\nHost: 10.1.10.1:49152\r\nUser-Agent: python3/txupnp, UPnP/1.0, MiniUPnPc/1.9\r\nContent-Length: 341\r\nContent-Type: text/xml\r\nSOAPAction: \"urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry\"\r\nConnection: Close\r\nCache-Control: no-cache\r\nPragma: no-cache\r\n\r\n<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:GetGenericPortMappingEntry xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\"><NewPortMappingIndex>2</NewPortMappingIndex></u:GetGenericPortMappingEntry></s:Body></s:Envelope>\r\n",
|
|
"response": "<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body>\n<u:GetGenericPortMappingEntryResponse xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\">\r\n<NewRemoteHost></NewRemoteHost>\r\n<NewExternalPort>48748</NewExternalPort>\r\n<NewProtocol>UDP</NewProtocol>\r\n<NewInternalPort>48748</NewInternalPort>\r\n<NewInternalClient>10.1.10.187</NewInternalClient>\r\n<NewEnabled>1</NewEnabled>\r\n<NewPortMappingDescription>WhatsApp (1538672386) ()</NewPortMappingDescription>\r\n<NewLeaseDuration>64800</NewLeaseDuration>\r\n</u:GetGenericPortMappingEntryResponse>\r\n</s:Body> </s:Envelope>"
|
|
},
|
|
{
|
|
"request": "POST /upnp/control/WANIPConnection0 HTTP/1.1\r\nHost: 10.1.10.1:49152\r\nUser-Agent: python3/txupnp, UPnP/1.0, MiniUPnPc/1.9\r\nContent-Length: 341\r\nContent-Type: text/xml\r\nSOAPAction: \"urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry\"\r\nConnection: Close\r\nCache-Control: no-cache\r\nPragma: no-cache\r\n\r\n<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:GetGenericPortMappingEntry xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\"><NewPortMappingIndex>3</NewPortMappingIndex></u:GetGenericPortMappingEntry></s:Body></s:Envelope>\r\n",
|
|
"response": "<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body>\n<u:GetGenericPortMappingEntryResponse xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\">\r\n<NewRemoteHost></NewRemoteHost>\r\n<NewExternalPort>3333</NewExternalPort>\r\n<NewProtocol>TCP</NewProtocol>\r\n<NewInternalPort>3333</NewInternalPort>\r\n<NewInternalClient>10.1.10.94</NewInternalClient>\r\n<NewEnabled>1</NewEnabled>\r\n<NewPortMappingDescription>LBRY peer port</NewPortMappingDescription>\r\n<NewLeaseDuration>79200</NewLeaseDuration>\r\n</u:GetGenericPortMappingEntryResponse>\r\n</s:Body> </s:Envelope>"
|
|
},
|
|
{
|
|
"request": "POST /upnp/control/WANIPConnection0 HTTP/1.1\r\nHost: 10.1.10.1:49152\r\nUser-Agent: python3/txupnp, UPnP/1.0, MiniUPnPc/1.9\r\nContent-Length: 341\r\nContent-Type: text/xml\r\nSOAPAction: \"urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry\"\r\nConnection: Close\r\nCache-Control: no-cache\r\nPragma: no-cache\r\n\r\n<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:GetGenericPortMappingEntry xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\"><NewPortMappingIndex>4</NewPortMappingIndex></u:GetGenericPortMappingEntry></s:Body></s:Envelope>\r\n",
|
|
"response": "<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body>\n<u:GetGenericPortMappingEntryResponse xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\">\r\n<NewRemoteHost></NewRemoteHost>\r\n<NewExternalPort>4444</NewExternalPort>\r\n<NewProtocol>UDP</NewProtocol>\r\n<NewInternalPort>4444</NewInternalPort>\r\n<NewInternalClient>10.1.10.94</NewInternalClient>\r\n<NewEnabled>1</NewEnabled>\r\n<NewPortMappingDescription>LBRY DHT port</NewPortMappingDescription>\r\n<NewLeaseDuration>79200</NewLeaseDuration>\r\n</u:GetGenericPortMappingEntryResponse>\r\n</s:Body> </s:Envelope>"
|
|
},
|
|
{
|
|
"request": "POST /upnp/control/WANIPConnection0 HTTP/1.1\r\nHost: 10.1.10.1:49152\r\nUser-Agent: python3/txupnp, UPnP/1.0, MiniUPnPc/1.9\r\nContent-Length: 341\r\nContent-Type: text/xml\r\nSOAPAction: \"urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry\"\r\nConnection: Close\r\nCache-Control: no-cache\r\nPragma: no-cache\r\n\r\n<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:GetGenericPortMappingEntry xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\"><NewPortMappingIndex>5</NewPortMappingIndex></u:GetGenericPortMappingEntry></s:Body></s:Envelope>\r\n",
|
|
"response": "<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">\n<s:Body>\n<s:Fault>\n<faultcode>s:Client</faultcode>\n<faultstring>UPnPError</faultstring>\n<detail>\n<UPnPError xmlns=\"urn:schemas-upnp-org:control-1-0\">\n<errorCode>713</errorCode>\n<errorDescription>SpecifiedArrayIndexInvalid</errorDescription>\n</UPnPError>\n</detail>\n</s:Fault>\n</s:Body>\n</s:Envelope>"
|
|
},
|
|
{
|
|
"request": "POST /upnp/control/WANIPConnection0 HTTP/1.1\r\nHost: 10.1.10.1:49152\r\nUser-Agent: python3/txupnp, UPnP/1.0, MiniUPnPc/1.9\r\nContent-Length: 341\r\nContent-Type: text/xml\r\nSOAPAction: \"urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry\"\r\nConnection: Close\r\nCache-Control: no-cache\r\nPragma: no-cache\r\n\r\n<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:GetGenericPortMappingEntry xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\"><NewPortMappingIndex>0</NewPortMappingIndex></u:GetGenericPortMappingEntry></s:Body></s:Envelope>\r\n",
|
|
"response": "<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body>\n<u:GetGenericPortMappingEntryResponse xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\">\r\n<NewRemoteHost></NewRemoteHost>\r\n<NewExternalPort>59596</NewExternalPort>\r\n<NewProtocol>TCP</NewProtocol>\r\n<NewInternalPort>59596</NewInternalPort>\r\n<NewInternalClient>10.1.10.71</NewInternalClient>\r\n<NewEnabled>1</NewEnabled>\r\n<NewPortMappingDescription>uTorrent (TCP)</NewPortMappingDescription>\r\n<NewLeaseDuration>10800</NewLeaseDuration>\r\n</u:GetGenericPortMappingEntryResponse>\r\n</s:Body> </s:Envelope>"
|
|
},
|
|
{
|
|
"request": "POST /upnp/control/WANIPConnection0 HTTP/1.1\r\nHost: 10.1.10.1:49152\r\nUser-Agent: python3/txupnp, UPnP/1.0, MiniUPnPc/1.9\r\nContent-Length: 341\r\nContent-Type: text/xml\r\nSOAPAction: \"urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry\"\r\nConnection: Close\r\nCache-Control: no-cache\r\nPragma: no-cache\r\n\r\n<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:GetGenericPortMappingEntry xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\"><NewPortMappingIndex>1</NewPortMappingIndex></u:GetGenericPortMappingEntry></s:Body></s:Envelope>\r\n",
|
|
"response": "<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body>\n<u:GetGenericPortMappingEntryResponse xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\">\r\n<NewRemoteHost></NewRemoteHost>\r\n<NewExternalPort>59596</NewExternalPort>\r\n<NewProtocol>UDP</NewProtocol>\r\n<NewInternalPort>59596</NewInternalPort>\r\n<NewInternalClient>10.1.10.71</NewInternalClient>\r\n<NewEnabled>1</NewEnabled>\r\n<NewPortMappingDescription>uTorrent (UDP)</NewPortMappingDescription>\r\n<NewLeaseDuration>10800</NewLeaseDuration>\r\n</u:GetGenericPortMappingEntryResponse>\r\n</s:Body> </s:Envelope>"
|
|
},
|
|
{
|
|
"request": "POST /upnp/control/WANIPConnection0 HTTP/1.1\r\nHost: 10.1.10.1:49152\r\nUser-Agent: python3/txupnp, UPnP/1.0, MiniUPnPc/1.9\r\nContent-Length: 341\r\nContent-Type: text/xml\r\nSOAPAction: \"urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry\"\r\nConnection: Close\r\nCache-Control: no-cache\r\nPragma: no-cache\r\n\r\n<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:GetGenericPortMappingEntry xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\"><NewPortMappingIndex>2</NewPortMappingIndex></u:GetGenericPortMappingEntry></s:Body></s:Envelope>\r\n",
|
|
"response": "<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body>\n<u:GetGenericPortMappingEntryResponse xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\">\r\n<NewRemoteHost></NewRemoteHost>\r\n<NewExternalPort>48748</NewExternalPort>\r\n<NewProtocol>UDP</NewProtocol>\r\n<NewInternalPort>48748</NewInternalPort>\r\n<NewInternalClient>10.1.10.187</NewInternalClient>\r\n<NewEnabled>1</NewEnabled>\r\n<NewPortMappingDescription>WhatsApp (1538672386) ()</NewPortMappingDescription>\r\n<NewLeaseDuration>64800</NewLeaseDuration>\r\n</u:GetGenericPortMappingEntryResponse>\r\n</s:Body> </s:Envelope>"
|
|
},
|
|
{
|
|
"request": "POST /upnp/control/WANIPConnection0 HTTP/1.1\r\nHost: 10.1.10.1:49152\r\nUser-Agent: python3/txupnp, UPnP/1.0, MiniUPnPc/1.9\r\nContent-Length: 341\r\nContent-Type: text/xml\r\nSOAPAction: \"urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry\"\r\nConnection: Close\r\nCache-Control: no-cache\r\nPragma: no-cache\r\n\r\n<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:GetGenericPortMappingEntry xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\"><NewPortMappingIndex>3</NewPortMappingIndex></u:GetGenericPortMappingEntry></s:Body></s:Envelope>\r\n",
|
|
"response": "<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body>\n<u:GetGenericPortMappingEntryResponse xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\">\r\n<NewRemoteHost></NewRemoteHost>\r\n<NewExternalPort>3333</NewExternalPort>\r\n<NewProtocol>TCP</NewProtocol>\r\n<NewInternalPort>3333</NewInternalPort>\r\n<NewInternalClient>10.1.10.94</NewInternalClient>\r\n<NewEnabled>1</NewEnabled>\r\n<NewPortMappingDescription>LBRY peer port</NewPortMappingDescription>\r\n<NewLeaseDuration>79200</NewLeaseDuration>\r\n</u:GetGenericPortMappingEntryResponse>\r\n</s:Body> </s:Envelope>"
|
|
},
|
|
{
|
|
"request": "POST /upnp/control/WANIPConnection0 HTTP/1.1\r\nHost: 10.1.10.1:49152\r\nUser-Agent: python3/txupnp, UPnP/1.0, MiniUPnPc/1.9\r\nContent-Length: 341\r\nContent-Type: text/xml\r\nSOAPAction: \"urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry\"\r\nConnection: Close\r\nCache-Control: no-cache\r\nPragma: no-cache\r\n\r\n<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:GetGenericPortMappingEntry xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\"><NewPortMappingIndex>4</NewPortMappingIndex></u:GetGenericPortMappingEntry></s:Body></s:Envelope>\r\n",
|
|
"response": "<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body>\n<u:GetGenericPortMappingEntryResponse xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\">\r\n<NewRemoteHost></NewRemoteHost>\r\n<NewExternalPort>4444</NewExternalPort>\r\n<NewProtocol>UDP</NewProtocol>\r\n<NewInternalPort>4444</NewInternalPort>\r\n<NewInternalClient>10.1.10.94</NewInternalClient>\r\n<NewEnabled>1</NewEnabled>\r\n<NewPortMappingDescription>LBRY DHT port</NewPortMappingDescription>\r\n<NewLeaseDuration>79200</NewLeaseDuration>\r\n</u:GetGenericPortMappingEntryResponse>\r\n</s:Body> </s:Envelope>"
|
|
},
|
|
{
|
|
"request": "POST /upnp/control/WANIPConnection0 HTTP/1.1\r\nHost: 10.1.10.1:49152\r\nUser-Agent: python3/txupnp, UPnP/1.0, MiniUPnPc/1.9\r\nContent-Length: 341\r\nContent-Type: text/xml\r\nSOAPAction: \"urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry\"\r\nConnection: Close\r\nCache-Control: no-cache\r\nPragma: no-cache\r\n\r\n<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:GetGenericPortMappingEntry xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\"><NewPortMappingIndex>5</NewPortMappingIndex></u:GetGenericPortMappingEntry></s:Body></s:Envelope>\r\n",
|
|
"response": "<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">\n<s:Body>\n<s:Fault>\n<faultcode>s:Client</faultcode>\n<faultstring>UPnPError</faultstring>\n<detail>\n<UPnPError xmlns=\"urn:schemas-upnp-org:control-1-0\">\n<errorCode>713</errorCode>\n<errorDescription>SpecifiedArrayIndexInvalid</errorDescription>\n</UPnPError>\n</detail>\n</s:Fault>\n</s:Body>\n</s:Envelope>"
|
|
},
|
|
{
|
|
"request": "POST /upnp/control/WANIPConnection0 HTTP/1.1\r\nHost: 10.1.10.1:49152\r\nUser-Agent: python3/txupnp, UPnP/1.0, MiniUPnPc/1.9\r\nContent-Length: 599\r\nContent-Type: text/xml\r\nSOAPAction: \"urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping\"\r\nConnection: Close\r\nCache-Control: no-cache\r\nPragma: no-cache\r\n\r\n<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:AddPortMapping xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\"><NewRemoteHost></NewRemoteHost><NewExternalPort>4567</NewExternalPort><NewProtocol>UDP</NewProtocol><NewInternalPort>4567</NewInternalPort><NewInternalClient>10.1.10.206</NewInternalClient><NewEnabled>1</NewEnabled><NewPortMappingDescription>txupnp test mapping</NewPortMappingDescription><NewLeaseDuration></NewLeaseDuration></u:AddPortMapping></s:Body></s:Envelope>\r\n",
|
|
"response": "<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body>\n<u:AddPortMappingResponse xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\"></u:AddPortMappingResponse>\r\n</s:Body> </s:Envelope>"
|
|
},
|
|
{
|
|
"request": "POST /upnp/control/WANIPConnection0 HTTP/1.1\r\nHost: 10.1.10.1:49152\r\nUser-Agent: python3/txupnp, UPnP/1.0, MiniUPnPc/1.9\r\nContent-Length: 379\r\nContent-Type: text/xml\r\nSOAPAction: \"urn:schemas-upnp-org:service:WANIPConnection:1#DeletePortMapping\"\r\nConnection: Close\r\nCache-Control: no-cache\r\nPragma: no-cache\r\n\r\n<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:DeletePortMapping xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\"><NewRemoteHost></NewRemoteHost><NewExternalPort>4567</NewExternalPort><NewProtocol>UDP</NewProtocol></u:DeletePortMapping></s:Body></s:Envelope>\r\n",
|
|
"response": "<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body>\n<u:DeletePortMappingResponse xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\"></u:DeletePortMappingResponse>\r\n</s:Body> </s:Envelope>"
|
|
},
|
|
{
|
|
"request": "POST /upnp/control/WANIPConnection0 HTTP/1.1\r\nHost: 10.1.10.1:49152\r\nUser-Agent: python3/txupnp, UPnP/1.0, MiniUPnPc/1.9\r\nContent-Length: 403\r\nContent-Type: text/xml\r\nSOAPAction: \"urn:schemas-upnp-org:service:WANIPConnection:1#GetSpecificPortMappingEntry\"\r\nConnection: Close\r\nCache-Control: no-cache\r\nPragma: no-cache\r\n\r\n<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:GetSpecificPortMappingEntry xmlns:u=\"urn:schemas-upnp-org:service:WANIPConnection:1\"><NewRemoteHost>None</NewRemoteHost><NewExternalPort>4567</NewExternalPort><NewProtocol>UDP</NewProtocol></u:GetSpecificPortMappingEntry></s:Body></s:Envelope>\r\n",
|
|
"response": "<?xml version=\"1.0\"?>\r\n<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">\n<s:Body>\n<s:Fault>\n<faultcode>s:Client</faultcode>\n<faultstring>UPnPError</faultstring>\n<detail>\n<UPnPError xmlns=\"urn:schemas-upnp-org:control-1-0\">\n<errorCode>402</errorCode>\n<errorDescription>PAL_UPNP_SOAP_E_INVALID_ARGS</errorDescription>\n</UPnPError>\n</detail>\n</s:Fault>\n</s:Body>\n</s:Envelope>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"soap": [
|
|
[
|
|
"get_external_ip",
|
|
[],
|
|
"1.2.3.4"
|
|
],
|
|
[
|
|
"get_redirects",
|
|
[],
|
|
[
|
|
[
|
|
null,
|
|
59596,
|
|
"TCP",
|
|
59596,
|
|
"10.1.10.71",
|
|
true,
|
|
"uTorrent (TCP)",
|
|
10800
|
|
],
|
|
[
|
|
null,
|
|
59596,
|
|
"UDP",
|
|
59596,
|
|
"10.1.10.71",
|
|
true,
|
|
"uTorrent (UDP)",
|
|
10800
|
|
],
|
|
[
|
|
null,
|
|
48748,
|
|
"UDP",
|
|
48748,
|
|
"10.1.10.187",
|
|
true,
|
|
"WhatsApp (1538672386) ()",
|
|
64800
|
|
],
|
|
[
|
|
null,
|
|
3333,
|
|
"TCP",
|
|
3333,
|
|
"10.1.10.94",
|
|
true,
|
|
"LBRY peer port",
|
|
79200
|
|
],
|
|
[
|
|
null,
|
|
4444,
|
|
"UDP",
|
|
4444,
|
|
"10.1.10.94",
|
|
true,
|
|
"LBRY DHT port",
|
|
79200
|
|
]
|
|
]
|
|
],
|
|
[
|
|
"get_next_mapping",
|
|
[
|
|
4567,
|
|
"UDP",
|
|
"txupnp test mapping"
|
|
],
|
|
4567
|
|
],
|
|
[
|
|
"delete_port_mapping",
|
|
[
|
|
4567,
|
|
"UDP"
|
|
],
|
|
[]
|
|
],
|
|
[
|
|
"get_specific_port_mapping",
|
|
[
|
|
4567,
|
|
"UDP"
|
|
],
|
|
null
|
|
]
|
|
]
|
|
} |