There are cases where you would prefer to authenticate by the IP instead of the name and password. Some examples are gateways that are not capable of doing Digest authentication and high-volume customers such as call centers. At high rates such as 100 calls per second, two additional messages (407) can make a difference.
The permissions
module has a lot of functions; here, we will focus only on the check_address()
function and address database. The syntax for the command is as follows:
check_address(group_id, ip, port, proto [, context_info [, pattern]])
In this command, the following points are explained as follows:
The
group_id
argument is the group to be matched in the address table. Thegroup_id
argument of value 0 means any group.The
ip
argument is the source IP address to be matched.The
port
argument is the source port to be matched. The value 0 means any port.The
proto
argument is the protocol to be matched. The options areUDP
,TCP
,TLS
,SCTP
, andANY
.The
context_info...