Commit 1ee19a18 authored by Lorenzo Martinico's avatar Lorenzo Martinico

Remove previous default rules

parent 7495004b
...@@ -232,6 +232,16 @@ fi ...@@ -232,6 +232,16 @@ fi
sysctl net.ipv6.conf.all.accept_ra=1 >> "${logfile}" 2>&1 sysctl net.ipv6.conf.all.accept_ra=1 >> "${logfile}" 2>&1
sysctl net.ipv6.conf.all.forwarding=1 >> "${logfile}" 2>&1 sysctl net.ipv6.conf.all.forwarding=1 >> "${logfile}" 2>&1
defaultroute=$(ip -6 r | grep default)
if [[ ${defaultroute} != "" ]] ; then
echo $defaultroute | while read line
do
echo -e "Dropping default route: \n\t ${line}"
sudo ip -6 route del default
echo -e "To restore, run: \n\t ip -6 route add $(echo ${line} | sed 's/expires \S\+//')"
done
fi
echo "re6st will start, it may take a few minutes before beeing usable" echo "re6st will start, it may take a few minutes before beeing usable"
echo " echo "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment