Created
October 21, 2019 10:50
-
-
Save Disassembler0/da48101db1e1ed7f206a0ed65c47d02c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IFACE=$(ip route get 1 | head -1 | awk '{print $5}') | |
echo "net.ipv6.conf.${IFACE}.disable_ipv6 = 1" >/etc/sysctl.d/60-disable-ipv6.conf | |
systemctl restart procps | |
echo "Disabled IPv6 on ${IFACE}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment