[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
     https://opensips.org/Documentation/Script-Tran-3-0#toc77

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
OpenSIPS Summit 2019
   https://www.opensips.org/events/Summit-2019Amsterdam/

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