* [Openvpn-devel] [PATCH] PUSH_BUNDLE_SIZE is too short
@ 2022-07-24 17:46 Angel Abad
2022-07-24 18:59 ` Gert Doering
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Angel Abad @ 2022-07-24 17:46 UTC (permalink / raw)
To: openvpn-devel
Description: PUSH_BUNDLE_SIZE is too short
Author: Angel Abad <angel@...334...>
---
Hello, we have problem with a large used openvpn server, our server push to clients
almos 150 routes, we havent problem with windows clients, but with linux clients push
options are cut, and the clients fail to configure beacouse the route commmands are cut.
We look code and verify that push bundle size is only 1024, so push options on linux are cut
on this size. We looked openvpn3 too, and there this limit is 2048
https://github.com/OpenVPN/openvpn3/blob/e1a35028a82acaf5ae6caeae321d83c36477d27c/openvpn/tun/linux/client/sitnl.hpp#L50
Could you please increase this limit on openvpn2 or provide a configuration option to
increase it?
Thanks in advance!
--- openvpn-2.6.0~git20220518+dco.orig/src/openvpn/common.h
+++ openvpn-2.6.0~git20220518+dco/src/openvpn/common.h
@@ -72,7 +72,7 @@ typedef unsigned long ptr_type;
* This parameter controls the maximum size of a bundle
* of pushed options.
*/
-#define PUSH_BUNDLE_SIZE 1024
+#define PUSH_BUNDLE_SIZE 2048
/*
* In how many seconds does client re-send PUSH_REQUEST if we haven't yet received a reply
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Openvpn-devel] [PATCH] PUSH_BUNDLE_SIZE is too short
2022-07-24 17:46 [Openvpn-devel] [PATCH] PUSH_BUNDLE_SIZE is too short Angel Abad
@ 2022-07-24 18:59 ` Gert Doering
2022-07-24 19:12 ` Gert Doering
2022-07-25 10:17 ` Arne Schwabe
2022-08-01 12:55 ` Arne Schwabe
2 siblings, 1 reply; 9+ messages in thread
From: Gert Doering @ 2022-07-24 18:59 UTC (permalink / raw)
To: Angel Abad <angel@; +Cc: openvpn-devel
[-- Attachment #1: Type: text/plain, Size: 931 bytes --]
Hi,
On Sun, Jul 24, 2022 at 07:46:30PM +0200, Angel Abad wrote:
> Hello, we have problem with a large used openvpn server, our server push to clients
> almos 150 routes, we havent problem with windows clients, but with linux clients push
> options are cut, and the clients fail to configure beacouse the route commmands are cut.
Can you please show a log file that demonstrates the problem?
I know that ValdikSS was/is using openvpn with many 1000 routes pushed, and
besides "installation takes very long" he did not report problems.
gert
--
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany gert@...1296...
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 630 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Openvpn-devel] [PATCH] PUSH_BUNDLE_SIZE is too short
2022-07-24 18:59 ` Gert Doering
@ 2022-07-24 19:12 ` Gert Doering
2022-08-05 6:58 ` Angel Abad
0 siblings, 1 reply; 9+ messages in thread
From: Gert Doering @ 2022-07-24 19:12 UTC (permalink / raw)
To: Angel Abad <angel@; +Cc: openvpn-devel
[-- Attachment #1: Type: text/plain, Size: 755 bytes --]
Hi,
On Sun, Jul 24, 2022 at 08:59:53PM +0200, Gert Doering wrote:
> Can you please show a log file that demonstrates the problem?
Oh, and "what software is running on the server side"? Long push replys
have to be split, and if there is something non-official which does not
split the to-be-sent records as the official server does, it's not a
client side bug.
gert
--
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany gert@...1296...
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 630 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Openvpn-devel] [PATCH] PUSH_BUNDLE_SIZE is too short
2022-07-24 17:46 [Openvpn-devel] [PATCH] PUSH_BUNDLE_SIZE is too short Angel Abad
2022-07-24 18:59 ` Gert Doering
@ 2022-07-25 10:17 ` Arne Schwabe
2022-08-01 12:55 ` Arne Schwabe
2 siblings, 0 replies; 9+ messages in thread
From: Arne Schwabe @ 2022-07-25 10:17 UTC (permalink / raw)
To: Angel Abad <angel@
Am 24.07.22 um 19:46 schrieb Angel Abad:
> Description: PUSH_BUNDLE_SIZE is too short
> Author: Angel Abad <angel@...334...>
> ---
>
> Hello, we have problem with a large used openvpn server, our server push to clients
> almos 150 routes, we havent problem with windows clients, but with linux clients push
> options are cut, and the clients fail to configure beacouse the route commmands are cut.
>
> We look code and verify that push bundle size is only 1024, so push options on linux are cut
> on this size. We looked openvpn3 too, and there this limit is 2048
>
> https://github.com/OpenVPN/openvpn3/blob/e1a35028a82acaf5ae6caeae321d83c36477d27c/openvpn/tun/linux/client/sitnl.hpp#L50
That is the buffer size of the netlink socket. That has absolutely
nothing to do with PUSH bundle size.
The maximum PUSH bundle size that OpenVPN3 will generate is also 1024:
https://github.com/OpenVPN/openvpn3/blob/master/openvpn/options/continuation_fragment.hpp#L42
>
> Could you please increase this limit on openvpn2 or provide a configuration option to
> increase it?
There are a patches from me for master that allow adjusting control
channel max size. However, our OpenVPN 2 server code should never send a
push message that exceeds the 1024 byte limit. Increasing this size for
both client and server will break existing setups. Can you explain your
setup and how to reproduce the bug?
In the current form this patch is a NAK from me.
Arne
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Openvpn-devel] [PATCH] PUSH_BUNDLE_SIZE is too short
2022-07-24 17:46 [Openvpn-devel] [PATCH] PUSH_BUNDLE_SIZE is too short Angel Abad
2022-07-24 18:59 ` Gert Doering
2022-07-25 10:17 ` Arne Schwabe
@ 2022-08-01 12:55 ` Arne Schwabe
2 siblings, 0 replies; 9+ messages in thread
From: Arne Schwabe @ 2022-08-01 12:55 UTC (permalink / raw)
To: Angel Abad <angel@
Am 24.07.22 um 19:46 schrieb Angel Abad:
> Description: PUSH_BUNDLE_SIZE is too short
> Author: Angel Abad <angel@...334...>
> ---
>
> Hello, we have problem with a large used openvpn server, our server push to clients
> almos 150 routes, we havent problem with windows clients, but with linux clients push
> options are cut, and the clients fail to configure beacouse the route commmands are cut.
>
> We look code and verify that push bundle size is only 1024, so push options on linux are cut
> on this size. We looked openvpn3 too, and there this limit is 2048
>
> https://github.com/OpenVPN/openvpn3/blob/e1a35028a82acaf5ae6caeae321d83c36477d27c/openvpn/tun/linux/client/sitnl.hpp#L50
>
> Could you please increase this limit on openvpn2 or provide a configuration option to
> increase it?
I created a bug in Softether for this problem since I believe that this
is what you are using:
https://github.com/SoftEtherVPN/SoftEtherVPN/issues/1639
This should be fixed on their side instead of creating an
incomplete/incompatible OpenVPN fix that will break after a few more
routes anyway.
Arne
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Openvpn-devel] [PATCH] PUSH_BUNDLE_SIZE is too short
2022-07-24 19:12 ` Gert Doering
@ 2022-08-05 6:58 ` Angel Abad
2022-08-05 7:59 ` Gert Doering
2022-08-05 8:27 ` Arne Schwabe
0 siblings, 2 replies; 9+ messages in thread
From: Angel Abad @ 2022-08-05 6:58 UTC (permalink / raw)
To: Gert Doering <gert@; +Cc: openvpn-devel
[-- Attachment #1: Type: text/plain, Size: 1297 bytes --]
Hi, sorry for my late reply!
We use on server side managed AWS Clientvpn product[1], but we havent the
problem with macosX or windows laptops, only with linux (ubuntu, centos and
debian).
Bye,
[1]
https://docs.aws.amazon.com/es_es/vpn/latest/clientvpn-admin/what-is.html
El dom, 24 jul 2022 a las 21:12, Gert Doering (<gert@...1296...>)
escribió:
> Hi,
>
> On Sun, Jul 24, 2022 at 08:59:53PM +0200, Gert Doering wrote:
> > Can you please show a log file that demonstrates the problem?
>
> Oh, and "what software is running on the server side"? Long push replys
> have to be split, and if there is something non-official which does not
> split the to-be-sent records as the official server does, it's not a
> client side bug.
>
> gert
> --
> "If was one thing all people took for granted, was conviction that if you
> feed honest figures into a computer, honest figures come out. Never
> doubted
> it myself till I met a computer with a sense of humor."
> Robert A. Heinlein, The Moon is a Harsh
> Mistress
>
> Gert Doering - Munich, Germany
> gert@...1296...
>
--
Angel Abad
angel@...334... | angelabad@...2688... | angelabad@...277...
https://angelabad.me
FPR: 4A08 9719 1621 CCF7 FBEE F752 A6D5 8816 010A 1096
[-- Attachment #2: Type: text/html, Size: 2223 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Openvpn-devel] [PATCH] PUSH_BUNDLE_SIZE is too short
2022-08-05 6:58 ` Angel Abad
@ 2022-08-05 7:59 ` Gert Doering
2022-08-05 9:55 ` Angel Abad
2022-08-05 8:27 ` Arne Schwabe
1 sibling, 1 reply; 9+ messages in thread
From: Gert Doering @ 2022-08-05 7:59 UTC (permalink / raw)
To: Angel Abad <angel@; +Cc: Gert Doering <gert@
[-- Attachment #1: Type: text/plain, Size: 768 bytes --]
Hi,
On Fri, Aug 05, 2022 at 08:58:05AM +0200, Angel Abad wrote:
> Hi, sorry for my late reply!
>
> We use on server side managed AWS Clientvpn product[1], but we havent the
> problem with macosX or windows laptops, only with linux (ubuntu, centos and
> debian).
Which clients are you using on MacOS and Windows? OpenVPN 2.x should exhibit
the same behaviour everywhere.
gert
--
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany gert@...1296...
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 630 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Openvpn-devel] [PATCH] PUSH_BUNDLE_SIZE is too short
2022-08-05 6:58 ` Angel Abad
2022-08-05 7:59 ` Gert Doering
@ 2022-08-05 8:27 ` Arne Schwabe
1 sibling, 0 replies; 9+ messages in thread
From: Arne Schwabe @ 2022-08-05 8:27 UTC (permalink / raw)
To: Angel Abad <angel@; +Cc: openvpn-devel
Am 05.08.2022 um 08:58 schrieb Angel Abad:
> Hi, sorry for my late reply!
>
> We use on server side managed AWS Clientvpn product[1], but we
> havent the problem with macosX or windows laptops, only with linux
> (ubuntu, centos and debian).
>
OpenVPN Connect which is based on OpenVPN 3.x might be more tolerant
which accepting oversized PUSH replys. That however still does not make
it a legal packet. You should complain to Amazon. This is a bug on their
side that they have to fix.
Arne
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Openvpn-devel] [PATCH] PUSH_BUNDLE_SIZE is too short
2022-08-05 7:59 ` Gert Doering
@ 2022-08-05 9:55 ` Angel Abad
0 siblings, 0 replies; 9+ messages in thread
From: Angel Abad @ 2022-08-05 9:55 UTC (permalink / raw)
To: Gert Doering <gert@; +Cc: openvpn-devel
[-- Attachment #1: Type: text/plain, Size: 1224 bytes --]
El vie, 5 ago 2022 a las 9:59, Gert Doering (<gert@...1296...>)
escribió:
> Hi,
>
> On Fri, Aug 05, 2022 at 08:58:05AM +0200, Angel Abad wrote:
> > Hi, sorry for my late reply!
> >
> > We use on server side managed AWS Clientvpn product[1], but we havent the
> > problem with macosX or windows laptops, only with linux (ubuntu, centos
> and
> > debian).
>
> Which clients are you using on MacOS and Windows? OpenVPN 2.x should
> exhibit
> the same behaviour everywhere.
>
> On windows we use:
https://openvpn.net/client-connect-vpn-for-windows/
and the official AWS client:
https://aws.amazon.com/es/vpn/client-vpn-download/
Thanks for your replys
> gert
> --
> "If was one thing all people took for granted, was conviction that if you
> feed honest figures into a computer, honest figures come out. Never
> doubted
> it myself till I met a computer with a sense of humor."
> Robert A. Heinlein, The Moon is a Harsh
> Mistress
>
> Gert Doering - Munich, Germany
> gert@...1296...
>
--
Angel Abad
angel@...334... | angelabad@...2688... | angelabad@...277...
https://angelabad.me
FPR: 4A08 9719 1621 CCF7 FBEE F752 A6D5 8816 010A 1096
[-- Attachment #2: Type: text/html, Size: 2336 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2022-08-05 9:55 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-24 17:46 [Openvpn-devel] [PATCH] PUSH_BUNDLE_SIZE is too short Angel Abad
2022-07-24 18:59 ` Gert Doering
2022-07-24 19:12 ` Gert Doering
2022-08-05 6:58 ` Angel Abad
2022-08-05 7:59 ` Gert Doering
2022-08-05 9:55 ` Angel Abad
2022-08-05 8:27 ` Arne Schwabe
2022-07-25 10:17 ` Arne Schwabe
2022-08-01 12:55 ` Arne Schwabe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.