Skip to content

Instantly share code, notes, and snippets.

@devries
Created September 10, 2021 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devries/5d788583a9b6459311c8b5fd92396706 to your computer and use it in GitHub Desktop.
Save devries/5d788583a9b6459311c8b5fd92396706 to your computer and use it in GitHub Desktop.
Need a random in the sysctl conf file
#!/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