[OpenSIPS-Users] nathelper function for ipv6
Bogdan-Andrei Iancu
bogdan at opensips.org
Thu Apr 5 06:07:12 EDT 2018
Hi Pasan,
19 is 16 + 2 +1 (as tests) :
/1/- Contact header field is searched for occurrence of RFC1918 /
RFC6598 addresses.//
/2/- the "received" test is used: address in Via is compared against
source IP address of signaling//
/16/- test if the source port is different from the port in Via
2 and 16 is checking IP versus IP, so they are not affected by v4 versus v6.
On test 1 I see no checks on v4 or v6 - it simply checks the IP (as raw
bytes) against the know ipv4 private classes.
Could you try to remove the test 1 (use 18) and see if the test still
returns true ?
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
OpenSIPS Summit 2018
http://www.opensips.org/events/Summit-2018Amsterdam
On 04/05/2018 06:58 AM, Pasan Meemaduma via Users wrote:
> Hi Guys,
>
> Are nathelper module functions ipv6 safe ? I'm getting true for nat
> test with following call for an ipv6 address which is a globally
> unique unicast address.
>
> nat_uac_test("19")
>
>
>
>
> _______________________________________________
> 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/20180405/107614c2/attachment-0001.html>
More information about the Users
mailing list