Skip to contentSkip to conversation

Topics for the community meeting (Wed, 28th Nov 2018)

Openvpn-devel Samuli Seppänen 6 participants 11 messages Nov 27, 2018 – Dec 10, 2018

lore
Share & tools
lore
#0 lore raw

Hi,

We're going to have an IRC meeting starting at 11:30 CET (10:30 UTC) on #openvpn-meeting <at> irc.freenode.net. You do not have to be logged in to Freenode to join the channel.

Current topic list along with basic information is here:

<https://community.openvpn.net/openvpn/wiki/Topics-2018-11-28>

If you have any other things you'd like to bring up, respond to this mail, send me mail privately or add them to the list yourself.

In case you can't attend the meeting, please feel free to make comments on the topics by responding to this email or to the summary email sent after the meeting. Whenever possible, we'll also respond to existing, related email threads.

--
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock

#1 lore raw

[Openvpn-devel] Summary of the community meeting (Wed, 28th Nov 2018)

Hi,

Here's the summary of the IRC meeting.

---

COMMUNITY MEETING

Place: #openvpn-meeting on irc.freenode.net
Date: Wednesday 28th November 2018
Time: 11:30 CET (10:30 UTC)

Planned meeting topics for this meeting were here:

<https://community.openvpn.net/openvpn/wiki/Topics-2018-11-28>

The next meeting has not been scheduled yet.

Your local meeting time is easy to check from services such as

<http://www.timeanddate.com/worldclock>

SUMMARY

cron2, dazo, ordex, plaisthos and rozmansi participated in this meeting.

--

Talked about tap-windows6 HLK testing. Stephen Stair is working on it, and it looks promising, though progress is a bit slow due to other projects getting in the way.

--

Discussed OSTIF's proposal to security audit the changes between OpenVPN 2.4.0 and 2.5.0. Agreed that auditing the new code paths would be beneficial. In particular these paths:

- tls-crypt v2
- vlan patches
- Refactored ifconfig handling

Agreed that the audit should target OpenVPN 2.5.0, i.e. the already stabilized codebase.

--

Had a discussion about --fragment. Agreed that if we can fix internal fragmentation without needing a change in frame format then we can definitely deprecate --fragment in the long-term. Also noted that lack of tun-mtu support on Windows might be for historic reasons and might not apply to tap-windows6. Also questioned whether the default MTU of 1500 is the best possible choice.

--

Full chatlog attached.

Signature · 5 lines
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock

