Update README.md
This commit is contained in:
parent
89287df0b8
commit
ebbca38079
1 changed files with 6 additions and 27 deletions
33
README.md
33
README.md
|
@ -10,23 +10,7 @@
|
|||
`aioupnp` is a python 3.6-8 library and command line tool to interact with UPnP gateways using asyncio. `aioupnp` requires the `netifaces` and `defusedxml` modules.
|
||||
|
||||
## Supported devices
|
||||
Actiontec
|
||||
Airlive
|
||||
ARRIS
|
||||
ASUS
|
||||
Belkin
|
||||
Broadcom
|
||||
Cisco
|
||||
DD-WRT
|
||||
D-Link
|
||||
Huawei
|
||||
libupnp
|
||||
Linksys
|
||||
miniupnpd
|
||||
Netgear
|
||||
TP-Link
|
||||
ZyXEL
|
||||
|
||||
![img](https://i.imgur.com/JtO4glP.png)
|
||||
|
||||
## Installation
|
||||
|
||||
|
@ -61,16 +45,7 @@ in the order they are to be used. For example:
|
|||
|
||||
aioupnp --HOST=239.255.255.250:1900 --MAN=\"ssdp:discover\" --MX=1 --ST=upnp:rootdevice m_search
|
||||
```
|
||||
cli_commands = [
|
||||
'm_search',
|
||||
'get_external_ip',
|
||||
'add_port_mapping',
|
||||
'get_port_mapping_by_index',
|
||||
'get_redirects',
|
||||
'get_specific_port_mapping',
|
||||
'delete_port_mapping',
|
||||
'get_next_mapping'
|
||||
]
|
||||
|
||||
### Commands
|
||||
m_search | add_port_mapping | get_port_mapping_by_index | get_redirects | get_specific_port_mapping | delete_port_mapping | get_next_mapping
|
||||
|
||||
|
@ -81,6 +56,10 @@ cli_commands = [
|
|||
|
||||
aioupnp get_external_ip
|
||||
|
||||
#### To set up a TCP port redirect
|
||||
|
||||
aioupnp add_port_mapping --external_port=1234 --internal_port=1234 --lan_address=<lan_addr> --description=test --protocol=TCP
|
||||
|
||||
#### To list the active port mappings on the gateway
|
||||
|
||||
aioupnp get_redirects
|
||||
|
|
Loading…
Reference in a new issue