Wiredguard陷入系统网络困境



我在家庭网络上部署Wireguard的印象。

我的NUC在老化的NUC5CPYB btw上运行Voidlinux

19 comments
  1. I don't know what you are doing but I got a gigabit link fully saturated with wireguard on my local network. The server was a low-end dual core AMD PC. It's literally as if it's not even there

  2. I have just set up a virtual server with wireguard for a company and i have 8 computers with windows 10 working from home and it's stupid fast. I'm Blowned away. I was thinking that the connection speed would drop a lot on each persons computer at home and i see no slow down's at all in internet speed of each computer. Best thing ever regarding VPN's. And you are right configuration could be better and "easyer" to identify connections on configuration file. Let's wait for future versions of wireguard.

  3. Perhaps you know this but it was not made clear to the viewers: a VPN client's download bandwidth will be limited by the endpoint's upload bandwidth. You showed us that your download bandwidth goes from 200 (without wg) to 60 (with wg), but did not show us what your upload bandwidth is (without wg), so we have no frame of reference for how well wg is actually performing. If the endpoint can only upload at 60mpbs, then a client can only possibly get 60mbps down from that endpoint.

    For help configuring wg over systemd-networkd, look at Archlinux Wiki. Regardless of what distro you use, I find the ArchWiki to be a very useful resource.

    By the way- wg not indicating if there is a connection problem is actually integral to what makes it special. By taking the "dumb pipe" approach- that is, just transmitting data and not caring if the other end is receiving or responding- wg avoids some unnecessary problem-causing complexity.
    OpenVPN cannot work until both sides have said "hello" and shook hands. When a laptop wakes up from sleep, at what point should it send the "hello" message? How many times should it retry until it gets a response? How long should it wait between each retry? There is no one answer that fits every scenario. The entire network is halted until the handshake completes, and it's pretty easy for the internet to be available but unusable because OpenVPN is still playing telephone tag with the endpoint, trying to get that handshake. The same problem plagues active connections- if no data has flowed through a TCP connection for some time, the connection expires and OpenVPN will need to perform a new handshake. This can be avoided by sending "keepalive" packets periodically… messy and inefficient!

    wg uses UDP, which does not care about handshakes. The pipe is created, now send data down the pipe. That's all there is to it! This is generally a better and more efficient approach, but yes the tradeoff is that wg cannot tell you that a connection was severed.

    Good luck!

  4. Yes, managing all the keys and IP's is a problem I haven't been able to find a solution to with WG. If anyone knows a fix for this (if one even exists due to the design of WG) please post somewhere. I've been using OpenVPN for ages, and I'm more comfortable with it at this point. I have a good workflow with OVPN.

  5. I've spent waaay too much time over the past 2 weeks trying to get my OpenWRT router to tunnel all traffic through my VPN server via WireGuard. I've got the router itself working perfectly and tunneling its own traffic through the VPN, both IPv4 and IPv6, but devices connected to the router only have their IPv4 traffic tunneled through the VPN; IPv6 traffic still goes transparently through my ISP. Connecting via WG to my VPN directly from my desktop does work for both IPv4 and IPv6, so I know the issue is not with my desktop or the VPN server. I am pretty sure it has something to do with `ip route` setup on the router, but no configuration setup I've tried has worked so far. It's been driving me nuts.

  6. maybe iperf would be most reliable to test locally?
    anyway, I've been using wireguard for the third year now, never hosted myself tho… I tried at one point but didn't really succeed, I used to use azirevpn and now I use mullvad. Very happy with it xD

Comments are closed.