Impossible to disable IPv6 auto, params "accept_ra & autoconf = 0" have no effect on VLAN interfaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ifupdown (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Guys,
I'm trying to disable IPv6 autoconf (and accept_ra too) in one of my servers (Samba4 AC DC) and I am unable to disable it. IPv6 keep appearing no matter what.
Steps to reproduce:
1- Join a Network with a working IPv6 radvd within a tagged VLAN 10, for example:
* Router Ubuntu with:
--
interface vlan10 {
AdvLinkMTU 1500;
prefix 2001:db8:1:10::/64 {
};
route ::/0 {
};
RDNSS 2001:4860:
DNSSL domain.com.br { };
};
--
Of course, for example, vlan10 on Ubuntu router have IPv6 addr = 2001:db8:
-----
2- Configure your Ubuntu 14.04 server interfaces like this:
--
auto vlan10
iface vlan10 inet static
vlan_raw_device eth0
accept_ra 0
autoconf 0
address 172.16.0.10
netmask 24
gateway 172.16.0.1
dns-nameservers 172.16.0.1
--
3- Turn it up:
--
ifup vlan10
* Here is the BUG, IPv6 appear anyway! But it should not!
-
root@ubuntu-
2001:db8:1:10::/64 dev vlan10 proto kernel metric 256 expires 86389sec
fe80::/64 dev eth0 proto kernel metric 256
fe80::/64 dev vlan10 proto kernel metric 256
default via fe80::5054:
-
This is undesired and a security breach. It facilitates MITM IPv6 attacks for tagged vlans.
--
As a workaround, I'm adding the following lines at my /etc/rc.local (of ubuntu-srv-1):
--
# Workaroung against IPv6 autoconf & accept_ra
sysctl -p
ifconfig vlan10 down ; ifconfig vlan10 up
--
Where "sysctl -p" returns:
--
root@ubuntu-
net.ipv6.
net.ipv6.
net.ipv6.
net.ipv6.
net.ipv6.
net.ipv6.
--
This workaround is the only way I'm seeing to completely disable IPv6 for this server (ubuntu-srv-1).
Best,
Thiago
affects: | linux (Ubuntu) → ifupdown (Ubuntu) |
information type: | Private Security → Public |
Oops! I think this BUG belongs to the "ifupdown" package, not to "linux"! Am I right?!