Re: [OpenSIPS-Users] Identify RFC1918 Address in request domain

2019-05-21 Thread Bogdan-Andrei Iancu

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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Identify RFC1918 Address in request domain

2019-05-07 Thread Sunil More
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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users