Skip to content

Instantly share code, notes, and snippets.

@bumbummen99
Last active June 7, 2023 15:41
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 bumbummen99/069202853dd65d6addf3c117bed9b2d5 to your computer and use it in GitHub Desktop.
Save bumbummen99/069202853dd65d6addf3c117bed9b2d5 to your computer and use it in GitHub Desktop.
Script to disable SLAAC / IPv6 Privacy Extensions (RFC 4942) on Raspbian (Debian).
#!/usr/bin/env bash
#
# Script to disable SLAAC / IPv6 Privacy Extensions (RFC 4942) on Raspbian (Debian).
#
# Usage:
# $ wget -O - https://gist.github.com/bumbummen99/069202853dd65d6addf3c117bed9b2d5/raw/slaac-off.sh | bash
#
# Author: Patrick Henninger
# License: GNU GPL v3
# Disable all SLAAC settings
sed -i -e 's/slaac/#slaac/' /etc/dhcpcd.conf
# Disable SLAAC
echo "slaac hwaddr" >> /etc/dhcpcd.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment