RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1265875 - Network bridges with IPV6INIT=no should have disable_ipv6=1 (virtualization use case)
Summary: Network bridges with IPV6INIT=no should have disable_ipv6=1 (virtualization u...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: initscripts
Version: 7.1
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: initscripts Maintenance Team
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks: 1289485 1295396
TreeView+ depends on / blocked
 
Reported: 2015-09-24 02:55 UTC by Ondřej Svoboda
Modified: 2016-11-25 13:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-01 15:35:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ondřej Svoboda 2015-09-24 02:55:06 UTC
Hi everyone,

Description of problem:

oVirt uses network bridges to connect virtual machines to each other (via tun devices) and, optionally, to the outer world. Users can configure IPv6 networking, but when they don't, we consider it a security problem if VMs could still communicate via IPv6 "without consent" so we explicitly use a sysctl command to disable_ipv6=1 on bridges in case there is no IPv6 configured on them.

Currently though, this setting doesn't persist after reboot. Dan Kenigsberg suggested that we use drop-in files in /etc/sysctl.d/ to disable_ipv6=1 on bridges at startup.

However, we would like to ask maintainers of initscripts package to consider disabling IPv6 on bridges when IPV6INIT=no so that both cases were covered for us, right in the system.

Version-Release number of selected component (if applicable):
initscripts-9.49.24-1.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. Create a bridge and connect eth0 to it.

$ cat /etc/sysconfig/network-scripts/ifcfg-ovirtmgmt
# Generated by VDSM version 4.17.2-170.gitdc2c649.el7
DEVICE=ovirtmgmt
TYPE=Bridge
DELAY=0
STP=off
ONBOOT=yes
BOOTPROTO=dhcp
DEFROUTE=no
NM_CONTROLLED=no
IPV6INIT=no
HOTPLUG=no

$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Generated by VDSM version 4.17.2-170.gitdc2c649.el7
DEVICE=eth0
HWADDR=00:1a:4a:23:12:43
BRIDGE=ovirtmgmt
ONBOOT=yes
NM_CONTROLLED=no
IPV6INIT=no

# systemctl restart network

2. Disable IPv6 explicitly (oVirt's VDSM does this on virtualization hosts)

# echo 1 > /proc/sys/net/ipv6/conf/ovirtmgmt/disable_ipv6

Ideally, the network service would have done this.

3. Reboot to see networking restored with IPv6 enabled again.

We could have had a conf file in /etc/sysctl.d/ to solve this use case but we would appreciate if the network service did it for us.

Thank you for giving it a try!

Comment 2 Lukáš Nykrýn 2016-03-01 15:35:25 UTC
I am closing this as notabug. IPV6INIT=no only says that initscripts will not setup ipv6 there. It does not mean that it will disable ipv6 in kernel.


Note You need to log in before you can comment on or make changes to this bug.