Re: [Openvpn-devel] [PATCH 3/3] Call dco_p2p_add_new_peer again if the peer id changes

2022-11-28 Thread Gert Doering
Hi, On Mon, Nov 28, 2022 at 02:35:24PM +0100, Gert Doering wrote: > Now testing the actual patch. Doesn't work... without 3/3, I have the ubuntu2004 kernel: [22034799.495703] ovpn_udp_encap_recv: received data from unknown peer (id: 1114473) on reconnect, but at least TLS h

Re: [Openvpn-devel] [PATCH 3/3] Call dco_p2p_add_new_peer again if the peer id changes

2022-11-28 Thread Gert Doering
Hi, On Mon, Nov 28, 2022 at 02:26:31PM +0100, Gert Doering wrote: > On Wed, Oct 12, 2022 at 03:34:56PM +0200, Arne Schwabe wrote: > > This allows a reconnect in p2p mode and has the side effect of updating > > the peer address with the peerid > > Maybe I am just holding it

Re: [Openvpn-devel] [PATCH 3/3] Call dco_p2p_add_new_peer again if the peer id changes

2022-11-28 Thread Gert Doering
me 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 g...@greenie.muc.de signature.asc Description: PGP sign

Re: [Openvpn-devel] new P2P NCP wart...

2022-11-28 Thread Gert Doering
Hi, On Mon, Nov 28, 2022 at 12:55:54PM +0100, Gert Doering wrote: > 2022-11-28 12:55:25 us=199080 ERROR: failed to negotiate cipher with peer and > --data-ciphers-fallback not enabled. No usable data channel cipher > 2022-11-28 12:55:25 us=199092 ERROR: Failed to apply P2P negotiated

[Openvpn-devel] new P2P NCP wart...

2022-11-28 Thread Gert Doering
l I met a computer with a sense of humor." Robert A. Heinlein, The Moon is a Harsh Mistress Gert Doering - Munich, Germany g...@greenie.muc.de signature.asc Description: PGP signature ___

[Openvpn-devel] [PATCH applied] Re: Update PORTS

2022-11-28 Thread Gert Doering
Thanks for the review. Patch has been applied to the master branch. commit 16d773eb1f94179b60d718f1eb92cb14ace67779 Author: Gert Doering Date: Mon Nov 28 12:16:42 2022 +0100 Update PORTS Signed-off-by: Gert Doering Acked-by: Frank Lichtenheld Message-Id

[Openvpn-devel] [PATCH v2] Update PORTS

2022-11-28 Thread Gert Doering
Instead of fully removing PORTS, keep "this is what you want to do for porting OpenVPN to a new platform" section, and update the PLATFORMS part to better reflect current status. v2: drop "2.2+" from Linux, and name the fruitish thing "macOS" Signed-off-by:

[Openvpn-devel] [PATCH applied] Re: Use dedicated multi->dco_peer_id for DCO instead of multi->peer_id

2022-11-28 Thread Gert Doering
Acked-by: Gert Doering This patch survived all tests I threw at it (Linux and FreeBSD client and server, with and without DCO, including multiple p2mp clients on the server under test). The "main" code change (dco_peer_id) is fairly straightforward, if one checks for the right val

Re: [Openvpn-devel] [PATCH] Read DCO traffic stats from the kernel

2022-11-27 Thread Gert Doering
ction 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

[Openvpn-devel] [PATCH] Update PORTS

2022-11-26 Thread Gert Doering
Instead of fully removing PORTS, keep "this is what you want to do for porting OpenVPN to a new platform" section, and update the PLATFORMS part to better reflect current status. Signed-off-by: Gert Doering --- PORTS | 43 +-- 1 file c

[Openvpn-devel] [PATCH applied] Re: dco: pass control packets through the socket on FreeBSD

2022-11-26 Thread Gert Doering
Acked-by: Gert Doering Straightforward enough :-) - we discussed this at the hackathon today, and FreeBSD DCO does not "consume" the socket, it just hooks into it and takes out "interesting" packet - so normal userland operation is still possible. Support for "floati

Re: [Openvpn-devel] [PATCH] dco: pass control packets through the socket on FreeBSD

2022-11-25 Thread Gert Doering
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

Re: [Openvpn-devel] [PATCH v2 2/3] Use dedicated multi->dco_peer_id for DCO instead of multi->peer_id

2022-11-25 Thread Gert Doering
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 g...@greenie.muc.de signature.asc Description: PGP signature _

[Openvpn-devel] [PATCH applied] Re: Move dco_installed from sock->info to sock->info.lsa.actual

2022-11-24 Thread Gert Doering
to sock->info.lsa.actual Signed-off-by: Arne Schwabe Acked-by: Antonio Quartulli Message-Id: <20221124162642.3173118-1-a...@rfc2549.org> URL: https://www.mail-archive.com/search?l=mid&q=20221124162642.3173118-1-a...@rfc2549.org Signed-off-by: Gert Doering

[Openvpn-devel] [PATCH applied] Re: Check if pkcs11_cert is NULL before freeing it

2022-11-23 Thread Gert Doering
ve.com/openvpn-devel@lists.sourceforge.net/msg25530.html Signed-off-by: Gert Doering -- kind regards, Gert Doering ___ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Re: [Openvpn-devel] [PATCH] Check if pkcs11_cert is NULL before freeing it

2022-11-23 Thread Gert Doering
a computer with a sense of humor." Robert A. Heinlein, The Moon is a Harsh Mistress Gert Doering - Munich, Germany g...@greenie.muc.de signature.asc Description: PGP signature ___ Ope

Re: [Openvpn-devel] [PATCH v2 1/3] Move dco_installed from sock->info to sock->info.lsa.actual

2022-11-23 Thread Gert Doering
kups. This is fully reproduceable, so if you want me to increas debug, just let me know. 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

Re: [Openvpn-devel] [PATCH v12] Add DNS SRV remote host discovery support

2022-11-22 Thread Gert Doering
Hi, On Tue, Nov 22, 2022 at 07:32:29PM +0100, Gert Doering wrote: > - use getrrsetbyname(), and add that via "compat" source if a target > platform does not have it - this is what OpenSSH does > > - add #ifdefs to disable --srv functionality on OpenBSD > (whi

[Openvpn-devel] [PATCH v13] Add DNS SRV remote host discovery support

2022-11-22 Thread Gert Doering
From: Vladislav Grishenko DNS SRV remote host discovery allows to have multiple OpenVPN servers for a single domain w/o explicit profile enumeration, to move services from host to host with little fuss, and to designate hosts as primary servers for a service and others as backups. Feature has bee

Re: [Openvpn-devel] [PATCH v12] Add DNS SRV remote host discovery support

2022-11-22 Thread Gert Doering
ople 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

[Openvpn-devel] [PATCH applied] Re: Fix logic error in checking early negotiation support check

