[SR-Users] Kamailio not listening to proper ipv6 address
Michael Young
myoung at redmonsters.net
Fri Apr 20 17:17:09 CEST 2018
Marko,
In our network, we have it working with this listen line:
listen = [2600:1234:7522:abcd::aaaa:bbbb]:5060
which is slightly different from what you have below. We are listening on both udp and tcp. I don’t know if that will help you or not – but they key take away may be that it does work. We are running version 5.0.
I am assuming the address is not really yyyy:xxxx as that would not be a valid IPv6 address. But you are probably just obfuscating that.
Michael
From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of selak Dev
Sent: Friday, April 20, 2018 9:00 AM
To: sr-users at lists.kamailio.org
Subject: [SR-Users] Kamailio not listening to proper ipv6 address
Hi,
I need to enable Kamailio to work with ipv6 also, and I enabled
auto_bind_ipv6=1
and when restarted I can see that it is listening to ipv6 ip addresses also.
The problem is that it stripped the ip address at the end and it is listening to the wrong one.
When I try to register I get timeout, since it is not listening the correct address.
ip address of the server is 2604:a880:400:d0::yyyy:xxxx
and when I execute "sudo netstat -plnt" too see which app is listening to which address/port I can see:
....
tcp6 0 0 2604:a880:400:d0:::5085 :::* LISTEN 17748/kamailio
tcp6 0 0 2604:a880:400:d0:::5061 :::* LISTEN 17748/kamailio
It somehow stripped the last part of the address (yyyy:xxxx). I dont know if it is related to :: which would be all zeros, but it doesn't work even if i explicitly specify which address to listen with
listen=[2604:a880:400:d0:0000:0000:yyyy:xxxx]
or
listen=tcp:[2604:a880:400:d0:0000:0000:yyyy:xxxx]:5061
or
listen=tcp:[2604:a880:400:d0::yyyy:xxxx]:5061
I tried all combinations and the results are always the same...
Have anybody had this problem before?
Do you know how to fix this?
Best regards,
Marko Selakovic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180420/42c48963/attachment.html>
More information about the sr-users
mailing list