Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

Commit

Permalink
no need for explicit IPv6 routes, just address? no dhcp-authoritative
Browse files Browse the repository at this point in the history
  • Loading branch information
dlenski committed Apr 22, 2020
1 parent 0f3b4c2 commit ec98791
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions create_ap
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,6 @@ _cleanup() {
# Restore original subnet to internet-facing interface
ip -6 addr del "$INTERNET6"/128 dev ${INTERNET_IFACE}
ip -6 addr add "$INTERNET6"/"$PREFIXLEN6" dev ${INTERNET_IFACE}
ip -6 route replace "$INTERNET6"/"$PREFIXLEN6" dev ${INTERNET_IFACE}
fi
fi

Expand Down Expand Up @@ -1822,10 +1821,7 @@ EOF
RA_MODE="ra-stateless"
fi
[[ -n "$DHCP_DNS6" ]] && echo "dhcp-option-force=option6:dns-server,${DHCP_DNS6}" >> $CONFDIR/dnsmasq.conf
cat <<EOF >> $CONFDIR/dnsmasq.conf
dhcp-range=::,constructor:${WIFI_IFACE}, $RA_MODE, slaac, 24h
dhcp-authoritative
EOF
echo "dhcp-range=::,constructor:${WIFI_IFACE}, $RA_MODE, slaac, 24h" >> $CONFDIR/dnsmasq.conf
fi
MTU=$(get_mtu $INTERNET_IFACE)
[[ -n "$MTU" ]] && echo "dhcp-option-force=option:mtu,${MTU}" >> $CONFDIR/dnsmasq.conf
Expand Down Expand Up @@ -1860,10 +1856,8 @@ if [[ "$SHARE_METHOD" != "bridge" ]]; then

ip -6 addr del "$INTERNET6"/"$PREFIXLEN6" dev ${INTERNET_IFACE} || die "$VIRTDIEMSG"
ip -6 addr add "$INTERNET6"/128 dev ${INTERNET_IFACE} || die "$VIRTDIEMSG"
ip -6 route replace "$INTERNET6"/128 dev ${INTERNET_IFACE} || die "$VIRTDIEMSG"

ip -6 addr add "$GATEWAY6"/"$PREFIXLEN6" dev ${WIFI_IFACE} || die "$VIRTDIEMSG"
ip -6 route replace "$INTERNET6"/"$PREFIXLEN6" dev ${WIFI_IFACE} || die "$VIRTDIEMSG"
fi
fi

Expand Down

0 comments on commit ec98791

Please sign in to comment.