<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Sunil,<br>
<br>
You can use the {ip.matches} transformation to check the IP
against the RFC1918 subnets<br>
<a class="moz-txt-link-freetext" href="https://opensips.org/Documentation/Script-Tran-3-0#toc77">https://opensips.org/Documentation/Script-Tran-3-0#toc77</a><br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS Summit 2019
<a class="moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2019Amsterdam/">https://www.opensips.org/events/Summit-2019Amsterdam/</a>
</pre>
<div class="moz-cite-prefix">On 05/08/2019 08:49 AM, Sunil More
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAAP4-XkveVgDmpfKRL90qHWzizd2gM8eMXDe79sbqCmE2ZwiXg@mail.gmail.com">
<div dir="ltr">
<div dir="ltr">Hi All,
<div><br>
</div>
<div>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. </div>
<div><br>
</div>
<div>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 ?</div>
<div><br>
</div>
<div>Regards,</div>
<div>Sunil More</div>
<div>Ph. 919503338275</div>
<div><br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>