Skip to content

Commit c181485

Browse files
author
Sheng Yang
committed
CLOUDSTACK-6908: Enable IPv6 in sysctl when only necessary
This new way would only enable IPv6 when VR is created in IPv6 shared network. Otherwise IPv6 sysctl options remain disable.
1 parent 59a9883 commit c181485

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

systemvm/patches/debian/config/etc/init.d/cloud-early-config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ setup_interface() {
387387

388388
setup_interface_ipv6() {
389389
sysctl net.ipv6.conf.all.disable_ipv6=0
390+
sysctl net.ipv6.conf.all.forwarding=1
390391
sysctl net.ipv6.conf.all.accept_ra=1
391392

392393
local intfnum=$1

systemvm/patches/debian/config/etc/sysctl.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ net.ipv4.tcp_max_tw_buckets=1000000
4242
net.core.somaxconn=1000000
4343

4444
# Disable IPv6
45-
net.ipv6.conf.all.disable_ipv6 = 0
46-
net.ipv6.conf.all.forwarding = 1
47-
net.ipv6.conf.all.accept_ra = 1
45+
net.ipv6.conf.all.disable_ipv6 = 1
46+
net.ipv6.conf.all.forwarding = 0
47+
net.ipv6.conf.all.accept_ra = 0
4848
net.ipv6.conf.all.accept_redirects = 0
4949
net.ipv6.conf.all.autoconf = 0

0 commit comments

Comments
 (0)