Re: IPv6 bind wrong IP. #4199

Sergei Safarov via sr-users <[email protected]>
Newsgroups gmane.comp.voip.ser
Message-ID <[email protected]>
As I know netstat stip long IPv6 addresses during output.
Try using

ss -l -n

On Wed, 2025-04-09 at 16:10 +0700, Vu Nguyen via sr-users wrote:
> Dear Sir,
> I have opened an issue on GitHub: "IPv6 bind wrong IP. #4199 [1]".
> System Details:
> * 
> Kamailio (5.8.x) – SIP Proxy
> * 
> FreeSWITCH – Media Server
> * 
> OS – Debian 12
> * 
> Gateway – aaaa:bbb:cccc:20::1
> * 
> IPv6 Address – aaaa:bbb:cccc:20::41e
> 
> kamailio.cfg:
> #!define ADDR_IPV4 xxx.xxx.xxx.xxx #!define ADDR_IPV6
> [aaaa:bbb:cccc:20::41e] listen=ADDR_IPV4 listen=ADDR_IPV6
> 
> netstat Output:
> tcp6 0 0 aaaa:bbb:cccc:20:::5060 :::* LISTEN 1691274/kamailio tcp6 0
> 0 aaaa:bbb:cccc:20:::5061 :::* LISTEN 1691274/kamailio udp6 0 0
> aaaa:bbb:cccc:20:::5060 :::* 1691222/kamailio
> As shown, although I explicitly set the listen IP to
> aaaa:bbb:cccc:20::41e, Kamailio strips the last part of the address
> and binds to aaaa:bbb:cccc:20::
> I also upgraded to version 6.0 with default cfg and set
> auto_bind_ipv6=1 or changed ipv6 address, but the issue still
> persists.
> 
> IPv6 Interface Configuration:
> auto eth1 iface eth1 inet6 static address aaaa:bbb:cccc:20::41e
> netmask 64 gateway aaaa:bbb:cccc:20::1
> I can successfully ping in and out using this IPv6 address.
> 
> Do I need to configure anything else in Kamailio or the system to
> ensure it binds to the full IPv6 address aaaa:bbb:cccc:20::41e as
> expected?
> 
> Currently I can register with ipv4, but ipv6 does not.
> Thank you for your assistance.
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions --
> [email protected]
> To unsubscribe send an email to [email protected]
> Important: keep the mailing list in the recipients, do not reply only
> to the sender!


[1] IPv6 bind wrong IP. #4199
    https://github.com/kamailio/kamailio/issues/4199

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the sender!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.