Skip to content
This is portal server implement at portal2.0 protocol.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
conf
doc
src
test
web
Makefile
README.md

README.md

PortalServer

PortalServer is a Go server implementing the PORTAL protocol. It provides functions for Marshalling & Unmarshalling PORTAL packets. The packet processing logic resides with the application using the server. It implementing the portal2.0 protocol and work well with HUAWEI bras and ZTE bras.

NOTE: This is a Work-In-Progress. A lot of will change in the coming days, and I recommend against using this in production code as API might change. Patches are welcome!

Web API

There are three api for web caller.

/portalserver/login is login api, input params of username,password,userip and brasip should be exist in request package.

/portalserver/logout is logout api, input params of username,userip and brasip should be exist in request package.

/portalserver/getvlaninfo is getvlaninfo api, input params of username,userip and brasip should be exist in request package.

LICENSE

This library is under Apache License, Version 2.0. For more details please see LICENSE file.

Author

Wang Yaofu.

Data Flow

data flow

Auth-login Portal2.0 Packet

auth login flow

Auth-logout Portal2.0 Packet

auth logout flow

You can’t perform that action at this time.