upnpctrl urn:schemas-upnp-org:service:WANPPPConnection:1 AddPortMapping RemoteHost=0.0.0.0 ExternalPort=9000 Protocol=udp InternalPort=9000 InternalClient=192.168.1.28 Enabled=1 PortMappingDescription=proxy-udp LeaseDuration=0
upnpctrl urn:schemas-upnp-org:service:WANPPPConnection:1 AddPortMapping RemoteHost=0.0.0.0 ExternalPort=9418 Protocol=tcp InternalPort=9418 InternalClient=192.168.1.28 Enabled=1 PortMappingDescription=proxy LeaseDuration=0
GetExternalIPAddress();
DeletePortMapping(RemoteHost, ExternalPort, Protocol);
GetGenericPortMappingEntry(PortMappingIndex);
AddPortMapping(RemoteHost, ExternalPort, Protocol,InternalPort, InternalClient, Enabled, PortMappingDescription, LeaseDuration);
schema should be: [urn:schemas-upnp-org:service:WANIPConnection:1]
[urn:schemas-upnp-org:service:WANPPPConnection:1]
upnpctrl urn:schemas-upnp-org:service:WANIPConnection:1 GetExternalIPAddress
阅读(1672) | 评论(0) | 转发(0) |