2022-11-16 Thread Gert Doering
Acked-by: Gert Doering The discussion in the mail thread and on IRC explains why we need to check the full EARLY_NEG_START value (because it's "0x0f" in the topmost byte, not "just one bit set"). This is because it was done that way initially, and now it is what it

[Openvpn-devel] [PATCH applied] Re: Push server mtu to client when supported and support occ mtu

2022-11-14 Thread Gert Doering
Acked-by: Gert Doering Stared-at-code, discussed on IRC, and dropped "Changes.rst" entry, as user-visible behaviour is no longer changed (no default-MTU change). Tested on the server testbed, having one instance do "tun-mtu 1400 1500" now, and depending on client version,

[Openvpn-devel] [PATCH applied] Re: Allow tun-mtu to be pushed

2022-11-14 Thread Gert Doering
Acked-by: Gert Doering This is a step towards being able to adjust MTU in a server-controlled way, and to either enable large-MTU setups (9000), or to reduce MTU to "outside packets never need to be fragmented". This does not change defaults, so no behavioural changes are to b

Re: [Openvpn-devel] [PATCH 1/9] Implement optional cipher in --data-ciphers prefixed with ?

2022-11-11 Thread Gert Doering
Hi, following up on this one: On Mon, Dec 06, 2021 at 04:41:17PM +0100, Gert Doering wrote: > commit 766044507497c41f0319159c37992788ecb681e6 > Author: Arne Schwabe > Date: Wed Dec 1 19:07:19 2021 +0100 > > Implement optional cipher in --data-ciphers prefixed with ? >

[Openvpn-devel] [PATCH applied] Re: FreeBSD DCO: support AES-192-GCM

2022-11-11 Thread Gert Doering
: support AES-192-GCM Signed-off-by: Kristof Provost Acked-by: Arne Schwabe Message-Id: <2022102031.8402-2-kprov...@netgate.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25506.html Signed-off-by: Gert Doering -- kind regards,

[Openvpn-devel] [PATCH applied] Re: msvc: always call git-version.py

2022-11-11 Thread Gert Doering
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25508.html Signed-off-by: Gert Doering -- kind regards, Gert Doering ___ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net

[Openvpn-devel] [PATCH applied] Re: Improve documentation for --dev and --dev-node.

2022-11-11 Thread Gert Doering
h. commit 199081c24a1bb4b9066e542165de9b4a6ce1a8fd Author: Gert Doering Date: Tue Nov 8 14:45:23 2022 +0100 Improve documentation for --dev and --dev-node. Signed-off-by: Gert Doering Acked-by: Antonio Quartulli Message-Id: <20221108134523.2325-1-g...@greenie.muc.de> URL: https://www.

[Openvpn-devel] [PATCH applied] Re: Remove unused addr_inet4or6, addr_guess_family and inline addr_copy_sa

2022-11-11 Thread Gert Doering
Acked-by: Gert Doering My first thought was "trivial enough", the second thought was "oh wait" - the old code copies "src->addr" to "dst->addr", while the new code copies "src" to "dst". Now, src/dst are "struct openvp

[Openvpn-devel] [PATCH applied] Re: Add algorithm and bits used in key_print2 method and refactor method

2022-11-09 Thread Gert Doering
Acked-by: Gert Doering "Yes, this is much nicer" :-) Master Encrypt (cipher, AES-256-GCM, 256 bits): da62213e a3d13f7c ... Master Encrypt (hmac, [null-digest], 0 bits): Master Decrypt (cipher, AES-256-GCM, 256 bits): 4aec936c 1eb1c231 ... Master Decrypt (hmac, [n

[Openvpn-devel] [PATCH applied] Re: Fix md_kt_size in mbed TLS when queried for size of none

2022-11-09 Thread Gert Doering
Acked-by: Gert Doering Verified that this fixes the (mbedtls-only) crash I was seeing with --verb 7 - and verified again that it does not happen with OpenSSL builds: Master Encrypt (cipher): 6359ae14 b7069ef7 ... Master Encrypt (hmac): Master Decrypt (cipher): 5217f7a8 c3f80df5

Re: [Openvpn-devel] [PATCH v4 2/5] Allow tun-mtu to be pushed

2022-11-08 Thread Gert Doering
elow? 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

[Openvpn-devel] [PATCH applied] Re: Add packet type in accept/reject messages for HMAC packet

2022-11-08 Thread Gert Doering
Acked-by: Gert Doering This is a useful addition. It works... 2022-11-08 17:39:46 us=399783 Connection Attempt Valid packet (P_CONTROL_V1) with HMAC challenge from peer ([AF_INET6]:::194.97.140.21:61081), accepting new connection. .. and uncovered a new bug... 2022-11-08 17:39:46 us

[Openvpn-devel] [PATCH applied] Re: Improve data key id not found error message

2022-11-08 Thread Gert Doering
Acked-by: Gert Doering Most of it is actually straightforward (if no workable key is found, go to the "print fail" function, find the right key slot *again*, print "not initialized" or "not authorized" according to ks->state / ks->authenticated - and if

[Openvpn-devel] [PATCH v2] Improve documentation for --dev and --dev-node.

2022-11-08 Thread Gert Doering
tches up on the documentation. v2: disambiguate Linux ("all drivers") and FreeBSD ("only DCO"), add comment about --dev-type being necessary for devices not starting with tun* or tap* Signed-off-by: Gert Doering --- doc/man-sections/vpn-network-options.rst | 38 +++-

[Openvpn-devel] [PATCH applied] Re: win32: detect arm64 architecture and emulations

2022-11-08 Thread Gert Doering
Acked-by: Gert Doering The tester's echo was really overwhelming here... so I've stared-at-code and fed this to my github instance for test building with msvc & mingw (builds fine). Compareing the patch to MS documentation (IsWow64Process2() etc.) - the code seems to be reasonabl

[Openvpn-devel] [PATCH applied] Re: vcpkg: use the latest versions of dependency ports

2022-11-08 Thread Gert Doering
Acked-by: Gert Doering As usual, I have no idea what this all does, but is not changing code, and seems to match the commit description (which sounds reasonable). Your patch has been applied to the master branch. commit f98aa0c76a45b8dea047fd60d687c2d377a2df06 Author: Lev Stipakov Date: Wed

[Openvpn-devel] [PATCH applied] Re: Add workaround for Softether server dropping P_ACK_V1 with >= 5 acks

2022-11-06 Thread Gert Doering
Acked-by: Gert Doering This is straightforward. The detection "what makes a softether server?" is a bit annoying... and this code will be with us forever... I have not specifically tested this ("no softether server around") but ran the normal server/client tests. Your pa

[Openvpn-devel] [PATCH applied] Re: Allow setting control channel packet size with max-packet-size

2022-11-06 Thread Gert Doering
Date: Fri Nov 4 13:56:55 2022 +0100 Allow setting control channel packet size with max-packet-size Signed-off-by: Arne Schwabe Acked-by: Frank Lichtenheld Message-Id: <20221104125655.656150-2-a...@rfc2549.org> URL: https://www.mail-archive.com/openvpn-dev

[Openvpn-devel] [PATCH applied] Re: Always include ACKs for the last seen control packets

2022-11-06 Thread Gert Doering
Signed-off-by: Arne Schwabe Acked-by: Frank Lichtenheld Message-Id: <20220831134140.913337-1-a...@rfc2549.org> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25143.html Signed-off-by: Gert Doering -- k

[Openvpn-devel] [PATCH applied] Re: Add unit test for reliable_get_num_output_sequenced_available

2022-11-05 Thread Gert Doering
eld Message-Id: <20220921104930.3452270-3-a...@rfc2549.org> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25292.html Signed-off-by: Gert Doering -- kind regards, Gert Doering ___ Openvpn-devel mailing list Openvpn-devel@l

[Openvpn-devel] [PATCH applied] Re: Refactor/optimise code sending TLS control channel messages

2022-11-05 Thread Gert Doering
Acked-by: Gert Doering This is a slightly complicated ACK - this is a respin of 1/3 v4 with the "Ensure that control channel packet are respecting maximum packet size" patch, which has an ACK from Frank Lichtenheld. During testing of v4 I noticed that it it brings a regression for &

Re: [Openvpn-devel] [PATCH] win32: detect arm64 architecture and emulations

2022-11-05 Thread Gert Doering
ot;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 Ha

Re: [Openvpn-devel] [PATCH applied] Re: Do not copy auth_token username to itself

2022-10-27 Thread Gert Doering
Hi, ... and here we go: On Thu, Oct 27, 2022 at 09:02:52PM +0200, Gert Doering wrote: > Your patch has been applied to the master branch, for now - it needs > to go to 2.5 as well, but we're right in the middle of a 2.5.8 > release, and I need to check with Samuli & Frank if

[Openvpn-devel] [PATCH applied] Re: Do not copy auth_token username to itself

2022-10-27 Thread Gert Doering
Acked-by: Gert Doering Testing this was fairly easy - I added a msg() call in that if() branch, connected to a server with auth-token and verified that it did the strncpynt() only on the "I have a real username here" call. And that token reauth still works ("username properly cop

Re: [Openvpn-devel] [PATCH applied] Re: Ensure --auth-nocache is handled during renegotiation

2022-10-27 Thread Gert Doering
Hi, On Thu, Oct 27, 2022 at 11:18:07AM -0400, Selva Nair wrote: > On Thu, Oct 27, 2022 at 2:08 AM Gert Doering wrote: > > > Looking at the code, I'd say your commit description makes a lot of > > sense, and explains the observed "funnies" quite well (which

[Openvpn-devel] [PATCH applied] Re: Purge auth-token as well while purging passwords

2022-10-26 Thread Gert Doering
Acked-by: Gert Doering Thanks. Based on our mail thread on v1, this now clears the token on "management related events" (forget-password, management disconnect) and does not affect other code paths. I have not submitted this to extremely thorough testing, just basic t_client tests f

[Openvpn-devel] [PATCH applied] Re: Ensure --auth-nocache is handled during renegotiation

2022-10-26 Thread Gert Doering
igned-off-by: Selva Nair Acked-by: Arne Schwabe Message-Id: <20221023195105.31714-1-selva.n...@gmail.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25452.html Signed-off-by: Gert Doering -- kind regards, Gert Doering ___ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Re: [Openvpn-devel] [PATCH for 2.5/2.6] Purge auth-token as well while purging passwords

2022-10-26 Thread Gert Doering
nted, 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 g...@gre

Re: [Openvpn-devel] [PATCH for 2.5/2.6] Purge auth-token as well while purging passwords

2022-10-26 Thread Gert Doering
get-disconnect? Just asking :-) (This whole token thing is really great when it works, but it is obvious that it wasn't there from day one, and not all combinations of use cases, options and "events" seemt o really make sense) gert -- "If was one thing all people took for granted,

Re: [Openvpn-devel] [PATCH for 2.5/2.6] Purge auth-token as well while purging passwords

2022-10-26 Thread Gert Doering
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. Hein

[Openvpn-devel] [PATCH applied] Re: close_tun: print interface type consistently in message

2022-10-23 Thread Gert Doering
Acked-by: Gert Doering Tested on Linux with/without --disable-dco, and the expected message shows up. Test compiled on FreeBSD (without DCO) and nothing breaks. Your patch has been applied to the master branch. commit 77829be280b3b280f35d1ca4947900f3c5e5dd26 Author: Antonio Quartulli Date

Re: [Openvpn-devel] Is auth-nocache broken?

2022-10-19 Thread Gert Doering
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 g...@

[Openvpn-devel] [PATCH applied] Re: test_crypto: fix test_occ_mtu_calculation with --disable-fragment

2022-10-19 Thread Gert Doering
-devel@lists.sourceforge.net/msg24550.html Signed-off-by: Gert Doering -- kind regards, Gert Doering ___ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel

[Openvpn-devel] [PATCH applied] Re: Fix regression of ignoring --user

2022-10-19 Thread Gert Doering
Acked-by: Gert Doering Glad that this obscure AS option caught this breakage... *sigh* - that's what you get for "just fix this compiler warning" (which I am usually quite reluctant to do, but "it looked straightforward enough"). The new code is less magic, and much ea

[Openvpn-devel] [PATCH applied] Re: FreeBSD DCO: introduce real subnet mode

2022-10-19 Thread Gert Doering
been applied to the master branch. commit 22bc63c78439ed23b974b8f822330d75ec79c7fc Author: Gert Doering Date: Wed Oct 12 16:59:15 2022 +0200 FreeBSD DCO: introduce real subnet mode Signed-off-by: Gert Doering Acked-by: Kristof Provost Message-Id: <20221012145915.2581

[Openvpn-devel] [PATCH applied] Re: FreeBSD: for topology subnet, put tun interface into IFF_BROADCAST mode

2022-10-19 Thread Gert Doering
d to the master branch. commit 94db32616597497e57eb2fa6fab05297da314a53 Author: Gert Doering Date: Wed Oct 12 16:59:14 2022 +0200 FreeBSD: for topology subnet, put tun interface into IFF_BROADCAST mode Signed-off-by: Gert Doering Acked-by: Kristof Provost Message-Id: <202210

[Openvpn-devel] [PATCH applied] Re: Fix renewal spelling and actually allow external-auth with renewal time

2022-10-18 Thread Gert Doering
Acked-by: Gert Doering "That's what I get for testing the core of the patch, and ignoring all the little details..." - fixes are straightforward. Only compile-tested. Your patch has been applied to the master branch. commit 92db3227b682518ff8c5dc691ee15a1641899729 Author: Ar

[Openvpn-devel] [PATCH applied] Re: Allows renegotiation only to start if session is fully established

2022-10-18 Thread Gert Doering
Signed-off-by: Gert Doering -- kind regards, Gert Doering ___ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel

[Openvpn-devel] [PATCH applied] Re: Allow Authtoken lifetime to be short than renegotiation time

2022-10-17 Thread Gert Doering
Acked-by: Gert Doering The feature itself is really in the "we are a swiss army knife and can do everything" side of things. It does not introduce a new option and no new #ifdef, and the actual code change is not very intrusive. I should point out that there is potential for conflic

Re: [Openvpn-devel] [PATCH] Allow Authtoken lifetime to be short than renegotiation time

2022-10-17 Thread Gert Doering
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 D

[Openvpn-devel] [PATCH applied] Re: Change exit signal in P2P to be a SIGUSR1 and delay CC exit in P2MP

2022-10-17 Thread Gert Doering
Acked-by: Gert Doering Tested the whole lot again. Only difference to v1 is in p2mp mode with incoming TLS EEN, which now logs 10:15:34 cron2-freebsd-tc-amd64/194.97.140.21:53341 Exit message received by peer 10:15:34 cron2-freebsd-tc-amd64/194.97.140.21:53341 Delayed exit in 5 seconds 10:15

Re: [Openvpn-devel] [PATCH] Change explicit exit notification to be a SIGUSR1 instead of a SIGTERM signal

2022-10-14 Thread Gert Doering
ion 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 g..

Re: [Openvpn-devel] [PATCH 2/3] Use dedicated multi->dco_peer_id for DCO instead of multi->peer_id

2022-10-12 Thread Gert Doering
All the rest sets "-1", AFAICS, just the if() here is weird) 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.&quo

[Openvpn-devel] [PATCH 1/2] FreeBSD: for topology subnet, put tun interface into IFF_BROADCAST mode

2022-10-12 Thread Gert Doering
d 7.4 To actually work with ovpn(4) / FreeBSD DCO, a followup patch for kernel ovpn(4) and OpenVPN dco_freebsd.c is needed. Signed-off-by: Gert Doering --- Changes.rst | 5 + src/openvpn/tun.c | 37 - 2 files changed, 17 insertions(+), 25 deletion

[Openvpn-devel] [PATCH 2/2] FreeBSD DCO: introduce real subnet mode

2022-10-12 Thread Gert Doering
DE on the other side - with an older kernel, OpenVPN will just fail now) Signed-off-by: Gert Doering --- src/openvpn/dco_freebsd.c | 36 ++ src/openvpn/ovpn_dco_freebsd.h | 1 + 2 files changed, 37 insertions(+) diff --git a/src/openvpn/dco_freebsd.c b/s

Re: [Openvpn-devel] route/iroute handling on FreeBSD

2022-10-12 Thread Gert Doering
Hi, people have alreadycomplained at me that I write so long e-mails today, so I can write more... On Wed, Oct 12, 2022 at 08:39:31AM +0200, Gert Doering wrote: > Factor 1: single-peer (client or p2p) vs. multi-peer > > single-peer -> DCO has only 1 peer, all packets that

Re: [Openvpn-devel] route/iroute handling on FreeBSD

2022-10-11 Thread Gert Doering
Hi, On Tue, Oct 11, 2022 at 09:11:25PM +0200, Gert Doering wrote: > OTOH, in "not peer2peer mode", we only support topology subnet anyway, > so maybe it should autoconfigure that, depending on the mode OpenVPN > requests (p2p mode -> IFF_POINTOPOINT, p2mp mode -> IFF_

Re: [Openvpn-devel] route/iroute handling on FreeBSD

2022-10-11 Thread Gert Doering
Hi, On Fri, Oct 07, 2022 at 11:56:52AM +0200, Gert Doering wrote: > I'll dig into the POINTTOPOINT issue... configure a real MULTIPOINT > interface for --topology subnet (which is something I've always avoided > so far, because "we know the other stuff works") This

[Openvpn-devel] [PATCH applied] Re: Ensure only CBC, CFB, OFB and AEAD ciphers are considered valid data ciphers

2022-10-10 Thread Gert Doering
et/msg25379.html Signed-off-by: Gert Doering -- kind regards, Gert Doering ___ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel

[Openvpn-devel] [PATCH applied] Re: Insert client connection data into PAM environment

2022-10-10 Thread Gert Doering
Acked-by: Gert Doering Thanks for providing a v3, and following our sometimes difficult rules for patch submission. I have tested this with v4 and v6 connections, and it looks good: PLUGIN AUTH-PAM: BACKGROUND: REMOTE: 2001:608:0:814::f000:21 PLUGIN AUTH-PAM: BACKGROUND: REMOTE

Re: [Openvpn-devel] [PATCH] TLS: do not lock empty usernames

2022-10-10 Thread Gert Doering
tion 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 g...@greenie

Re: [Openvpn-devel] [PATCH applied] Re: Fix OpenVPN querying user/password if auth-token with user expires

2022-10-10 Thread Gert Doering
Hi, On Sun, Oct 09, 2022 at 03:51:36PM +0200, Gert Doering wrote: > Recording David's and Heiko's ACK, they have done the stare-at-code > and actual testing (I have run t_client tests, but they do not excercise > this problem with my current test servers - need to add more v

[Openvpn-devel] [PATCH] TLS: do not lock empty usernames

2022-10-10 Thread Gert Doering
We do not permit username changes on renegotiation (= username is "locked" after successful initial authentication). Unfortunately the way this is written this gets in the way of using auth-user-pass-optional + pushing "auth-token-user" from client-connect (and most likely also "from management")

[Openvpn-devel] [PATCH applied] Re: Enable -Werror on macOS builds

2022-10-09 Thread Gert Doering
Acked-by: Gert Doering Tested on "master + this patch" via my GitHub fork. Builds all green! https://github.com/cron2/openvpn/actions/runs/3214397115 Your patch has been applied to the master branch. commit 0ff633f750a57d0a4d48481be0bd915196a0bd32 (master) Author: Arne Schwabe D

[Openvpn-devel] [PATCH applied] Re: Fix OpenVPN querying user/password if auth-token with user expires

2022-10-09 Thread Gert Doering
ne Schwabe Acked-by: David Sommerseth Acked-by: Heiko Hund Message-Id: <20221009130805.1556517-1-a...@rfc2549.org> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25367.html Signed-off-by: Gert Doering -- kind regard

Re: [Openvpn-devel] [PATCH v3] Fix OpenVPN querying user/password if auth-token with user expires

2022-10-09 Thread Gert Doering
met a computer with a sense of humor." Robert A. Heinlein, The Moon is a Harsh Mistress Gert Doering - Munich, Germany g...@greenie.muc.de signature.asc Description: PGP signature ___ Op

Re: [Openvpn-devel] [PATCH] Ignore auth-nocache for auth-user-pass if auth-token is pushed

2022-10-09 Thread Gert Doering
Hi, On Sun, Oct 09, 2022 at 10:13:32AM +0200, Gert Doering wrote: > This patch was still sitting "unanswered" in the list archives (though > it never landed in patchwork, as far as I can see). *sigh* More coffee on a sunday morning, it seems - this was actually merged just

Re: [Openvpn-devel] [PATCH] Ignore auth-nocache for auth-user-pass if auth-token is pushed

2022-10-09 Thread Gert Doering
t a computer with a sense of humor." Robert A. Heinlein, The Moon is a Harsh Mistress Gert Doering - Munich, Germany g...@greenie.muc.de signature.asc Description: PGP signature ___

Re: [Openvpn-devel] [PATCHv2] Allow inlining of --auth-user-pass

2022-10-09 Thread Gert Doering
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

[Openvpn-devel] [PATCH applied] Re: get_user_pass_cr: get password from stdin if missing inline

2022-10-09 Thread Gert Doering
Acked-by: Gert Doering Amazingly trivial, as soon as one understands the intricacies of get_user_pass_cr() ;-) - of course I have tested this. Without the patch, with no password will send an empty password, with the patch, it will query on stdin and things will succeed (hard to test in an

[Openvpn-devel] [PATCH applied] Re: auth-user-pass: add support for inline credentials

2022-10-08 Thread Gert Doering
Acked-by: Gert Doering This is, amazingly, quite straightforward. I assumed major complications but our magic "ask for username and password" function *already* supports inline, we just didn't use it for --aup yet... I have stared at the code for a bit (looks good, though the m

[Openvpn-devel] [PATCH applied] Re: implement --session-timeout

2022-10-07 Thread Gert Doering
Acked-by: Gert Doering This is a useful addition for situations with external constraints ("this VPN access may only be used between 10:00 and 18:00", so you can ensure the session ends at 17:59:59 without having extra managmeent logic around). Whether it's overly useful in

[Openvpn-devel] [PATCH applied] Re: Document/cleanup event_timeout functions

2022-10-07 Thread Gert Doering
ut functions Signed-off-by: Arne Schwabe Acked-by: Frank Lichtenheld Message-Id: <20221006122940.1202712-1-a...@rfc2549.org> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25348.html Signed-off-by: Gert Doering

Re: [Openvpn-devel] route/iroute handling on FreeBSD

2022-10-07 Thread Gert Doering
Hi, On Fri, Oct 07, 2022 at 10:47:08AM +0100, Kristof Provost wrote: > On 6 Oct 2022, at 16:39, Gert Doering wrote: > > FreeBSD DCO has the open issue of "iroute with the same netmask as > > route, so we want metric/weight/... to differenciate" > I???ll try to dig in

Re: [Openvpn-devel] [PATCH v2] Insert client connection data into PAM environment v2

2022-10-06 Thread Gert Doering
_RHOST environment variable */ > +if (*(up->remote)) > +{ > +status = pam_set_item(pamh, PAM_RHOST, up->remote); > +} ... which would work nicely together with this check for a non-empty string on the other end of the pipeline.

Re: [Openvpn-devel] route/iroute handling on FreeBSD

2022-10-06 Thread Gert Doering
options=8 inet 10.114.2.1 --> 10.114.2.2 netmask 0xff00 inet6 fd00:abcd:114:2::1 prefixlen 64 inet6 fe80::250:56ff:fe9c:41b%tun1 prefixlen 64 scopeid 0x5 groups: openvpn So, started out with one solution, now I have two new problems... gert --

Re: [Openvpn-devel] [PATCH v2] implement --session-timeout

2022-10-06 Thread Gert Doering
; is getting a bit long. What about "/* force-kill session after n seconds */"? 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

[Openvpn-devel] [PATCH applied] Re: do not push route-ipv6 entries that are also in the iroute-ipv6 list

2022-10-06 Thread Gert Doering
entries that are also in the iroute-ipv6 list Signed-off-by: Antonio Quartulli Acked-by: Heiko Hund Message-Id: <20220628082024.19059-...@unstable.cc> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24577.html Signed-off-by: Gert Doering -- kind regards, Gert Doering ___ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Re: [Openvpn-devel] [PATCH 2/3] Use buffer to prepare protocol-flags push-reply

2022-10-05 Thread Gert Doering
eople 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 Doerin

[Openvpn-devel] list hickup

2022-10-05 Thread Gert Doering
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 g...@gree

[Openvpn-devel] [PATCH applied] Re: denoise tests/t_lpback.sh

2022-10-05 Thread Gert Doering
Thanks for review & finding the "some shells do, some don't" wart in v1. Patch has been applied to the master branch. commit 977e0650c11500d3696419afbedf4a8f42ab6760 Author: Gert Doering Date: Tue Oct 4 15:14:03 2022 +0200 denoise tests/t_lpback.sh Signed-o

[Openvpn-devel] [PATCH applied] Re: use boolean '||' to join two bools, not bitwise '|'

2022-10-04 Thread Gert Doering
For sanity reasons, tested on the oldest system I have around (FreeBSD 7.4). No complaints (none expected). Patch has been applied to the master branch. commit facb6fffb35f51e67eefaab8ba357b676b3c6328 Author: Gert Doering Date: Tue Oct 4 16:51:42 2022 +0200 use boolean '||' t

[Openvpn-devel] [PATCH applied] Re: un-break undo_ifconfig_ipv4()/_ipv6() on all non-linux/non-win32 platforms

2022-10-04 Thread Gert Doering
Verified that it doesn't break any other platforms using buildbot on all platforms. Patch has been applied to the master branch (offending code is not in 2.5). commit d4c34b5246e58f83ee8b87249173521a28de6993 (master) Author: Gert Doering Date: Tue Oct 4 17:31:27 2022 +0200 un-

[Openvpn-devel] [PATCH v2] un-break undo_ifconfig_ipv4()/_ipv6() on all non-linux/non-win32 platforms

2022-10-04 Thread Gert Doering
mentation of undo_ifconfig_*() for TARGET_FREEBSD ("ifconfig tunX $ip -alias"), and brings back the old "do nothing" behaviour for all other unixoid platforms. Tested on FreeBSD 7.4, 12.3, 14.0. v2: use #elif defined(TARGET_FREEBSD), otherwise it breaks other platforms Signed-o

[Openvpn-devel] [PATCH] un-break undo_ifconfig_ipv4()/_ipv6() on all non-linux/non-win32 platforms

2022-10-04 Thread Gert Doering
mentation of undo_ifconfig_*() for TARGET_FREEBSD ("ifconfig tunX $ip -alias"), and brings back the old "do nothing" behaviour for all other unixoid platforms. Tested on FreeBSD 7.4, 12.3, 14.0. Signed-off-by: Gert Doering --- src/openvpn/tun.c | 23 +-

[Openvpn-devel] [PATCH] use boolean '||' to join two bools, not bitwise '|'

2022-10-04 Thread Gert Doering
platform_state_group) ^~~ init.c:3530:13: note: cast one or both operands to int to silence this warning 1 warning generated. .. so do what it wants us to do. Signed-off-by: Gert Doering --- src/openvpn/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openvpn/init.c

[Openvpn-devel] [PATCH v2] denoise tests/t_lpback.sh

2022-10-04 Thread Gert Doering
the actual testing code is streamlined. v2: replace indent tabs with spaces change [ $V == 1 ] expression to [ $V = 1 ] (POSIXly correct) Signed-off-by: Gert Doering --- tests/t_lpback.sh | 88 ++- 1 file changed, 57 insertions(+), 31 deletions(-)

[Openvpn-devel] [PATCH] denoise tests/t_lpback.sh

2022-10-04 Thread Gert Doering
the actual testing code is streamlined. Signed-off-by: Gert Doering --- tests/t_lpback.sh | 88 ++- 1 file changed, 57 insertions(+), 31 deletions(-) diff --git a/tests/t_lpback.sh b/tests/t_lpback.sh index 67952994..4cf29d26 100755 --- a/tests/t_lpbac

Re: [Openvpn-devel] Multiple Openvpn servers using same port + Nginx

2022-10-01 Thread Gert Doering
ed 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 g...@gre

[Openvpn-devel] [PATCH applied] Re: introduce V= level to manage t_client.sh output verbosity

2022-09-27 Thread Gert Doering
Thanks for the review & testing ;-) Patch has been applied to the master branch. commit 398f73094a692ba46be7e3205b65d915d2593a64 Author: Gert Doering Date: Tue Sep 20 15:23:51 2022 +0200 introduce V= level to manage t_client.sh output verbosity Signed-off-by: Gert Doe

<    4   5   6   7   8   9   10   11   12   13   >