Created
September 10, 2021 16:49
-
-
Save devries/5d788583a9b6459311c8b5fd92396706 to your computer and use it in GitHub Desktop.
Need a random in the sysctl conf file
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
#!/bin/sh | |
# This file goes in /etc/sysctl.d to set up a stable-privacy IPv6 Address | |
cat > 50-rfc7217.conf <<EOF | |
# Set up a secret for RFC7217 private static IPv6 address | |
net.ipv6.conf.default.stable_secret = $(hexdump -n 16 -e '7/2 "%04x:" 1/2 "%04x" "\n"' /dev/urandom) | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment