Configure netconf ssh to work with both IPv4 and IPv6

I am using confd version 6.3. I’m trying to set it up to be able to ssh with netconf over ipv4 and ipv6. My related configuration looks as follows:


      <!-- NETCONF over TCP is not standardized, but it can be useful
           during development in order to use e.g. netcat for scripting.

Which result in

root@0eeefd5ae80c:/shared# netstat -ln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp6       0      0 :::2022                 :::*                    LISTEN     

When I change ip to then it listens over ipv4. But I am not able to set both ipv4 and ipv6. Is it even possible?

Yes, of course. Have a look at extraIpPorts in the confd.conf(5) man page, it allows you to configure both “” and “::”.


Works fine, thank you very much!