<rozmansi> hello
<cron2> good morning
<cron2> so, meeting time!
<dazo> hey!
<lev__> hello
<rozmansi> hi
<cron2> looking at the agenda, we need mattock and ordex for most of it...
<cron2> I can do the tap-windows6 HLK testing update - "Stephen Stair is working on it, and it looks promising, though progress is a bit slow due to other projects getting in the way"
<cron2> tls-crypt-v2 is done (all patches related to this have been ACKed and merged)
<plaisthos> hello
<cron2> moin :)
<dazo> Actually, we have a couple things which needs to be discussed too ... but don't want to "steal" the time from other topics on the list, if they can be taken first
<dazo> (keywords: --fragment and --mssfix )
<cron2> well, we can discuss 1. and mattock can pick up from IRC log... (security-auditing, OSTIF)
<dazo> sounds good
<cron2> there will be quite a bit of new code - tls-crypt v2, vlan patches, async client-connect, sitnl, plus refactoring changes
<cron2> so I think an audit on those parts would be good
<cron2> focus on "new code", obviously :)
<dazo> in regards to sec audit of tls-crypt-v2 would be mostly appropriate, perhaps also vlan patches as well ... but not sure it makes much sense to have a security audit on async client-connect, sitnl and non-crypto related stuff <dazo> it basically depends on what kind of sec audit we expect
<cron2> async client-connect maybe not so, but if you can trick a server-pushed ifconfig string into a bug in the sitnl stuff, that might be an attack angle against a client
<dazo> also considering that cov-scans have not revealed anything in the general code quality
<cron2> so everything that touches "network packets" or "coming from PUSH_REPLY"
<cron2> yes
<dazo> good point ... but iirc, the netlink API is fairly strict here, and that would more be a kernel issue than a sitnl issue
<dazo> ordex: ^^^
<cron2> for the netlink bits, yes, but since it's refactoring the whole ifconfig stuff, and we're still calling "sudo ifconfig $user_supplied_string" on other platforms...
<cron2> (I do not think there is an attack angle since we only pass 32bit IP addresses, not "strings")
<dazo> ahh, yeah, my scope was limited to netlink only ... but yeah, you're right on the the places we do execve() stuff
<plaisthos> tls crypt is a different beast from the rest
<ordex> sorry overlooked the meeting email
<plaisthos> the rest a "normal" auditor can do
<plaisthos> for tls-crypt you need someone you can understand well enough to also look if tls-crypt as crypto implementation is solid
<plaisthos> "This xor encryption does not have any buffer overflows and also does not allow remote code execution" is pretty pointless :D
<dazo> :-P
<ordex> so we got a audit request from OSTIF (sorry I have missed that)
<dazo> iiuc, more like OSTIF asks us if it makes sense to do so
<ordex> oh ok
<ordex> we also have sitnl coming - I am wondering if it makes sense to wait for that ?
<ordex> and vlan patches too
<cron2> yes
<ordex> but I thinkit would make sense to also wait for some tetsing to be done, so maybe we can wait for when a full 2.5 release is out ?
<dazo> we know that 2.4.0 is good ... we don't believe we've done it (much) worse in the releases since that one .... so I think we can wait until 2.5.0 is out and then fix things as they appear
<cron2> +1
<ordex> +1
<ordex> also because by releaseing beta/rc versions we might have bug report from users, which we can fix beforehand and avoid wasting ostif time on that. i.e. OSTIF should join after the "stabilization" phase. so what dazo says :) <ordex> *reportS
<rozmansi> have to catch another meeting... take care, bye.
<ordex> bye!
<ordex> I think this meeting is somewhat finishing anyway .. ? :D
<dazo> so anything else on the sec-audit/OSTIF front?
<cron2> not from me
<cron2> dazo: have you seen the uncrustify-git-commit-thingie that plaisthos found?
<dazo> I've seen the discussion ... and it makes sense on conceptual level ... but haven't looked at that approach in detail
<dazo> but for that to work, we anyhow need to have a reasonable uncrust config we can use
<cron2> where's the 2.4.0 config we had?
<dazo> it's in dev-tools/uncrustify.conf ... but we might want to adjust it somewhat
* rozmansi has quit (Ping timeout: 256 seconds)
<dazo> so that it doesn't change anything in our current code base ..... or that we do another round of uncrusting our current code
<cron2> this is one of our biggest issues right now - large patch sets from plaisthos and ordex that get sent back after 2+ weeks for style issues
<dazo> yupp
<dazo> for new code/files, this the current config can be used ... but if it starts modifying lines not being modified by the patch, then we have real challenge
<cron2> right
<ordex> yeah
<plaisthos> for the client-connect patch I did a "make uncrustify clean" commit to be able to use uncrustify during my repase
<cron2> which can be a bit problematic if it changes context in a way that "git am" fails later on
<plaisthos> cron2: was only in unrelated code but yes
<cron2> (I do not think this very likely)
<cron2> indeed
<dazo> these are the changes our current uncrustify config wants on the latest git master .... http://termbin.com/y9yt
<cron2> huh
<dazo> (I only took .c and .h files)
<cron2> did we leave out sample-plugins last time?
<dazo> it seems so :/
<cron2> because these changes are all unambiguously (sp?) agreed...
<dazo> and lz4 stuff too
<cron2> well, the lz4 has the "we do as little changes as possible on import" disadvantage
<cron2> (so it can be diff'ed to upstream releases)
<dazo> agreed, this was just a simple test .... for f in $(git ls-files | grep -E \\.[hc]\$ | grep -v "vendor/"); do echo "=========> $f"; uncrustify -c dev-tools/uncrustify.conf --no-backup -l C -p debug.uncr $f; echo; echo; done; <cron2> huh
<cron2> we left in changes to crypto.c which do not have {}
<dazo> but we're really sloppy about curly braces :-P
<cron2> - ret = false;;
<cron2> huh
<cron2> so, looking at these diffs (excluding compat-lz4*) I would say "we should apply them, via patch-on-the-list, and apply the pre-commit-hook ASAP!!"
<cron2> - fprintf(fp, "%"PRIi64".%06ld %x %s%s%s%s",
<cron2> + fprintf(fp, "%" PRIi64 ".%06ld %x %s%s%s%s",
<cron2> these ones I can live with either way...
<cron2> but it's only a few
<dazo> most of this is really fair changes ... I don't disagree at all
<cron2> adding extra blank lines before #endif if that wraps only a single line (forward.h) looks a bit silly, so that option might need tweaking
<cron2> -#endif
<cron2> +#endif /* if P2MP */
<cron2> haha, there we go :)
<dazo> ;-)
<dazo> just looking at these ones:
<dazo> bool error; /* if true, fatal TCP error has occurred,
<dazo> - * requiring that connection be restarted */
<dazo> + * requiring that connection be restarted */
<dazo> I think that we should have the closing */ on a separate line in the multi-line approach ... then all the * would be aligned too
<dazo> oh, this one actually aligns it ... anyhow I think I saw one which did the opposite
<cron2> this might have been tab/space related
<dazo> yeah, could be
<dazo> + |MBEDTLS_X509_ID_FLAG( MBEDTLS_MD_SHA384 )
<dazo> this looks wrong ... shouldn't it be: | MBEDTLS_X509_ID_FLAG(MBEDTLS_MD_SHA384) ?
<cron2> the PRIi64 change is new - this is all "old code", so I think you have a newer uncrustify version :-)
<dazo> uncrustify-0.64-1.el7.x86_64
<dazo> I don't recall what we used last time, but I don't think it's that much newer :)
<cron2> but it does change new things :-)
<dazo> yeah, it does
<cron2> some of the code is just new and wasn't uncrustified (so, shame on us) but other stuff has been there longer
<plaisthos> cron2: yeah there is also the oddity that if you add lines to a short #ifdef section the #endif gets further away and then uncrusity adds the comment
<dazo> oh the config has been updated since the run we had
<dazo> commit 4cd4899e8
<dazo> that shouldn't change that much though ...
<cron2> right, but that commit also includes the changes effected by this
<dazo> I wonder if we've just done lots of changes since jan 2017 and not been picky enough on the coding style :)
<plaisthos> probably the latter
<cron2> half of the brackets is "new code". But we forgot the samples in the first run.
<cron2> plus, new uncrustify :-)
<plaisthos> someone needed to point out to me that I could just run uncrustify on my commits before commiting because for some reason that never occured to me
<dazo> :)
<dazo> plaisthos: trust me, I'll enforce this on openvpn3-linux too :-P
<dazo> (just need to wrap up a reasonable config for it there as well)
<plaisthos> dazo: openvpn3 linux is different mess to begin with, since you are constantly switching from GNU style+linux style mix to OpenVPN C style with random C++ style
<dazo> plaisthos: no no no ... *my* code is everything outside the core library ... the core library we can't do much about now :-P
<plaisthos> dazo: yes but when working on the code I am switched from core to openvpn3-linux back and forth
<dazo> we need to trick james to use a more reasonable coding style as well ... and enforce uncrustify runs on *commit* time for him :-P
<dazo> yeah, that's a real challenge, I see that
<cron2> can you make a video of that? I want to see this ;-)
<dazo> :-D
<plaisthos> dazo: the more modern code of James more closely follows Linux coding+what emacs automatically does
<plaisthos> so it is like writing linux style but with GNU identation rules
<plaisthos> and tab is 8 instead of 4
<dazo> unfortunately ... I've experienced slight changes styles in emacs on upgrades as well :/
<dazo> so .... okay ... that's coding style
<dazo> tls-crypt-v2 update? isn't that done?
<dazo> ordex ?
<cron2> the update is "the open patches have been merged", done
<dazo> cool!
<dazo> sitnl patches is being reviewed by plaisthos, I believe (and I'll follow up on the struct argv patches too)
<dazo> vlan patches?
<cron2> stuck somewhere between ordex and plaisthos, I assume, and neither wants to talk about it?
<plaisthos> cron2: my last information was that you and ordex somehow magically produce some patchset that I can review
<plaisthos> and I would do the same with client-connect for one of you two to review
<ordex> dazo: yes tls-crypt-v2 is done
<ordex> yes, for sitnl I have to provide a new patchset - it is WIP
<dazo> goodie :)
<dazo> So can we take a quick discussion about --fragment and --mssfix now? ... primarily to just get the ball starting to roll
<cron2> I've seen the patches, but I admit I have no answers. So I really need to read into this (and for the --fragment frame stuff, I need syzzer)
<dazo> right, we're actually going a bit further ... we want to deprecate --fragment in a longer term
<cron2> if we can fix internal fragmentation without needing a change in frame format, I'm all for it
<dazo> we've looked into what to do in OpenVPN 3 .... and the complexity of --fragment is not really wanted (packet re-assembly)
<dazo> so what we're doing is to make --mssfix better
<cron2> you can't avoid fragmentation if you need to carry big UDP packets
<dazo> which covers TCP packets inside the tunnel
<cron2> mssfix will only help TCP, nothing else...
<cron2> exactly
<dazo> and then send ICMP packet too big responses otherwise
<cron2> this will not work for real-world traffic in the general case
<dazo> the ICMP responses would be inside the tunnel though
<plaisthos> To get cron2 up to speed
<cron2> it will still not work. If the UDP-generating application isn't interested in the ICMP packet too bigs, it will still send out too-big UDP packets
<dazo> yes please :)
<plaisthos> we had an internal discussion. And the main goal is to make the packets inside the tunnel small enough or use --fragment. --fragment is a horrible option that we try to elimiate as much possible
<cron2> if we reduce tun-mtu today, it would achieve the same thing (make the linux stack generate ICMP ptb)
<plaisthos> so for makeing the packets small you can either lower the tun-mtu or do workaround like mssfix
<plaisthos> James decided a few years ago that *always* tun-mtu 1500 and mssfix is the best solution
<cron2> "small enough packets" is best, but it will not be possible to do in the general case... unfortunately
<plaisthos> the windows tap driver does always 1500 unless you do some manual configuration, tun-mtu is ignored on windows
<dazo> (the windows tun-mtu stuff might be for historic reasons, where it was needed to recreate the tun device to change the MTU ... not sure if that has improved since then)
<cron2> as a workaround for this, generating the ICMP ptb locally might be better than "silently lose packets", I'm with you there :-)
<plaisthos> and current result is that we do mssfix to vpn udp packets lower than outer mtu and hope that for bigger packets udp fragmentation does not break
<cron2> understood (and it does, unfortunately)
<plaisthos> yes on my network udp fragemnts break, have no dig into what breaks them
<dazo> and we also consider that TCP is mostly used inside the tunnels .... and modern based applications UDP often will account for MTU issues and "fix" this on their own
<cron2> we can assume that in a non-trivial subset of use cases, external UDP fragments will not work. So that's something to avoid.
<cron2> dazo: the key word is "often", but I've seen enough cases where it didn't work, so --fragment was indeed very useful to fix that. Which is annyoing as it needs state for reassembly, there is complex code and many bugs lurking. <dazo> but that does not mean it will help UDP cases where the senders just assume it will work and not bother checking if it really works
<cron2> like, DNS with DNSSEC, unfortunately...
<dazo> yeah, I'm fully with you on that
<dazo> yikes
<cron2> a typical DNS response can be close to 1500 bytes these days, if you have a few records and all the signatures...
<plaisthos> cron2: but doesn't have that a 1280 limit?
<dazo> right ... but I've seen a growth of DNS queries moved over to TCP too
<cron2> plaisthos: that's the minimum IPv6 packet size that a network must transport
<cron2> dazo: which is one way to cope if UDP doesn't give a reply, yes
<plaisthos> oh right it just depends on udp fragmentation
<plaisthos> dazo: fallback to tcp
<dazo> but I'm not saying we're happy about this ... and we do want to make this "just work" ... but implementing --fragment is just too intrusive as it is in openvpn 2 today
<cron2> for DNS it is complicated (EDNS0 maximum packet size, truncation, tcp fallback, broken firewalls, ...)
<plaisthos> you mean in openvpn3
<dazo> so we just want to start the discussion with the community to come up with something which can work reasonably well or better
<cron2> dazo: I understand, and accept the reasoning
<dazo> plaisthos: I meant implementing --fragment in openvpn 3 as it is in openvpn 2 today, is too intrusive
<cron2> I wonder how we can get this tested in a meaningful way... it needs exposure to lots of funny stuff inside the tunnel to see what works and what breaks, and why
<cron2> like, does QUIC cope if you have an openvpn tunnel with a small inside MTU, because it is tunneld through an OpenVPN tunnel through an IPSEC tunnel, or so
<plaisthos> but based on our discussion here and if do not implement something like --fragment in oepnvpn3 we only have the option to lower tun-mtu to something that fits and declare networks that support 1280+vpn overhead as broken and openvpn(3) ccannot work on them <cron2> "that do not"
<plaisthos> yes not support 1280+overhead
<dazo> lev__ is the one digging into the --mssfix and ICMP ptb responses for openvpn3 ... this will appear in openvpn3-linux plus there is an ugly reference client in the openvpn3 project as well (test/ovpncli/cli.cpp) .... so this would be a way to test things as it evolves <cron2> yep
<dazo> another aspect with tun-mtu ... we don't want to reduce it unless strictly needed ... so we'd like to have 1500 as the default where it works, but if it doesn't - ideally OpenVPN should detect this itself and potentially reduce it dynamically <plaisthos> I never got the reason why we want 1500 as default
<plaisthos> it is a stupid choice for non tap
<dazo> That I don't know either ... just following James in this case
<plaisthos> it makes perfect sense on tap devices but for tun I am really not convinced. And the windows tap driver is not up to the task is really a lame excuse
<plaisthos> James argument for 1500 only works in a world where mssfix actually works for nearly all traffic
<dazo> for the win-tap driver, we need to see if things have changed there .... with the old win-tap driver, I have no doubt this was a real issue .... with tap-windows6, I'm not so sure any more
<cron2> I'm fairly sure you can set the MTU on windows as well. It's just that nobody bothered yet to figure out how (do you need an ioctl to the driver, is there an API call to windows, do you call netsh?)
<cron2> anyway. Thanks for the update, I actually need to make the next meeting now...
<dazo> sure, lets call it a meeting ... and we'll send mattock the scrollback :)

