content: add openwrt configuration page
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
parent
a35a539939
commit
e2dbc106ca
25
content/openwrt.md
Normal file
25
content/openwrt.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
title: OpenWrt configuration tips & tricks
|
||||
date: 2024-05-31T21:32:01+02:00
|
||||
---
|
||||
|
||||
## configuring IPv6 privacy extension
|
||||
|
||||
all that's needed is to set a sysctl:
|
||||
|
||||
```shell {lineanchors=list}
|
||||
$ 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:
|
||||
|
||||
```shell {lineanchors=list}
|
||||
$ sysctl -a | grep stable_secret
|
||||
```
|
||||
|
||||
(thanks to [this OpenWrt Discourse thread](https://forum.openwrt.org/t/cascading-routers-dhcpv6-and-unwanted-eui64-w-slaac-on-wan6/18993/37)!)
|
Loading…
Reference in a new issue