Skip to content

Instantly share code, notes, and snippets.

@ranrubin
Created May 3, 2022 14:03
Show Gist options
  • Save ranrubin/647fdda65df479d7cd2797568a2f6e44 to your computer and use it in GitHub Desktop.
Save ranrubin/647fdda65df479d7cd2797568a2f6e44 to your computer and use it in GitHub Desktop.
disabled IPv6, and allowed IPv4 forwarding.
echo 'net.ipv6.conf.all.disable_ipv6=1' | sudo tee -a /etc/apt/sources.list /etc/sysctl.conf
echo 'net.ipv6.conf.default.disable_ipv6=1' | sudo tee -a /etc/sysctl.conf
echo 'net.ipv6.conf.lo.disable_ipv6=1' | sudo tee -a /etc/sysctl.conf
echo 'net.ipv4.ip_forward=1' | sudo tee -a /etc/sysctl.conf
sudo sysctl -p /etc/sysctl.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment