Download wgcf and the WireGuard client (wg) and run the following:
wgcf register
This creates a file called wgcf-account.toml. Edit that file and replace the value for the license_key with the value found under Account in your 1.1.1.1 mobile application.
Now run the following to generate the WireGuard configuration based on your account details:
wgcf generate
And now bring up the WireGuard connection:
wg-quick up wgcf-profile.conf
To verify the connection details, run:
wgcf trace
2021/01/31 10:50:17 Using config file: wgcf-account.toml
2021/01/31 10:50:17 Trace result:
fl=***
h=cloudflare.com
ip=***
ts=***
visit_scheme=https
uag=Go-http-client/2.0
colo=***
http=http/2
loc=***
tls=TLSv1.3
sni=plaintext
warp=plus
gateway=off
Note that you may wish to change the MTU in the WireGuard profile to something larger, like 1500, rather than the default of 1280.
Leave a reply