[SR-Users] utility function to check if ip address is private?
Daniel-Constantin Mierla
miconda at gmail.com
Wed Nov 18 09:19:20 CET 2020
Hello,
this one:
*
https://www.kamailio.org/docs/modules/stable/modules/ipops.html#ipops.f.is_ip_rfc1918
I haven't checked if tests the newer ranges (e.g., carrier grade nat).
The nat_uac_test() should have the recent ranges for non-routable ip
addresses, just in case one wants to double check.
Cheers,
Daniel
On 18.11.20 08:53, Juha Heinanen wrote:
> I looked in the wiki for a utility function that would check if given ip
> address is private, but didn't find one. Does it exist?
>
> -- Juha
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla
More information about the sr-users
mailing list