#2 lore raw

Re: [Openvpn-devel] Summary of the community meeting (Wed, 28th Nov 2018)

Hi,

Quoted 9 lines · Samuli Seppänen

[...]

Had a discussion about --fragment. Agreed that if we can fix internal fragmentation without needing a change in frame format then we can definitely deprecate --fragment in the long-term. Also noted that lack of tun-mtu support on Windows might be for historic reasons and might not apply to tap-windows6. Also questioned whether the default MTU of 1500 is the best possible choice.

I wish I'd known about this discussion - I saw the topic list and figured I wouldn't be able to contribute much to the discussion. Regarding MTU/fragment however.....

--fragment is/was very useful on a system where you do not / cannot change the tun MTU size. Up to Windows XP, this was not possible without rebooting the OS. Since Vista, it *is* possible to change the MTU of an adapter on the fly (as explained in my trusty old cookbook, of course ;))

--fragment is also quite useful in combination with compression, to ensure that the payload never exceeded a particular size *after* compression+encryption+encapsulation.

Now that Windows XP and below are gone, and now that compression+encryption is considered evil (voracle) it might be possible to better calculate/predict the maximum encrypted payload size. With that, it would be possible to fix the link-mtu to 1500 (or whatever is set on the outbound interface) and then subtract the header size to get a meaningful tun-mtu size.

