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.

Files for txportal, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size txportal-0.0.6.macosx-10.11-intel.tar.gz (37.1 kB) File type Dumb Binary Python version any Upload date Hashes View
Filename, size txportal-0.0.6-py2-none-any.whl (27.5 kB) File type Wheel Python version 2.7 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page