Conntrack and IPv6
Hi,
To test my Python binding, I tried to dump conntrack table for IPv6 protocol but I just get the error "Address family not supported by protocol".
I tried old libnetfilter_conntrack API and I don't get error. But I can't see my connections (whereas "netstat --protocol inet6" lists them).
Do I need a kernel newer than 2.6.17? Or netfilter conntrack doesn't support IPv6?
For my tests, I used a ssh connection to ipv6-localhost ("ssh ::1").
Victor Stinner
http://www.inl.fr/
Quoted 2 lines · Victor Stinner
Do I need a kernel newer than 2.6.17? Or netfilter conntrack doesn't support IPv6?
It does if you use CONFIG_NF_CONNTRACK (nf_conntrack module) and CONFIG_NF_CONNTRACK_IPV6 (nf_conntrack_ipv6); it does NOT if you use CONFIG_IP_NF_CONNTRACK (IPv4-only). Stock kernels use the latter because they need IPv4 NAT support which is not provided by nf_conntrack before kernel version 2.6.20.
Regards,
Signature · 2 lines
Rémi Denis-Courmont http://www.remlab.net/