I realise the topic of disabling IPv6 on LXC guests has been done before, but I am really stumped by what is happening on my system, hopefully someone can shed light on what is going on.
Firstly (because people will want to know) the reason for disabling IPv6 is purely to solve an Intel AMT activation issue I have with Meshcentral, everything works fine when device agents register via IPv4 but not with IPv6.
I have disabled IPv6 on the node itself following the recommended method as stated in the official documentation.
For the LXC container I have left the IPv6 address as static and set to "None".
However none of this seems to make a difference - My LXC container still fires up with an auto generated address, even trying the same trick of disabling IPv6 within the container fails.
This issue proving really problematic - It does not seem unreasonable to disable IPv6, our environment is isolated (production lab network) and so does not require the additional address space.
Firstly (because people will want to know) the reason for disabling IPv6 is purely to solve an Intel AMT activation issue I have with Meshcentral, everything works fine when device agents register via IPv4 but not with IPv6.
I have disabled IPv6 on the node itself following the recommended method as stated in the official documentation.
Bash:
root@proxmox:/etc/sysctl.d# cat /etc/sysctl.d/disable-ipv6.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
root@proxmox:/etc/sysctl.d# grep -r . /proc/sys/net/ipv6/conf/*/disable_ipv6
/proc/sys/net/ipv6/conf/all/disable_ipv6:1
/proc/sys/net/ipv6/conf/default/disable_ipv6:1
/proc/sys/net/ipv6/conf/enp1s0f1/disable_ipv6:1
/proc/sys/net/ipv6/conf/fwbr101i0/disable_ipv6:1
/proc/sys/net/ipv6/conf/fwbr102i0/disable_ipv6:1
/proc/sys/net/ipv6/conf/fwln101i0/disable_ipv6:1
/proc/sys/net/ipv6/conf/fwln102i0/disable_ipv6:1
/proc/sys/net/ipv6/conf/fwpr101p0/disable_ipv6:1
/proc/sys/net/ipv6/conf/fwpr102p0/disable_ipv6:1
/proc/sys/net/ipv6/conf/lo/disable_ipv6:1
/proc/sys/net/ipv6/conf/tap101i0/disable_ipv6:1
/proc/sys/net/ipv6/conf/veth100i0/disable_ipv6:1
/proc/sys/net/ipv6/conf/veth102i0/disable_ipv6:1
/proc/sys/net/ipv6/conf/vmbr0/disable_ipv6:1
For the LXC container I have left the IPv6 address as static and set to "None".
However none of this seems to make a difference - My LXC container still fires up with an auto generated address, even trying the same trick of disabling IPv6 within the container fails.
Bash:
root@meshcentral:~# cat /etc/sysctl.d/disable-ipv6.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
root@meshcentral:~# grep -r . /proc/sys/net/ipv6/conf/*/disable_ipv6
/proc/sys/net/ipv6/conf/all/disable_ipv6:1
/proc/sys/net/ipv6/conf/default/disable_ipv6:1
/proc/sys/net/ipv6/conf/eth0/disable_ipv6:0
/proc/sys/net/ipv6/conf/lo/disable_ipv6:1
root@meshcentral:~# ip -6 address
2: eth0@if15: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000
inet6 fe80::5452:d5ff:fe79:f351/64 scope link
valid_lft forever preferred_lft forever
root@meshcentral:~#
This issue proving really problematic - It does not seem unreasonable to disable IPv6, our environment is isolated (production lab network) and so does not require the additional address space.