borderrule (borderrule)
Description
Static rule for filtering incoming SIP requests. Used to defend against attacks by SIP roles at the edge of the deployed system «Incoplax».
Other SIP roles force filtering by sender address, allowing only packets from other internal servers.
The system applies the highest-priority rule that fits the conditions.
The IP address value can be an IP address (e.g. 192.168.0.10), subnet mask (e.g. 192.168.0.0/24), IP address range (e.g. 192.168.0.0/24). 172.25.0.50+10).
Incoming messages go through a double check cycle. First, among the rules are selected those where only the filter by IP address/mask of the remote party is set. This check does not require a lot of resources. If the message is not filtered, it is allowed into the system, and after the parser all the rules are applied to the parsed message, including those with filters on domain, user name, user agent, etc. This should be taken into account when creating whitelists.
Rules where only IP address/mask filtering is specified result in banning addresses from the dynamic ban list (exceeding the number of authorization attempts with different credentials within a short time interval).
Fields
{
"id": uuid,
"priority": str,
"site": str,
"domain": str,
"username": str,
"useragent": str,
"remoteipmask": str,
"action": str,
"opts": {
"title": str,
"comment": str
},
"ext": {
"ct": date,
"lwt": date
}
}
Specification | Description |
---|---|
Field: |
Identifier. Can be specified at creation, otherwise generated by the system. |
Field: |
Rule switch |
Field: |
Priority. A lower value means a higher priority. |
Field: |
The site where the rule applies. |
Field: |
The service on which the rule applies. |
Field: |
Sender domain or regular expression. |
Field: |
Username or regular expression. |
Field: |
The value of the UserAgent field in the SIP request or regular expression. |
Field: |
Sender IP address mask.
|
Field: |
|
Field: |
|
Field: |
Arbitrary header |
Field: |
Arbitrary comment |
Field: |
Allows you to extend the compound with arbitrary keys and values |
Field: |
Object creation time |
Field: |
Time of last modification of the object |
Actions when receiving incoming requests
Value | Description |
---|---|
|
Authorized |
|
Prohibited. Ignoring a request without sending a response. |
|
Prohibited. Returning a reply with a rejection. |
Types of services
Value | Description |
---|---|
|
Applies only on web server for HTTP(S) and WS(S) requests to the API. |
|
Applies only to sg (TCP, UDP, TLS, WS, WSS). |
|
Applies only to esg (TCP, UDP, TLS). |
|
Applies only to autoprovision (TFTP). |
|
Applies to all SIP edge services: sg, esg, ap. |
|
Applies to all of the above services. |