-
Notifications
You must be signed in to change notification settings - Fork 694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internet access does not work (system issue) #50
Comments
I was experiencing the same problem on ubuntu 20.04. I solved my problem by loading the wireguard module. modprobe wireguard I tried the same configuration on several systems like you and the problem only occurred on ubuntu. |
no internet connection here either, already tried on both ubuntu and arch, by the time I connect I lose all internet connectivity. exactly same file works on windows though |
try changing the MTU value to 1400. |
it did work today! one issue I'm trying to debug is when I have wg connected to warp+ on a Linux machine on my lan, I want to use this linux machine as a gateway on my local lan so that all of my devices go through warp, however, when I do this, the connection speed on the lan machines is not as high as when I run on the device itself, I think maybe cloudflare is doing something to realise what I'm doing or either I'm messing something up :p |
This sounds like a network/ISP issue more than anything else. I am using wgcf extensively on Ubuntu 20.04 and I have no problems whatsoever. Unless somebody can propose a change or fix, I'm afraid I can't help much. |
I've been able to use it for linux and it works fine. What I'm researching is, using this linux machine as a default gateway for other devices in the network, in this setup I don't get full download speeds for some reason... |
I am using various versions of Fedora from 29 to 33. When I connect, only ipv6 works but no ipv4. When I try to disconnect and connect again for 100 times it finally starts working with no visible differences in routing and nft. I mam located in Poland and I connect to 162.159.192.1:2408 Once it connects, it works without disconnecting for months. |
I figured it out, it is not working if the network 160.0.0.0/5 is in Allowed IPs. |
When I add 160 on systems where it was nearly impossible to connect, now they are connecting, sometims straight away, sometimes second time, depends on the machine. It's still not perfect so it cant be enabled at boot time, but it is somewhat usable in some way even without that one netqork. |
Only ipv6? For me I have the same issue, if I disconnect and connect within the first 5 tries it'll connect. Runs the command and then checks cloudflare trace to see if it's connected to warp if not I disconnect and reconnect again till it works |
@naveenjohnsonv @ViRb3 @thefalsedev @felipejfc @matroot I'm having same problem, did you guys find any solution? |
Hey everyone, for all of those who's having trouble, i've found a solution, just change the endpoint in the conf file like this: [Interface] just from "engage.cloudflareclient.com" DO NOT change the port, to other dns client, i've been using duckdns [Interface] These are the ips of engage.cloudflareclient.com, so your dns must refer to this ips: Lookup IPv4 Address: 162.159.192.1 I hope you can solve your problems. |
I have been having these same problems since the very early bash scripts to use Warp on Linux. wg-quick up either connects me to Cloudflare, or drops all connectivity. |
Having the same issue. After I am using Arch btw ;) |
I'm ashamed to admit, but I solved this problem by randomly changing the MTU value after each connection. |
hi i'm also facing the no internet issue. any other tips on how to troubleshoot it? |
@gothmog123 I know none other than bruteforcing |
@gothmog123, @0xbkt, I end up with this small script:
So I rerun this until I get success and that works for me always |
I tried this, and it works on my Pop!OS 20.10. This is so weird that we have to brute force until it works. |
I have a similar issue in Ubuntu 18.04. After connecting with [Interface]
PrivateKey = xxx
#Address = 172.16.0.2/32
Address = fd01:5ca1:ab1e:xxx/128
DNS = 1.1.1.1
MTU = 1280
[Peer]
PublicKey = xxx
AllowedIPs = 0.0.0.0/0
AllowedIPs = ::/0
Endpoint = 162.159.192.1:2408 Note only IPv4 should be commented. If I comment IPv6 address then IPv6 stops working. I've also changed Endpoint to IP address, but it does not seem to make a lot of difference. |
@yura-pakhuchiy, this works for me actually. I will report how it goes over time. Thanks. |
@ViRb3 My guess is that Cloudflare provides different local address to a client on each connection. When it matches with 172.16.0.2, then it works, otherwise user have to reconnect. It might be static 172.16.0.2 in some locations (then it will work every time) and dynamic in others. Datacenter I use is in Warsaw, Poland. Omitting IP address probably allows Wireguard to figure it out automagicly in Linux. Problem is that Keenetic router forces you to enter IP address, so omitting address is not solution for everyone. Just a guess. I have not really debugged the issue. |
@yura-pakhuchiy wgcf doesn't use a static IP address, it uses the one that Cloudflare sends it: Lines 49 to 55 in 1780811
As far as I'm aware you cannot omit all |
The solution with commenting ouy IPv4 address has stopped working for me, unfortunately. Now I need to restart wg-quick multiple times to get it working again. |
i have same issue, changing MTU to 1400 makes telegram app connect but nothing more. commenting out ipV4 address in the config file was the solution for me. |
I'd say this isn't a bug as there's not much changes to make with the I suggest @ViRb3 you can update the
|
@galpt could you please confirm that the MTU is the same across all major platforms, namely Windows, Linux, Android, and iOS? When I created wgcf, I took the MTU from what was default for Android at the time, so 1280. I do not have any test devices with me at the moment, but I am happy to change the MTU if it's really 1360 for all platforms. Otherwise, this is likely not the root cause of the issue. I am going to double-check @yura-pakhuchiy's theory though, because while I am using the local address that Cloudflare provides us, I only do this once when the profile is generated, while in reality it may be changing before each connection.
|
@sgloutnikov @shirooo39 @road2react |
My issue that IPv6 networking works well, but IPv4 doesn't.
Things I've tried without success.
I use a similar configuration to connect to another WireGuard instance on my private VPS, and it has no problems with IPv4 connections. Any help would be appreciated. |
Here's a Linux loop that will keep trying until you get connected. It can be run as a single line
I also found that changing the MTU in wgcf-profile.conf helped get me connected. It seems I could change the MTU to almost anything |
I resolve this issue by :
wgcf-profile.conf
/etc/resolv.conf
|
@dhiyaulhaqZA That's far more steps than I use to get a connection. Questions. Have you tried removing any of those parts and still having success? Are you able to connect nearly 100% of the time with your setup? |
Probably
|
@aloptrbl
Also check their status page to make sure there's nothing affecting Warp-related services. |
I resolve this issue by :
For some weird reason, this works for me every time. Commenting out both 'Address' lines also works." |
have tried all this port: no handshake or transfered data being received. |
@aloptrbl |
This worked, and after several retries I'm now getting a working connection quite consistently. But why did re-attempting work? |
I finally figured out how to connect to the service reliably: disable my local IPv6 connection. No matter how many times I disconnect and reconnect, WG always successfully reconnects. The reason I had spotty connection issues were because my IPv6 connection was broken, so I speculate my looping connect/disconnect was mostly attempted over v6 and successfully connected over v4. And I figured it out because my IPv6 got completely fixed today, and I wasn't able to connect at all—until I disabled v6 on NetworkManager. I also see on the logs that my Windows device resolves The problem is, I do want to use IPv6. Is this the same for anyone else? And have you figured out how to connect to WARP over IPv6? PS Long, long ago, I do remember once having only the v4 address in my conf file as suggested here instead of |
Follow up to my last comment: confirmed on Windows machine if I disable IPv4,
With this—at least at my current location and ISP—I've no more complaints with either the WARP service or the wgcf tool. I sincerely thank ViRb3 for this amazing little thing. My last comment on it would be to maybe add all the ports to the generated conf file. Oh, and the Exclude Private IPs thing that WireGuard's Android client does would be very useful as an option for wgcf. |
Never mind, my joy was short-lived. I don't what's at fault here, maybe Linux or maybe NetworkManager handles WireGaurd ass-backwards, but neither the port |
I've successfully got to connect to WARP with IPv6 enabled. For context of the following, I'm using NetworkManager, on Fedora 39; I didn't install First the main blocker: a firewalld bug. Second blocker, not sure if NetwrokManager specific or not: connection fails if IPv6 DNS is not defined. This is only the case for WG over IPv6; if v6 is disabled WG over v4 works fine even if v6 DNS is not defined. On Windows, WG over v6 is working fine without any v6 DNS, so I'm half-convinced it's a NM quirk. wgcf adding v6 DNS the conf file would be nice. With the above workarounds, WG over both v4 and v6 should be working fine without having to cycle connect/reconnects. At least that is the case for me this far. EDIT After a sleep/wake cycle on the Fedora machine, no more problems with any website or service using default |
Thank you @LuuOW for your solution. I chose to add the domain to /etc/hosts instead. Here is the automation: |
This comment was marked as off-topic.
This comment was marked as off-topic.
im trying to connect using the ipv6 endpoint but im stuck with "warpv6: Sending handshake initiation to peer 13 ([2606:4700:d0::a29f:c001]:2408/0%0)" |
According to the docs, the IPv6 Range is Simply use |
the endpoint is correct and i can ping but not connect, i think its a problem with how network-manager handle ipv6 because i can connect using wireguard on android using ipv6 endpoint normally |
For my case, on Fedora, the problem was firewalld's this setting Thanks to @oxwivi for doing the troubleshooting. |
Basically if I run
wg-quick up wgcf-profile.conf
I have no internet access, pings fail, but somehow telegram works.
In the version without this revert commit , I had no internet at all, even in telegram. Only now when I updated to the version with this commit I find this irregularity. The same conf on other clients like android and windows work just fine.
I'm on Pop!OS 20.10, which is based on Ubuntu 20.10
Any idea what could be the problem?
Edit from maintainer (09/11/2022):
Just to give some organization to all the "internet does not work" reports. There are two known cases when this may happen:
Edit from maintainer (26/11/2022):
Some more advise can be found here: #50 (comment)
The text was updated successfully, but these errors were encountered: