Skip to content

Instantly share code, notes, and snippets.

@rany2
Last active May 9, 2021 15:59
Show Gist options
  • Select an option

  • Save rany2/47150eaa04d865394a0dbc77ee798ed9 to your computer and use it in GitHub Desktop.

Select an option

Save rany2/47150eaa04d865394a0dbc77ee798ed9 to your computer and use it in GitHub Desktop.
Chromium/Chrome/Electron doesn't resolve internal IPv6 domains if IPv6 internet isn't available. This fixes that by creating a route to the IPv6 address used to probe for IPv6 internet. https://bugs.chromium.org/p/chromium/issues/detail?id=530482
#!/bin/sh
nmcli connection delete ipv6-cr-dummy1
nmcli connection add type dummy \
connection.id ipv6-cr-dummy1 \
connection.interface-name ipv6-cr-dummy1 \
ipv4.method disabled ipv6.method manual \
ipv6.addresses 100::2c93:c388:6f50:23c3/127 \
ipv6.routes '2001:4860:4860::8888 100::2c93:c388:6f50:23c2' \
ipv6.route-metric 4294967295 connection.autoconnect yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment