summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rc.inet14
1 files changed, 4 insertions, 0 deletions
diff --git a/rc.inet1 b/rc.inet1
index 9206645..e809df0 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -329,16 +329,20 @@ if_up() {
IF_UP=0
if [ -e /proc/sys/net/ipv6 ] && [ "${USE_DHCP6[$i]}" != "yes" ] && [ "${USE_SLAAC[$i]}" = "yes" ]; then # configure via SLAAC
info_log "${1}: enabling SLAAC"
+ # Set up SLAAC privacy enhancements if configured.
if [ "${SLAAC_PRIVIPGEN[$i]}" = "yes" ]; then
if [ -n "${SLAAC_SECRET[$i]}" ]; then
+ debug_log "${1}: seeding secret and enabling private IPv6 generation"
echo "${SLAAC_SECRET[$i]}" >/proc/sys/net/ipv6/conf/${1}/stable_secret
echo "2" >/proc/sys/net/ipv6/conf/${1}/addr_gen_mode
else
+ debug_log "${1}: using random secret and enabling private IPv6 generation"
echo -n >/proc/sys/net/ipv6/conf/${1}/stable_secret
echo "3" >/proc/sys/net/ipv6/conf/${1}/addr_gen_mode
fi
fi
if [ "${SLAAC_TEMPADDR[$i]}" = "yes" ]; then
+ debug_log "${1}: enabling SLAAC tempaddr"
echo "2" >/proc/sys/net/ipv6/conf/${1}/use_tempaddr
fi
# Enable accepting of RA packets, unless explicitly configured not to: