We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0829ee1 commit 10e4a5aCopy full SHA for 10e4a5a
1 file changed
scripts/vm/hypervisor/xenserver/setupxenserver.sh
@@ -23,6 +23,20 @@ usage() {
23
24
}
25
26
+if [ ! -f "/etc/modprobe.d/disable-ipv6" ] ; then
27
+ # disable IPv6 until reboot
28
+ if [ -d "/proc/sys/net/ipv6/conf/all" ] ; then
29
+ /sbin/sysctl -w net.ipv6.conf.all.forwarding=0
30
+ /sbin/sysctl -w net.ipv6.conf.all.accept_ra=0
31
+ /sbin/sysctl -w net.ipv6.conf.all.accept_redirects=0
32
+ /sbin/sysctl -w net.ipv6.conf.all.autoconf=0
33
+ /sbin/sysctl -w net.ipv6.conf.all.disable_ipv6=1
34
+ fi
35
+
36
+ # reinstate the disable-ipv6 file
37
+ echo "alias ipv6 no" > /etc/modprobe.d/disable-ipv6
38
+ echo "alias net-pf-10 off" >> /etc/modprobe.d/disable-ipv6
39
+fi
40
41
#removing iptables entry for vnc ports
42
iptables -D RH-Firewall-1-INPUT -p tcp -m tcp --dport 5900:6099 -j ACCEPT 2>&1
0 commit comments