As for mtu=1500 being the best possible choice: that depends if you are doing routing on your VPN or not. 95+ % of all Ethernet LANs have the MTU set to 1500 - increasing the tun MTU to 9000 does not increase performance, as forwarded packets are coming in from the LAN at 1500 bytes. If we can come up with an efficient method to gather a bunch of packets before processing them inside OpenVPN then I am all for increasing the MTU to something higher (why not go for 65000?). However, until we can do that increasing the tun mtu size will do little to improve (routing/forwarding) performance.

Having said all that, I do have one gripe with the way the link or tun mtu is calculated in the current codebase:
In the 2.3 code base, the server tun mtu size was equal to the client tun-mtu size.
In the 2.4+ code base, the server-side tun mtu size is set to some ridiculous low level (with link-mtu 1500 set) in order to accomocate all possible encryption ciphers - *even if I add ncp-disable* . To me, that does not make a whole lot of sense. If I add '--ncp-disable' I'd expect the client and the server to behave pretty much like an OpenVPN 2.3 client (with a possible 3 bytes difference to accomodate for the peer id).

JM2CW,

JJK

#3 lore raw

Re: [Openvpn-devel] Summary of the community meeting (Wed, 28th Nov 2018)

Hi Jan Just,

(forgot to add openvpn-devel in previous mail)

Some background information.

In openvpn3 we decided not to implement fragments, because:

- this is quite a big feature which has to be supported through the whole
stack (client, server, kernel module)
- we assume that it is not used by most of users

However, for those who needs --fragment, we'll implement:

- mssfix support, this should solve problems with tcp-based protocols
- sending icmp "packet too big" for other protocols, we assume that
they'll respect icmp response

--fragment is/was very useful on a system where you do not / cannot change

Quoted 5 lines

the tun MTU size. Up to Windows XP, this was not
possible without rebooting the OS. Since Vista, it *is* possible to change the MTU of an adapter on the fly (as explained in my
trusty old cookbook, of course ;))

As James wrote a while ago (13 years ago :)

https://openvpn.net/archive/openvpn-users/2005-10/msg00354.html

Quoted 1 line

A lot of experience gained during the OpenVPN 1.x releases showed that

it's best to fix the tunnel MTU at

Quoted 1 line

1500 and vary the other parameters (and use --mssfix to prevent

fragmentation rather than a lower tunnel MTU).

Don't know if still holds. Assuming that we can change tun-mtu on any supported platforms, do you think that it is better
to do _that_, rather than have mssfix/icmp ptb workaround?

Quoted 4 lines

With that, it would be possible to fix the link-mtu to 1500 (or whatever is set on the outbound interface) and then subtract the header size to get a meaningful tun-mtu size.

Do you think 1500 is a safe value? Arne just mentioned today that his network interface MTU is 1500 and router's MTU is 1492 due to PPPoE, and openvpn2 works because it assumes that mtu is 1450.

Quoted 12 lines

Having said all that, I do have one gripe with the way the link or tun mtu is calculated in the current codebase:
In the 2.3 code base, the server tun mtu size was equal to the client tun-mtu size.
In the 2.4+ code base, the server-side tun mtu size is set to some ridiculous low level (with link-mtu 1500 set) in order to accomocate all possible encryption ciphers - *even if I add ncp-disable* . To me, that does not make a whole lot of sense. If I
add '--ncp-disable' I'd expect the client and the server to behave pretty much like an OpenVPN 2.3 client (with a possible 3
bytes difference to accomodate for the peer id).

With 2.4 codebase I noticed that what man page says is not what openvpn2 code does - it does include transport overhead, while
man page says it doesn't (copying my mail here):

Announce to TCP sessions running over the tunnel that they
should limit their send packet sizes such that after OpenVPN has encapsulated them, the resulting UDP packet size that OpenVPN sends to its peer will not exceed max bytes. The default value is 1450.

The max parameter is interpreted in the same way as the
--link-mtu parameter, i.e. the UDP packet size after encapsulation overhead has been added in, but not including the UDP header itself. Resulting packet would be at most 28 bytes larger for IPv4 and 48 bytes for IPv6 (20/40 bytes for IP header and 8 bytes for UDP header).

So it means that with "mssfix" 1300 resulting IPv4 packet size would be at most 1328.

This is what I see in Wireshark (server - git master, client 2.4.6):

Internet Protocol Version 4, Src: 128.199.xxx.yyy, Dst: 10.0.200.20

    0100 .... = Version: 4
    .... 0101 = Header Length: 20 bytes (5)
    Total Length: 1300
    Protocol: UDP (17)
User Datagram Protocol, Src Port: 1194, Dst Port: 1194
    Source Port: 1194
    Destination Port: 1194
    Length: 1280
OpenVPN Protocol
    Type: 0x49 [opcode/key_id]
    Peer ID: 0
    Data (1268 bytes)

While man page statement is technically correct - UDP packet size is 1300, which is "at most 1328", I think it should say:

Quoted 1 line

the resulting IP packet size that OpenVPN sends to its peer will not

exceed max bytes

and

Quoted 1 line

The max parameter is interpreted in the same way as the --link-mtu

parameter, i.e. the IP packet size
after encapsulation overhead has been added in, including UDP and IP headers.

-Lev

#4 lore raw

Re: [Openvpn-devel] Summary of the community meeting (Wed, 28th Nov 2018)

Quoted 40 lines

Hi Jan Just,

(forgot to add openvpn-devel in previous mail)

Some background information.

In openvpn3 we decided not to implement fragments, because:

- this is quite a big feature which has to be supported through the whole
stack (client, server, kernel module)
- we assume that it is not used by most of users

However, for those who needs --fragment, we'll implement:

- mssfix support, this should solve problems with tcp-based protocols
- sending icmp "packet too big" for other protocols, we assume that
they'll respect icmp response

