Skip to content

Commit

Permalink
interfaces: deprecate SLAAC addresses on linkdown; closes #4929
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Jul 13, 2021
1 parent e8d7876 commit 11b5fe6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/opnsense/scripts/interfaces/ppp-linkdown.sh
Expand Up @@ -54,6 +54,11 @@ elif [ "${AF}" = "inet6" ]; then

# Do not remove gateway used during filter reload.
rm -f /tmp/${IF}_routerv6 /tmp/${IF}upv6 /tmp/${IF}_ipv6

# deprecate all previous SLAAC addresses
ifconfig ${IF} | grep autoconf | while read FAMILY ADDR MORE; do
ifconfig ${IF} ${FAMILY} ${ADDR} deprecated
done
fi

daemon -f /usr/local/opnsense/service/configd_ctl.py dns reload
Expand Down

0 comments on commit 11b5fe6

Please sign in to comment.