Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 569 Bytes

archlinux_disable_ipv6.md

File metadata and controls

38 lines (27 loc) · 569 Bytes
  1. sysctl.conf not work
# Disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1

net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.enp3s0.disable_ipv6 = 1

sudo sysctl -p /etc/sysctl.conf

  1. /etc/hosts not work

  2. curl

alias curl="/usr/bin/curl -4"
  1. ssh /etc/ssh/ssh_config
Host *
  AddressFamily inet
  1. /etc/sysctl.d/40-ipv6.conf
# Disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1

net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.enp3s0.disable_ipv6 = 1