[OpenSIPS-Users] Identify RFC1918 Address in request domain

Bogdan-Andrei Iancu bogdan at opensips.org
Wed May 22 02:35:04 EDT 2019

Hi Sunil,

You can use the {ip.matches} transformation to check the IP against the 
RFC1918 subnets


Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
OpenSIPS Summit 2019

On 05/08/2019 08:49 AM, Sunil More wrote:
> Hi All,
> I am using a setup on GCP with advertised IP address. It will be used 
> as an edge proxy to send/receive calls. I have a VPN client connecting 
> directly to the GCP instance on its private interface.
> I want to forward inbound calls to clients. While doing this I want to 
> identify if the forwarding IP is private IP (RFC1918) or public IP and 
> likewise use the advertised IP address. How can I do this ?
> Regards,
> Sunil More
> Ph. 919503338275
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190522/28433110/attachment.html>

More information about the Users mailing list