--fragment is/was very useful on a system where you do not / cannot change

Quoted 6 lines

the tun MTU size. Up to Windows XP, this was not possible without rebooting the OS. Since Vista, it *is* possible to change
the MTU of an adapter on the fly (as explained in my trusty old cookbook, of course ;))

As James wrote a while ago (13 years ago :)

https://openvpn.net/archive/openvpn-users/2005-10/msg00354.html

Quoted 1 line

A lot of experience gained during the OpenVPN 1.x releases showed that

it's best to fix the tunnel MTU at

Quoted 1 line

1500 and vary the other parameters (and use --mssfix to prevent

fragmentation rather than a lower tunnel MTU).

Don't know if still holds. Assuming that we can change tun-mtu on any supported platforms, do you think that it is better
to do _that_, rather than have mssfix/icmp ptb workaround?

Quoted 8 lines
Quoted 4 lines

With that, it would be possible to fix the link-mtu to 1500 (or whatever is set on the outbound interface) and then subtract the header size to get a meaningful tun-mtu size.

Do you think 1500 is a safe value? Arne just mentioned today that his network interface MTU is 1500 and router's MTU is 1492 due to PPPoE, and openvpn2 works because it assumes that mtu is 1450.

I also think 1500 isn't safe because different types ob internet connections may reduce it, like the mentioned PPPoE.

Regards,
Simon

#5 lore raw

Re: [Openvpn-devel] Summary of the community meeting (Wed, 28th Nov 2018)

Hi Lev, Simon,

Quoted 43 lines · Simon Matter
Quoted 43 lines

Hi Jan Just,

(forgot to add openvpn-devel in previous mail)

Some background information.

In openvpn3 we decided not to implement fragments, because:

- this is quite a big feature which has to be supported through the whole
stack (client, server, kernel module)
- we assume that it is not used by most of users

However, for those who needs --fragment, we'll implement:

- mssfix support, this should solve problems with tcp-based protocols
- sending icmp "packet too big" for other protocols, we assume that
they'll respect icmp response

--fragment is/was very useful on a system where you do not / cannot change

Quoted 6 lines

the tun MTU size. Up to Windows XP, this was not possible without rebooting the OS. Since Vista, it *is* possible to change
the MTU of an adapter on the fly (as explained in my trusty old cookbook, of course ;))

As James wrote a while ago (13 years ago :)

https://openvpn.net/archive/openvpn-users/2005-10/msg00354.html

Quoted 1 line

A lot of experience gained during the OpenVPN 1.x releases showed that

it's best to fix the tunnel MTU at

Quoted 1 line

1500 and vary the other parameters (and use --mssfix to prevent

fragmentation rather than a lower tunnel MTU).

Don't know if still holds. Assuming that we can change tun-mtu on any supported platforms, do you think that it is better
to do _that_, rather than have mssfix/icmp ptb workaround?

Quoted 4 lines

With that, it would be possible to fix the link-mtu to 1500 (or whatever is set on the outbound interface) and then subtract the header size to get a meaningful tun-mtu size.

Quoted 7 lines
Quoted 3 lines

Do you think 1500 is a safe value? Arne just mentioned today that his network interface MTU is 1500 and router's MTU is 1492 due to PPPoE, and openvpn2 works because it assumes that mtu is 1450.

I also think 1500 isn't safe because different types ob internet connections may reduce it, like the mentioned PPPoE.

this is why the --fragment feature is so handy - no need to change the mtu values on either end, yet you can fiddle with the fragmentation size to tune performance.

I agree that in most home environments the MTU size should be lower - if you look at e.g. IPsec you will find that it sets the tunnel MTU size to 1360 to ensure that it will "almost always" work.
Having said that, I'd like see a solution that will work in 99% of the cases *AND* that will give most users close-to-optimal performance.  If "fragment" is not implemented in OpenVPN 3 then what happens if the tun MTU is too high?  where does fragmentation occur? at the OS level? at the UDP level?  I'd prefer to leave any fragmenting to the underlying OS as much as possible - hence if I want to send packets of 4000 bytes than either they are fragmented at the tun level (i.e. before they are processed by OpenVPN) or at the transport level (i.e. OpenVPN spits out a 4000 byte packet over the UDP/TCP connection, which the OS then fragements).  The problem with fragmenting at the UDP level is that you need to keep track of the fragments in order to reassemble them - TCP does this for you.

cheers,

JJK

#6 lore raw

Re: [Openvpn-devel] Summary of the community meeting (Wed, 28th Nov 2018)

1500 is not safe on many mobile/cell networks as most have a smaller MTU like 1460 due to GTP headers used between the PGW and eNodeB. There is also reduced MTU when performing NAT64, i.e. packets translated from IPv4 to IPv6 become 20 bytes larger after translation due to additional IP header bytes.

I believe it is most efficient to implement an application layer fragmentation feature, similar to IKEv2 fragmentation (RFC7383) so that the underlying network layer does not have to perform IP layer fragmentation which has known risks.

Additionally, TCP MSS rewriting only works for TCP. Many VPNs use UDP which is not helped by MSS fix obviously. If supported by the client/server OS, path MTU discovery can be used to determine the MTU of a given connection.

-----Original Message-----
From: Jan Just Keijser [mailto:[email protected]...]
Sent: November 30, 2018 11:16
To: Simon Matter <[email protected]...>; Lev Stipakov <[email protected]...>
Cc: [email protected]
Subject: Re: [Openvpn-devel] Summary of the community meeting (Wed, 28th Nov 2018)

Hi Lev, Simon,

Quoted 44 lines · Simon Matter
Quoted 44 lines

Hi Jan Just,

(forgot to add openvpn-devel in previous mail)

Some background information.

In openvpn3 we decided not to implement fragments, because:

- this is quite a big feature which has to be supported through the
whole stack (client, server, kernel module)
- we assume that it is not used by most of users

However, for those who needs --fragment, we'll implement:

- mssfix support, this should solve problems with tcp-based protocols
- sending icmp "packet too big" for other protocols, we assume that
they'll respect icmp response

--fragment is/was very useful on a system where you do not / cannot change

Quoted 5 lines

the tun MTU size. Up to Windows XP, this was not possible without rebooting the OS. Since Vista, it *is* possible to change the MTU of an adapter on the fly (as explained in my trusty old cookbook, of course ;))

As James wrote a while ago (13 years ago :)

https://openvpn.net/archive/openvpn-users/2005-10/msg00354.html

Quoted 2 lines

