Forums Read-only archive

IP basd authentication for IP address ranges/subnets

2 posts · Brekeke SIP Server Forum

Ferenc Original post
Dear support could you tell me how to differentiate SIP messages based on source subnet ranges?

For example if I would like to deactivate the digest authentication from a certain subnet on INVITE messages (let's say from 10.0.0.0/24), but would like to keep the digest authentication method for SIP requests coming from any other networks then what should I do?

I know how to set it up for a single IP address, but what can I do if I have to deal with a full /24 network?

Sample Matching/Deploy patterns we are using on single IP addresses:

Matching pattern:
incoming $request=^INVITE
$addr=10\.0\.0\.1

Deploy pattern:
$auth=false
$continue=true

Best regards,
--
Ferenc
voipwell.com
Just fill in the prefix.

$addr=10\.0\.0\.

This will pick up the whole subnet.