c8h4.io/content/openwrt.md
Christoph Heiss e2dbc106ca
content: add openwrt configuration page
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-05-31 22:06:27 +02:00

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!)