A lot of experience gained during the OpenVPN 1.x releases showed that

it's best to fix the tunnel MTU at

Quoted 1 line

1500 and vary the other parameters (and use --mssfix to prevent

fragmentation rather than a lower tunnel MTU).

Don't know if still holds. Assuming that we can change tun-mtu on any supported platforms, do you think that it is better to do _that_, rather than have mssfix/icmp ptb workaround?

Quoted 4 lines

With that, it would be possible to fix the link-mtu to 1500 (or whatever is set on the outbound interface) and then subtract the header size to get a meaningful tun-mtu size.

Quoted 7 lines
Quoted 3 lines

Do you think 1500 is a safe value? Arne just mentioned today that his network interface MTU is 1500 and router's MTU is 1492 due to PPPoE, and openvpn2 works because it assumes that mtu is 1450.

I also think 1500 isn't safe because different types ob internet connections may reduce it, like the mentioned PPPoE.

this is why the --fragment feature is so handy - no need to change the mtu values on either end, yet you can fiddle with the fragmentation size to tune performance.

I agree that in most home environments the MTU size should be lower - if you look at e.g. IPsec you will find that it sets the tunnel MTU size to
1360 to ensure that it will "almost always" work.
Having said that, I'd like see a solution that will work in 99% of the cases *AND* that will give most users close-to-optimal performance.  If "fragment" is not implemented in OpenVPN 3 then what happens if the tun MTU is too high?  where does fragmentation occur? at the OS level? at the UDP level?  I'd prefer to leave any fragmenting to the underlying OS as much as possible - hence if I want to send packets of 4000 bytes than either they are fragmented at the tun level (i.e. before they are processed by OpenVPN) or at the transport level (i.e. OpenVPN spits out a 4000 byte packet over the UDP/TCP connection, which the OS then fragements).  The problem with fragmenting at the UDP level is that you need to keep track of the fragments in order to reassemble them - TCP does this for you.

cheers,

JJK

_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

#7 lore raw

Re: [Openvpn-devel] Summary of the community meeting (Wed, 28th Nov 2018)

Quoted 3 lines · Kristian McColm

1500 is not safe on many mobile/cell networks as most have a smaller MTU like 1460 due to GTP headers used between the PGW and eNodeB. There is also reduced MTU when performing NAT64, i.e. packets translated from IPv4 to IPv6 become 20 bytes larger after translation due to additional IP header bytes.

I believe it is most efficient to implement an application layer fragmentation feature, similar to IKEv2 fragmentation (RFC7383) so that the underlying network layer does not have to perform IP layer fragmentation which has known risks.

that is pretty much what --fragment does...

Quoted 1 line

Additionally, TCP MSS rewriting only works for TCP. Many VPNs use UDP which is not helped by MSS fix obviously. If supported by the client/server OS, path MTU discovery can be used to determine the MTU of a given connection.

TCP MSS using --mssfix works inside the tunnel only, and only for TCP connections. It does not depend on the outside protocol (UDP or TCP).

I fully agree that having PMTUD would be nice to have, but even that has its drawbacks...

JM2CW,

JJK

Quoted 77 lines

-----Original Message-----
From: Jan Just Keijser [mailto:[email protected]...]
Sent: November 30, 2018 11:16
To: Simon Matter <[email protected]...>; Lev Stipakov <[email protected]...>
Cc: [email protected]
Subject: Re: [Openvpn-devel] Summary of the community meeting (Wed, 28th Nov 2018)

Hi Lev, Simon,

Quoted 44 lines · Simon Matter
Quoted 44 lines

Hi Jan Just,

(forgot to add openvpn-devel in previous mail)

Some background information.

In openvpn3 we decided not to implement fragments, because:

- this is quite a big feature which has to be supported through the
whole stack (client, server, kernel module)
- we assume that it is not used by most of users

However, for those who needs --fragment, we'll implement:

- mssfix support, this should solve problems with tcp-based protocols
- sending icmp "packet too big" for other protocols, we assume that
they'll respect icmp response

--fragment is/was very useful on a system where you do not / cannot change

Quoted 5 lines

the tun MTU size. Up to Windows XP, this was not possible without rebooting the OS. Since Vista, it *is* possible to change the MTU of an adapter on the fly (as explained in my trusty old cookbook, of course ;))

As James wrote a while ago (13 years ago :)

https://openvpn.net/archive/openvpn-users/2005-10/msg00354.html

Quoted 2 lines

A lot of experience gained during the OpenVPN 1.x releases showed that

it's best to fix the tunnel MTU at

Quoted 1 line

1500 and vary the other parameters (and use --mssfix to prevent

fragmentation rather than a lower tunnel MTU).

Don't know if still holds. Assuming that we can change tun-mtu on any supported platforms, do you think that it is better to do _that_, rather than have mssfix/icmp ptb workaround?

Quoted 4 lines

With that, it would be possible to fix the link-mtu to 1500 (or whatever is set on the outbound interface) and then subtract the header size to get a meaningful tun-mtu size.

Quoted 7 lines
Quoted 3 lines

Do you think 1500 is a safe value? Arne just mentioned today that his network interface MTU is 1500 and router's MTU is 1492 due to PPPoE, and openvpn2 works because it assumes that mtu is 1450.

I also think 1500 isn't safe because different types ob internet connections may reduce it, like the mentioned PPPoE.

this is why the --fragment feature is so handy - no need to change the mtu values on either end, yet you can fiddle with the fragmentation size to tune performance.

I agree that in most home environments the MTU size should be lower - if you look at e.g. IPsec you will find that it sets the tunnel MTU size to
1360 to ensure that it will "almost always" work.
Having said that, I'd like see a solution that will work in 99% of the cases *AND* that will give most users close-to-optimal performance.  If "fragment" is not implemented in OpenVPN 3 then what happens if the tun MTU is too high?  where does fragmentation occur? at the OS level? at the UDP level?  I'd prefer to leave any fragmenting to the underlying OS as much as possible - hence if I want to send packets of 4000 bytes than either they are fragmented at the tun level (i.e. before they are processed by OpenVPN) or at the transport level (i.e. OpenVPN spits out a 4000 byte packet over the UDP/TCP connection, which the OS then fragements).  The problem with fragmenting at the UDP level is that you need to keep track of the fragments in order to reassemble them - TCP does this for you.

cheers,

JJK

_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

#8 lore raw

Re: [Openvpn-devel] Summary of the community meeting (Wed, 28th Nov 2018)

In reply to Lev Stipakov

Hi Lev,

