The current Ubuntu LTS does not support NAT tables for IPv6 (i.e. there is no ip6tables -t nat), and I'm fine with that, in fact, a NAT-less environment is the "core" of my networks.
But, the next Ubuntu LTS will add support for IPv6 NAT tables and, the problem is, I have "orders" to not allow it within my IPv6 network, I mean, we'll not support NAT66 (NAT for IPv6).
So, I need to make sure that ip6tables -t nat will not work here. How can I disable it?
Can I just blacklist some kernel modules? Sysctl?
nf_nat_ipv6 is there, blacklisted but, if I run "ip6tables -t nat -L -nv", the module appear.
Please, NAT66 is totally undesired, unnecessary, and I need to make sure it is disabled.
– ThiagoCMC Dec 30 '13 at 21:05sudopart of the command doesn't do you any good. It only applies to theechocommand (which doesn't need special privileges). The redirection, which need privileges, is performed before sudo. So the command is just going to fail withbash: /etc/modprobe.d/blacklist: Permission denied. But perhapsecho blacklist nf_nat_ipv6 | sudo tee -a /etc/modprobe.d/blacklistmight work better. – kasperd Mar 01 '15 at 10:14