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

Commit ec98791

Browse files
committed
no need for explicit IPv6 routes, just address? no dhcp-authoritative
1 parent 0f3b4c2 commit ec98791

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

create_ap

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,6 @@ _cleanup() {
844844
# Restore original subnet to internet-facing interface
845845
ip -6 addr del "$INTERNET6"/128 dev ${INTERNET_IFACE}
846846
ip -6 addr add "$INTERNET6"/"$PREFIXLEN6" dev ${INTERNET_IFACE}
847-
ip -6 route replace "$INTERNET6"/"$PREFIXLEN6" dev ${INTERNET_IFACE}
848847
fi
849848
fi
850849

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

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

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

0 commit comments

Comments
 (0)