Quoted 5 lines · Lev Stipakov

Some background information.

In openvpn3 we decided not to implement fragments, because:

Quoted 7 lines

 - this is quite a big feature which has to be supported through the whole stack (client, server, kernel module)
 - we assume that it is not used by most of users

However, for those who needs --fragment, we'll implement:

 - mssfix support, this should solve problems with tcp-based protocols
 - sending icmp "packet too big" for other protocols, we assume that they'll respect icmp response

I'd thoroughly test this with protocols like Google's QUIC, which uses UDP underneath. How does it respond to such ICMP messages? what does it do to throughput?

Quoted 19 lines

--fragment is/was very useful on a system where you do not / cannot change the tun MTU size. Up to Windows XP, this was not possible without rebooting the OS. Since Vista, it *is* possible to change the MTU of an adapter on the fly (as explained in my trusty old cookbook, of course ;))

As James wrote a while ago (13 years ago :)

https://openvpn.net/archive/openvpn-users/2005-10/msg00354.html

Quoted 1 line

A lot of experience gained during the OpenVPN 1.x releases showed

that it's best to fix the tunnel MTU at

Quoted 1 line

1500 and vary the other parameters (and use --mssfix to prevent

fragmentation rather than a lower tunnel MTU).
Don't know if still holds. Assuming that we can change tun-mtu on any supported platforms, do you think that it is better to do _that_, rather than have mssfix/icmp ptb workaround?

Quoted 6 lines

With that, it would be possible to fix the link-mtu to 1500 (or whatever is set on the outbound interface) and then subtract the header size to get a meaningful tun-mtu size.

Do you think 1500 is a safe value? Arne just mentioned today that his network interface MTU is 1500 and router's MTU is 1492 due to PPPoE, and openvpn2 works because it assumes that mtu is 1450.

I am not sure what a good default value is - it all depends on the intermittent networks. What OpenVPN needs is the ability to send a single UDP packet containing encapsulated data, knowing that that same single UDP packet arrives at the destination. How the underlying protocols/networks achieve this, is unknown.

Also, all of this applies only to UDP mode - in TCP mode it is best to not fragment at all - simply let the TCP stream take care of the encapsulated data, possible with TCP_NODELAY set.

Quoted 42 lines

Having said all that, I do have one gripe with the way the link or tun mtu is calculated in the current codebase:
In the 2.3 code base, the server tun mtu size was equal to the client tun-mtu size.
In the 2.4+ code base, the server-side tun mtu size is set to some ridiculous low level (with link-mtu 1500 set) in order to accomocate all possible encryption ciphers - *even if I add ncp-disable* . To me, that does not make a whole lot of sense. If I add '--ncp-disable' I'd expect the client and the server to behave pretty much like an OpenVPN 2.3 client (with a possible 3 bytes difference to accomodate for the peer id).

With 2.4 codebase I noticed that what man page says is not what openvpn2 code does - it does include transport overhead, while man page says it doesn't (copying my mail here):

              Announce to TCP sessions running over the tunnel that they should limit their send packet sizes such that after OpenVPN has encapsulated them, the resulting UDP packet size that OpenVPN sends to its peer will not exceed max bytes. The  default  value is 1450.

              The max parameter is interpreted in the same way as the
--link-mtu parameter, i.e. the UDP packet size after encapsulation
overhead has been added in, but not including the UDP header itself. Resulting packet would be at most 28 bytes larger for IPv4 and 48 bytes for IPv6 (20/40 bytes for IP header and 8 bytes for UDP header).

So it means that with "mssfix" 1300 resulting IPv4 packet size would be at most 1328.

This is what I see in Wireshark (server - git master, client 2.4.6):

Internet Protocol Version 4, Src: 128.199.xxx.yyy, Dst: 10.0.200.20 0100 .... = Version: 4
    .... 0101 = Header Length: 20 bytes (5)
    Total Length: 1300
    Protocol: UDP (17)
User Datagram Protocol, Src Port: 1194, Dst Port: 1194 Source Port: 1194
    Destination Port: 1194
    Length: 1280
OpenVPN Protocol
    Type: 0x49 [opcode/key_id]
    Peer ID: 0
    Data (1268 bytes)

While man page statement is technically correct - UDP packet size is 1300, which is "at most 1328", I think it should say:

Quoted 9 lines
Quoted 1 line

the resulting IP packet size that OpenVPN sends to its peer will not

exceed max bytes

and

Quoted 1 line

The max parameter is interpreted in the same way as the --link-mtu

parameter, i.e. the IP packet size
after encapsulation overhead has been added in, including UDP and IP headers.

you seem to be talking about the mssfix size, wheras I am talking about the tun-mtu size. When you add link-mtu 1500
  ncp-disable
(and no fragment or mssfix)
to a server config file, an OpenVPN 2.4 server starts up using
  openvpn 2.4.6 -> mtu = 1379
whereas an OpenVPN 2.3 server starts with
    openvpn 2.3.18 -> mtu = 1431
To me, this difference is inexplicable and annoying.

(see the mail thread titled "Overhead TUN vs TAP mode" on Openvpn-users).

When re-thinking all this, I see a large shift in the way OpenVPN 3 approaches the underlying network vs the way OpenVPN 1/2 do:  with OpenVPN 2, you can try to outsmart (or tune) the underlying network by playing with the fragment parameter *at user level*.  In OpenVPN 3, this is left to the OS (by increasing/decreasing the local tun mtu size - which says nothing about the MTU sizes further down the network).  Most likely the OS can do a better job than we (or YourAverageUser) can, but I always like the ability to overrule what the OS is doing (esp at the Linux level).

Also, would it be possible to implement PMTUD? I found this link to be informative:
https://www.cisco.com/c/en/us/support/docs/ip/generic-routing-encapsulation-gre/25885-pmtud-ipfrag.html

That might make the underlying fragmentation process more "automagic".

JM2CW,

JJK

#9 lore raw

Re: [Openvpn-devel] Summary of the community meeting (Wed, 28th Nov 2018)

Hi,

I'd thoroughly test this with protocols like Google's QUIC, which uses UDP

Quoted 3 lines

underneath. How does it respond to such ICMP messages? what does it do to throughput?

I tested sending ICMP "destination unreachable/fragmentation needed" with Chrome as QUIC client and
turns out that it fallbacks to TCP if MTU is less than 1378 (IP header + UDP header + QUIC packet 1350)

In Wireshark I observed:

quic client hello -> icmp dest unreachable -> quic connection close

