Skip to main content

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

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.4.linux-x86_64.tar.gz (39.0 kB view hashes)

Uploaded Source

txportal-0.0.4-py2-none-any.whl (27.3 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page