Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

URI

Method

URI Arguments

Data

Data Fields

Description

/wm/firewall/module/status/json

GET

None

None

None

Query the status of the firewall.

/wm/firewall/module/enable/jsonPOSTPUTNoneNoneNoneEnable the firewall.
/wm/firewall/module/disable/jsonPOSTPUTNoneNoneNoneDisable the firewall.
/wm/firewall/module/subnet-mask/jsonGETNoneNoneNoneGet the firewall's configured subnet mask.
 POSTNone{"subnet-mask":"X.X.X.X"}"subnet-mask":"X.X.X.X", where X.X.X.X is a valid IPv4 subnet mask.Set the subnet mask of the firewall.

/wm/firewall/rules/json

GET

None

None

None

List all existing rules in json format.

 

POST

None

{"<field 1>":"<value 1>", "<field 2>":"<value 2>", ...}

"field":"value" pairs below in any order and combination:
"switchid":"<xx:xx:xx:xx:xx:xx:xx:xx>", "src-inport":"<short>", 
"src-mac": "<xx:xx:xx:xx:xx:xx>", "dst-mac": "<xx:xx:xx:xx:xx:xx>", 
"dl-type": "<ARP or IPv4>", "src-ip": "<A.B.C.D/M>", "dst-ip": "<A.B.C.D/M>", 
"nw-proto": "<TCP or UDP or ICMP>", "tp-src": "<short>", "tp-dst": "<short>", 
"priority": "<int>", "action": "<ALLOW or DENY>"

Note: specifying src-ip/dst-ip without specifying dl-type as ARP, or specifying any IP-based nw-proto will automatically set dl-type to match IPv4.

Create new firewall rule.

 

DELETE

None

{"<ruleid>":"<int>"}

"ruleid": "<int>"
Note: ruleid is a random number generated and returned in the json response upon successful creation

Delete a rule by ruleid.

...