Skip to content

MngTestFirewallAddress

Evaluates an address against the current immutable firewall snapshot without blocking it. Requires SuperAdmin.

Request fields

Field Type Required Description
ip string Yes IPv4 or IPv6 address
service int Yes 1 TCP, 2 HTTP, 3 HTTPS, 4 WebSocket
{"command":"MngTestFirewallAddress","data":{"ip":"203.0.113.42","service":2},"extID":"firewall-test-1"}

Response

{"allowed":false,"rule_id":7,"country":"RU","reason":"Country restriction","snapshot_version":12}

rule_id=0 means that the decision came from the country allowlist fallback, GeoIP failure policy, or the default allow behavior rather than a specific database rule.