summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren 'Tadgy' Austin <darren@afterdark.org.uk>2021-03-08 20:30:30 +0000
committerDarren 'Tadgy' Austin <darren@afterdark.org.uk>2021-03-08 20:30:30 +0000
commitaeb252e2a4307a294d8483e4af52b747d7225535 (patch)
tree5f9dc0867c1ccabb2c972af4215604ad96b89302
parent67f3747f96e117e1885c6940c0853b926f6e2d05 (diff)
downloadslacknetsetup-aeb252e2a4307a294d8483e4af52b747d7225535.tar.xz
Added debugging output around new SLAAC enhancements.
-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: