wgcf icon indicating copy to clipboard operation
wgcf copied to clipboard

Default ipv6 usage

Open syphyr opened this issue 5 years ago • 5 comments

I found this commit very interesting and it seems to also apply to this project: https://github.com/maple3142/cf-warp/commit/050f1ad995a69e4ec8eb207c545a33e39439cdd0

syphyr avatar Oct 25 '20 20:10 syphyr

--- 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
 #

syphyr avatar Oct 25 '20 20:10 syphyr

Hey there. How do you suggest that we implement this? Add a reference to the documentation?

ViRb3 avatar Feb 22 '21 04:02 ViRb3

i have test on https://ipv6-test.com/ ,but it still use ipv4 addres first when access website.

Loukky avatar Feb 22 '21 04:02 Loukky

yes, this should probably be added to the doc for users that want to default to ipv6 addresses.

syphyr avatar Feb 22 '21 18:02 syphyr

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.

worstperson avatar Jun 01 '21 00:06 worstperson

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.

miyurusankalpa avatar Feb 17 '24 10:02 miyurusankalpa

Yes, it now defaults to ipv6. This change is no longer required.

syphyr avatar Feb 17 '24 13:02 syphyr