762 B
762 B
title | date |
---|---|
OpenWrt configuration tips & tricks | 2024-05-31T21:32:01+02:00 |
configuring IPv6 privacy extension
all that's needed is to set a sysctl:
$ secret="$(dd if=/dev/urandom bs=16c count=1 2>/dev/null \
| hexdump -e '8/2 "%04x:" "\n"'| sed 's/:$//')"
$ echo "net.ipv6.conf.default.stable_secret=$secret" \
>>/etc/sysctl.d/30-ipv6-privacy.conf
$ sysctl -w /etc/sysctl.d/30-ipv6-privacy.conf
$ ifup lan # and any other interface that might need it, or reboot
checking the current sysctl value:
$ sysctl -a | grep stable_secret
(thanks to this OpenWrt Discourse thread!)