Development discussion of WireGuard
 help / color / mirror / Atom feed
From: Clark Case <clarkcase@gmail.com>
To: wireguard@lists.zx2c4.com
Subject: Windows Client Can't Set MTU Below 1280
Date: Fri, 4 Nov 2022 20:30:25 -0400	[thread overview]
Message-ID: <CAHDWkzZG9MhJ3qe7Q_BYrcYnynBec=VDFG-_T7qp2Fdc6GS42A@mail.gmail.com> (raw)

Hi All - I'm trying to set up a WireGuard tunnel via udp2raw. The
client side is running Windows, the server is the linuxserver docker
container

I can get the tunnel set up through udp2raw, I can ping across it, I
can use mosh across it, I can sometimes do ssh, but I can't get HTTP
either with a browser or with curl. Based on some input on reddit, I'm
trying to lower the MTU of the virtual adapter. However, the lower
limit that seems to be permitted by the client seems to be 1280 - and
1280 doesn't fix the problem. Below 1280, I get an error when trying
to activate the tunnel.

I'm assuming that this is because of some code in here:
https://github.com/WireGuard/wireguard-windows/blob/master/tunnel/mtumonitor.go

var minMTU uint32
if family == windows.AF_INET {
minMTU = 576
} else if family == windows.AF_INET6 {
minMTU = 1280
}
I'm not trying to do anything via IPV6, and I don't have an IPV6
address specified on the server side or the client side config files.
I've tried disabling IPV6 in the physical adapter the virtual adapter
is binding to, but I still get the error.

So, is there something else I should be doing to convince WireGuard
that I just want to do IPV4?

                 reply	other threads:[~2022-11-05  0:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHDWkzZG9MhJ3qe7Q_BYrcYnynBec=VDFG-_T7qp2Fdc6GS42A@mail.gmail.com' \
    --to=clarkcase@gmail.com \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).