Skip to content

Commit

Permalink
interfaces: if it looks like SLAAC get rid of it
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Jul 20, 2021
1 parent d6d0971 commit dac9a74
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/opnsense/scripts/interfaces/ppp-linkdown.sh
Expand Up @@ -55,9 +55,10 @@ 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
# remove previous SLAAC addresses as the ISP may
# not respond to these in the upcoming session
ifconfig ${IF} | grep -e autoconf -e deprecated | while read FAMILY ADDR MORE; do
ifconfig ${IF} ${FAMILY} ${ADDR} -alias
done
fi

Expand Down

0 comments on commit dac9a74

Please sign in to comment.