wgcf
wgcf copied to clipboard
Default ipv6 usage
I found this commit very interesting and it seems to also apply to this project: https://github.com/maple3142/cf-warp/commit/050f1ad995a69e4ec8eb207c545a33e39439cdd0
--- gai.conf.org 2018-02-01 17:17:18.000000000 +0100
+++ gai.conf 2020-10-25 21:09:21.330391035 +0100
@@ -19,14 +19,15 @@
# Add another rule to the RFC 3484 label table. See section 2.1 in
# RFC 3484. The default is:
#
-#label ::1/128 0
-#label ::/0 1
-#label 2002::/16 2
-#label ::/96 3
-#label ::ffff:0:0/96 4
-#label fec0::/10 5
-#label fc00::/7 6
-#label 2001:0::/32 7
+label ::1/128 0
+label ::/0 1
+label fd01::/16 1
+label 2002::/16 2
+label ::/96 3
+label ::ffff:0:0/96 4
+label fec0::/10 5
+label fc00::/7 6
+label 2001:0::/32 7
#
# This default differs from the tables given in RFC 3484 by handling
# (now obsolete) site-local IPv6 addresses and Unique Local Addresses.
@@ -43,11 +44,12 @@
# Add another rule to the RFC 3484 precedence table. See section 2.1
# and 10.3 in RFC 3484. The default is:
#
-#precedence ::1/128 50
-#precedence ::/0 40
-#precedence 2002::/16 30
-#precedence ::/96 20
-#precedence ::ffff:0:0/96 10
+precedence ::1/128 50
+precedence ::/0 40
+precedence fd01::/16 40
+precedence 2002::/16 30
+precedence ::/96 20
+precedence ::ffff:0:0/96 10
#
# For sites which prefer IPv4 connections change the last line to
#
Hey there. How do you suggest that we implement this? Add a reference to the documentation?
i have test on https://ipv6-test.com/ ,but it still use ipv4 addres first when access website.
yes, this should probably be added to the doc for users that want to default to ipv6 addresses.
My situation is a little different since I'm sharing the connection through NAT, but I assign my addresses from the 2001:DB8::/32 range rather than ULA(FC00::/7). This is a reserved bogon prefix for use in documentation, perfect for use as a local address, and gets treated as a real IPv6 address by clients and browsers.
I just tried out wgcf and my wgcf-profile.conf on fedora has GUA address from the cloudflares address range. So now it prefers IPv6 by default.
If anyone else can confirm my observation, I think we can close this issue.
Yes, it now defaults to ipv6. This change is no longer required.