200: {}default: { "code": 403, "reason": "You need to be logged in to view this endpoint!" }
force: (boolean) Force addition, even if it means removing conflicting rules already in the DB
reason: (string) The reason for banning
rule: (string) the ID of an existing rule
source: (string) the source IP Address or Network
target: (string) Target machine to ban on (or * for all machines)
timeout: (integer) If present and greater than 0, denotes the UNIX timestamp when this rule stops working
application/json:
{}
200: { "message": "Action completed" }default: { "code": 403, "reason": "You need to be logged in to view this endpoint!" }
200: {}default: { "code": 403, "reason": "You need to be logged in to view this endpoint!" }
force: (boolean) Force addition, even if it means removing conflicting rules already in the DB
reason: (string) The reason for banning
rule: (string) the ID of an existing rule
source: (string) the source IP Address or Network
target: (string) Target machine to ban on (or * for all machines)
timeout: (integer) If present and greater than 0, denotes the UNIX timestamp when this rule stops working
application/json:
{}
200: { "message": "Action completed" }default: { "code": 403, "reason": "You need to be logged in to view this endpoint!" }
application/json:
{
"iptables": [
{
"action": "DROP",
"chain": "INPUT",
"destination": "1.2.3.4",
"extensions": "/* comment here */",
"linenumber": 26,
"option": "comment",
"protocol": "tcp",
"source": "1.2.3.4"
}
]
}
200: { "message": "Action completed" }default: { "code": 403, "reason": "You need to be logged in to view this endpoint!" }
limit: (integer) The limit that causes a ban
name: (string) The name of the rule
query: (array) The individual query args to look for
rid: (string) rule ID, if overriding a previous rule
span: (integer) The span (in hours) within which to look for offenses
type: (string) The type of rule
application/json:
{}
200: { "message": "Action completed" }default: { "code": 403, "reason": "You need to be logged in to view this endpoint!" }
200: {}default: { "code": 403, "reason": "You need to be logged in to view this endpoint!" }
limit: (integer) The limit that causes a ban
name: (string) The name of the rule
query: (array) The individual query args to look for
rid: (string) rule ID, if overriding a previous rule
span: (integer) The span (in hours) within which to look for offenses
type: (string) The type of rule
application/json:
{}
200: { "message": "Action completed" }default: { "code": 403, "reason": "You need to be logged in to view this endpoint!" }
source: (string) IP Address or Network to search for
application/json:
{}
200: {}default: { "code": 403, "reason": "You need to be logged in to view this endpoint!" }
force: (boolean) Force addition, even if it means removing conflicting rules already in the DB
reason: (string) The reason for banning
rule: (string) the ID of an existing rule
source: (string) the source IP Address or Network
target: (string) Target machine to ban on (or * for all machines)
timeout: (integer) If present and greater than 0, denotes the UNIX timestamp when this rule stops working
application/json:
{}
200: { "message": "Action completed" }default: { "code": 403, "reason": "You need to be logged in to view this endpoint!" }
200: {}default: { "code": 403, "reason": "You need to be logged in to view this endpoint!" }
force: (boolean) Force addition, even if it means removing conflicting rules already in the DB
reason: (string) The reason for banning
rule: (string) the ID of an existing rule
source: (string) the source IP Address or Network
target: (string) Target machine to ban on (or * for all machines)
timeout: (integer) If present and greater than 0, denotes the UNIX timestamp when this rule stops working
application/json:
{}
200: { "message": "Action completed" }default: { "code": 403, "reason": "You need to be logged in to view this endpoint!" }