1350 seems to be a maximum (as well as minimum) packet size, it doesn't get bigger than that,
see
https://groups.google.com/a/chromium.org/forum/#!topic/proto-quic/uKWLRh9JPCo

you seem to be talking about the mssfix size, wheras I am talking about the

Quoted 7 lines

tun-mtu size. When you add
link-mtu 1500
ncp-disable
(and no fragment or mssfix)
to a server config file, an OpenVPN 2.4 server starts up using
openvpn 2.4.6 -> mtu = 1379
whereas an OpenVPN 2.3 server starts with

Quoted 5 lines
    openvpn 2.3.18 -> mtu = 1431

To me, this difference is inexplicable and annoying.

(see the mail thread titled "Overhead TUN vs TAP mode" on Openvpn-users).

I think this is caused by "Add server-side support for cipher negotiation" patch

https://github.com/OpenVPN/openvpn/commit/a17aa98180319f34c3240aea617bf8114d0bcaf7#diff-ecafa727f56e9ae02ef3b19924c46f24R2334

    /* Compute MTU parameters (postpone if we push/pull options) */
    if (c->options.pull || c->options.mode == MODE_SERVER)
    {
        /* Account for worst-case crypto overhead before allocating buffers
*/
        frame_add_to_extra_frame(&c->c2.frame, crypto_max_overhead());
    }
    else
    {
        crypto_adjust_frame_parameters(&c->c2.frame, &c->c1.ks.key_type,
                                       options->replay,
packet_id_long_form);
    }

In 2.3 we always adjusted frame parameters according to actual cipher (else branch).

We probably should not account for maximum overhead if ncp-disable is set, so
following patch seems to make things better (I got 1443 on a server and 1440 on a client).

src/openvpn/init.c +0 -0
index d24634cc..c1c951b3 100644
@@ -2715,7 +2715,7 @@ do_init_crypto_tls(struct context *c, const unsigned

int flags)

     packet_id_long_form = cipher_kt_mode_ofb_cfb(c->c1.ks.key_type.cipher);

     /* Compute MTU parameters (postpone if we push/pull options) */
-    if (c->options.pull || c->options.mode == MODE_SERVER)
+    if (c->options.pull || (c->options.mode == MODE_SERVER &&
c->options.ncp_enabled))
     {
         /* Account for worst-case crypto overhead before allocating
buffers */
         frame_add_to_extra_frame(&c->c2.frame, crypto_max_overhead());
Signature · 1 line
-Lev
#10 lore raw

Re: [Openvpn-devel] Summary of the community meeting (Wed, 28th Nov 2018)

In reply to Jan Just Keijser
Quoted 12 lines · Jan Just Keijser

Hi,

Quoted 9 lines · Samuli Seppänen

[...]

Had a discussion about --fragment. Agreed that if we can fix internal fragmentation without needing a change in frame format then we can definitely deprecate --fragment in the long-term. Also noted that lack of tun-mtu support on Windows might be for historic reasons and might not apply to tap-windows6. Also questioned whether the default MTU of 1500 is the best possible choice.

Quoted 3 lines

I wish I'd known about this discussion - I saw the topic list and figured I wouldn't be able to contribute much to the discussion. Regarding MTU/fragment however.....

Hi Jan,

First of all, I'm terribly sorry I didn't get a chance to update the topics page in a timely manner. That should have been done, but we have been discussing this internally for a little while and I thought it was about time to get a bigger audience included in this discussion too.

I brought up this discussion now because we do need to find a better way to handle --fragment. I had no goal of ending up with a complete solution in this meeting, and we didn't really conclude either how to resolve this issue.
But I felt it was important to at least start this discussion so we can find
a better solution for the future, with the community more involved in this discussion too.

We (OpenVPN Inc) fully understand the usefulness of --fragment, but this is a very intrusive feature - from a code perspective. We also want to reduce the number of options which is needed to manually tweak a setup into a functional or better performing state.

We believe a modern VPN solution should figure this out automatically and it should just work. But at the same time, automation in this area is tricky and hard - after all, how do you know if a packet was lost and why? Sometimes the packet drop is expected while other times it should not have happened. There is no quick-fix for this.

So part of what we want (from a high level perspective) is to push lots of this "tackle fragmentation logic" to be handled by the kernel primarily. The kernel network stack (on all platforms) have logic to reassemble fragmented packets. But we need to find ways to better facilitate this behaviour in the kernel scope from OpenVPN. Which is why we started looking into --mssfix and --tun-mtu.

Combine these areas with the ultimate goal of automation ... If the OpenVPN stack can somehow figure out that "something broke the connection to the remote side now" and then start trying resolving this automatically can provide a much better end-user experience. If that is by dynamically tweaking the --tun-mtu, --mssfix or whatever else ... that would be good. But we generally want to avoid implementing code which needs to keep track of packet reassembly due to needed fragmentation. If we really end up needing it, well, then we have at least tried resolving it in a simpler way. Kind of like trying to make it as simple as possible but no simpler.

At the same time we also don't want to provide a worse end-user experience by today's standards for the vast majority of users by having the wrong default values. To exemplify this quite a bit (disregarding other comments related to --tun-mtu, this is just a stupid and simple example): It is better to start with --tun-mtu 1500 which works for 90% of our users and breaks 10% of configs which will then be automatically resolved after a shorter time (20-60 seconds?), rather than starting with --tun-mtu 1280 which works for 99.9% of users out-of-the box. We don't want to punish 90% of the users because 9.9% of the users would need a lower --tun-mtu to get things working instantly. It is better then to have code which then saves the solution or provides options for the 9.9% of users to more quickly recover - if the default resolving method can't be done faster without a pre-save state.

But in the end, it might not be the --tun-mtu option we end up with modifying, it could be something different - or it could be combination of things. Right now, we just need start on a path figuring out the alternatives to reduce the need of fragmentation processing inside OpenVPN.

This is basically the more detailed background of why this discussion was opened. If we can make OpenVPN even better with lesser configuration complexity we believe we're providing a better end-user experience. But neither I nor OpenVPN Inc says this will be an easy or quick path.

In addition, we need to keep whatever changes compatible between OpenVPN 2 and OpenVPN 3, so we're sure there is a reasonable migration path in the future - so clients and servers can be upgraded independently without really breaking anything.

With all that said: Thank you for valuable feedback regardless. And your feedback on changing the "change of MTU" on Windows prior to Vista was gold!
For the rest of your points, I believe Lev has followed well up on those.

Signature · 4 lines
kind regards,

David Sommerseth
OpenVPN Inc