Portal tools
Project description
# txportal
txportal 是一个基于Python/twisted开发的 wlan portal 协议处理模块, 支持cmccv1,cmccv2,huaweiv1,huaweiv2协议。
## 安装
pip install txportal -r requirements.txt
## AC 模拟设备
### tpsim 工具
- 参数说明
usage: tpsim [-h] [-ph PORTAL_HOST] [-pl PORTAL_LISTEN] [-v VENDOR]
[-e SECRET] [-p PORT] [-d] [-M] [-W] [-f FORK]
optional arguments:
-h, --help show this help message and exit
-ph PORTAL_HOST, --portal_host PORTAL_HOST
portal ip addr
-pl PORTAL_LISTEN, --portal_listen PORTAL_LISTEN
portal ip addr
-v VENDOR, --vendor VENDOR
portal protoal version:
cmccv1,cmccv2,huaweiv1,huaweiv2
-e SECRET, --secret SECRET
portal share secret
-p PORT, --port PORT ac port, default 2000
-d, --debug debug option
-M, --master run master
-W, --worker run worker
-f FORK, --fork FORK worker fork num
- 运行模拟进程启动4个 worker 子进程处理消息
$ tpsim -M -d -f 4
txportal 是一个基于Python/twisted开发的 wlan portal 协议处理模块, 支持cmccv1,cmccv2,huaweiv1,huaweiv2协议。
## 安装
pip install txportal -r requirements.txt
## AC 模拟设备
### tpsim 工具
- 参数说明
usage: tpsim [-h] [-ph PORTAL_HOST] [-pl PORTAL_LISTEN] [-v VENDOR]
[-e SECRET] [-p PORT] [-d] [-M] [-W] [-f FORK]
optional arguments:
-h, --help show this help message and exit
-ph PORTAL_HOST, --portal_host PORTAL_HOST
portal ip addr
-pl PORTAL_LISTEN, --portal_listen PORTAL_LISTEN
portal ip addr
-v VENDOR, --vendor VENDOR
portal protoal version:
cmccv1,cmccv2,huaweiv1,huaweiv2
-e SECRET, --secret SECRET
portal share secret
-p PORT, --port PORT ac port, default 2000
-d, --debug debug option
-M, --master run master
-W, --worker run worker
-f FORK, --fork FORK worker fork num
- 运行模拟进程启动4个 worker 子进程处理消息
$ tpsim -M -d -f 4
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
txportal-0.0.6-py2-none-any.whl
(27.5 kB
view details)
File details
Details for the file txportal-0.0.6.macosx-10.11-intel.tar.gz
.
File metadata
- Download URL: txportal-0.0.6.macosx-10.11-intel.tar.gz
- Upload date:
- Size: 37.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22b287ee57447366b2034f12d0f8214b085965ca3c5bc1c7e7800564aff46bbf |
|
MD5 | 25f50a894715e07b8b907c018da17b20 |
|
BLAKE2b-256 | 53c99c91eab86293ca3ac4fa0d9750cde9d21221a4143958d27397600bd24b1f |
File details
Details for the file txportal-0.0.6-py2-none-any.whl
.
File metadata
- Download URL: txportal-0.0.6-py2-none-any.whl
- Upload date:
- Size: 27.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a2557fd423fedeb603d2bf152488fa9081503ae3c0205aa410b9833bbb5fbdd |
|
MD5 | 1eee06dab882b9608643d872e66bd53f |
|
BLAKE2b-256 | 244acd1a153fd37977729edcb1de779983fc6afab49b95663db7bc963ea7ec6d |