Skip to content

Latest commit

 

History

History
61 lines (46 loc) · 1.13 KB

File metadata and controls

61 lines (46 loc) · 1.13 KB

Raw - Firewall Statistics

Request

Firewall Statistics Specific Parameters

Name Type Values Description

chain

String

String

The firewall chain to request statistics for (e.g. WAN_IN).

Response

The raw string response is pretty similar to a raw feed.

Root

Name Type Values Description

sub_id

String

String

The raw response in the format Chain, Rule Number, Packets, Bytes, Action, Description separated by a new-line.

Examples

Firewall Statistics Example

Subscription Request
142
{"SUBSCRIBE":[{"name":"fw-stats","sub_id":"fwstat:WAN_IN","chain":"WAN_IN"}],"UNSUBSCRIBE":[],"SESSION_ID":"9a00126c5bf04e29835f7c13fe5ab155"}
Response
276
{
    "fwstat:WAN_IN": "WAN_IN 10 2048285 387019792 ACCEPT \"Allow Established\/Related\"\nWAN_IN 20 0 0 DROP \"Drop Invalid State\"\nWAN_IN 21 162 16317 ACCEPT \"Allow OpenVPN\"\nWAN_IN 22 0 0 ACCEPT \"Allow Emergency iLO\"\nWAN_IN 10000 7 435 DROP \"DEFAULT ACTION\"\n\n"
}