Skip to contentSkip to conversation

Topics for the community meeting (Wed, 2nd May 2018)

Openvpn-devel Samuli Seppänen 1 participant 3 messages May 2, 2018 – May 23, 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-05-02>

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, 2nd May 2018)

Hi,

Here's the summary of the IRC meeting.
---

COMMUNITY MEETING

Place: #openvpn-meeting on irc.freenode.net
Date: Wednesday 2nd May 2018
Time: 11:30 CET (10:30 UTC)

Planned meeting topics for this meeting were here:

<https://community.openvpn.net/openvpn/wiki/Topics-2018-05-02>

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, mattock, ordex and syzzer participated in this meeting.

--

Discussed the obfuscation approach taken by Google's Jigsaw project / Operator Foundation. The preliminary patches are semi-private, and it was agreed that they should be modified somewhat before we ask them to be sent to the mailing list.

Our suggested approach is this:

- preserve current settings (proto, port, etc)
- specify --transport-plugin <plugin.so> [params], referencing one plugin per connection block
- plugin needs to be loaded at startup with --plugin
- 'ops' like approach for required functions (i.e. attached to connection block)

--

Had a discussion of the networking API (netlink patchset). The current WIP API is here:

<https://patchwork.openvpn.net/patch/307>

And how to use it from tun.c:

<https://patchwork.openvpn.net/patch/313/>

Some changes were proposed. Ordex will try to implement them by next meeting.

--

Full chatlog attached.

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

irc freenode net: mattock

(10:57:29) ordex: mattock: Topic for #openvpn-meeting: Next meeting on 02/May/2018 at 11:30CET. Agenda at https://community.openvpn.net/openvpn/wiki/Topics-2018-05-02
(10:57:31) vpnHelper: Title: Topics-2018-05-02 – OpenVPN Community (at community.openvpn.net)
(12:31:19) ordex: aloha :)
(12:31:23) dazo: Hey!
(12:31:34) ordex: aah! I am not alone!
(12:31:42) ordex: mattock: syzzer: cron2 ?
(12:31:48) syzzer: moin :)
(12:31:49) cron2: I'm alway shere
(12:31:52) ordex: :D
(12:32:04) cron2: at least, electronically... whether my brain is engaged...
(12:32:07) ***cron2 goes checking
(12:32:10) dazo: cron2 .... the spirit of openvpn :-P
(12:32:14) ordex: :D
(12:32:19) dazo: lurking in the corners of the interwebs
(12:32:53) mattock: hi!
(12:33:19) mattock: start from #1?
(12:33:26) mattock: networking API: discussion and high-level review (netlink patchset)
(12:33:26) ordex: actually, I'd suggest to start from #2
(12:33:28) mattock: ok
(12:33:30) ordex: because it's shorter
(12:33:35) mattock: #2 get feedback for approach taken by obfuscation via plugin (Jigsaw project)
(12:33:40) ordex: yeah
(12:33:55) cron2: yeah
(12:34:01) ordex: so basically I went through the patches provided by these guys working for Google, that are implementing a obfuscation API for openvpn2
(12:34:09) cron2: where are they?
(12:34:16) ordex: the patches or the guys?
(12:34:17) ordex: :D
(12:34:22) cron2: (sorry, brain is still missing)
(12:34:24) cron2: patches
(12:34:35) ordex: the patches are those that dazo pointed us to in a private email some time ago
(12:34:39) ordex: they have not been sent to the ml yet
(12:34:41) cron2: ah
(12:34:45) ordex: I wanted to provide some early feedback first
(12:35:19) ordex: as I Was saying the code is fairly good already so I will tell them to go ahead and send to the ml
(12:35:22) ordex: just one question for you
(12:35:34) ordex: the approach they took is as following (high-level):
(12:35:41) cron2: grumble, can't find the mail. Anyway: listening
(12:36:02) ordex: Subject: "Fwd: Plugin API for Obfuscation"
(12:36:13) cron2: found it
(12:36:23) cron2: was looking for "mails from dazo". Mail is from davids
(12:36:32) dazo: :)
(12:36:41) ordex: - they have extended the plugin API to include calls for establishing a connection and then "mutate/obfuscate" the traffic
(12:36:56) ordex: the way they tell openvpn about this is by means of a special "protocol"
(12:37:05) ordex: so instead of specifying udp or tcp they specify "intercept"
(12:37:13) syzzer: oh, I totally missed that patches were already sent :')
(12:37:20) cron2: syzzer: they weren't
(12:37:21) ordex: syzzer: not sent yet
(12:37:25) cron2: https://github.com/OpenVPN/openvpn/compare/db34435...OperatorFoundation:rtt-working
(12:37:27) vpnHelper: Title: Comparing OpenVPN:db34435...OperatorFoundation:rtt-working · OpenVPN/openvpn · GitHub (at github.com)
(12:37:57) ordex: my question for which I just wanted to get some feedback from you is about this "intercept" protocol. just wanted to hear is from an high-level perspective this looks like a reasonable entry point
(12:38:10) ordex: or if a "transport API" should rather have something more specific
(12:38:21) ordex: s/is/if
(12:38:40) cron2: I do not like the word "intercept". I can live with "a specific keyword to 'proto' that states 'let the plugin API deal with all the details'"
(12:38:53) cron2: OTOH
(12:39:01) dazo: so ... you need --proto intercept + --plugin which supports the hooks to obfuscate?
(12:39:08) ordex: dazo: correct
(12:39:33) cron2: maybe it would be nicer to actually stick to "proto udp 1234" and add "--plugin-transport-massacre" to enable the plugin
(12:39:43) dazo: how is udp/tcp protocol defined? By the plug-in?
(12:39:51) cron2: so the "which protocol, which port" bit would still be in the openvpn config (= you can find it)
(12:40:00) ordex: dazo: I think so. I think at that point udp/tcp is a plugin specific knob
(12:40:17) ordex: cron2: so you know what the plugin is actually using?
(12:40:26) ordex: (i.e. for port forwarding/firewall in general)
(12:40:33) dazo: I actually like this approach ... when considering multiple --remote / connection profiles
(12:40:48) dazo: it means it can try to connect without obfuscation and with obfuscation in the same config
(12:40:52) syzzer: cron2: so what would the "proto udp 1234" in the config mean when using the plugin
(12:40:55) cron2: ordex: the plugin can be free to ignore me (like, "always connect to some magic wonderbox and hand over credentials")
(12:41:20) cron2: syzzer: it could mean "the remote server is listening on udp 1234, but expects $pluginmagic not standard-openvpn"
(12:41:52) dazo: I would probably prefer to use the keyword "plugin" instead of "intercept" though ... that gives a clearer semantic
(12:42:05) ordex: dazo: yeah, think so too
(12:42:15) cron2: but if I just do "proto intercept", how do I specify where my server is? If I have more than one? It would have to be "on the plugin line", which there can only be one (so, connection retry / failover to next host / ... logic would need to be in the plugin) (12:42:16) syzzer: Ah, yes, I think that could make sense. Considering for example the immensely popular "xor obfuscation"
(12:42:38) cron2: syzzer: right. That would not even have a "connect()" method, just "encap/decap"
(12:42:44) ordex: can plugins parse the config?
(12:42:48) ordex: and have their own set of options?
(12:43:02) cron2: ordex: they have their own set of options on the "plugin ..." line
(12:43:03) dazo: you can pass options to plugins ... via the --plugin
(12:43:12) ordex: ah ok
(12:43:32) cron2: what we would need is to pass "all options that are connection-related" to the plugin->connect() method
(12:43:41) cron2: (like, proto, port, v4/v6, proxy, ...)
(12:43:47) ordex: yeah
(12:43:51) syzzer: but that would mean that we'll need to support plugin in <connection? blocks...
(12:44:37) cron2: if we go by --plugin cli arguments, yes - and this will be complicated-to-impossible
(12:44:38) dazo: with the --proto intercept/plugin approach .... we would not need to extend <connection/> or multiple --remote lines
(12:45:05) cron2: dazo: the problem with that is "if you want multiple remotes, you cannot specify them inside openvpn.conf anymore"
(12:45:43) dazo: yes you can .... --remote server1 1194 udp --remote server1 11194 intercept
(12:46:22) cron2: dazo: if you have <n-1> without intercept and one with intercept, but is that a useful case?
(12:46:41) cron2: like, you want xor plugin. You have a VPN server provider that offers 20 remotes, all with xor.
(12:46:44) cron2: how do you config that?
(12:46:57) syzzer: cron2: as a get-aroundt-the-gfw fallback, that sounds useful
(12:47:25) dazo: right, the plug-in would only support a single set of obfuscation parameters, that's true
(12:47:36) cron2: syzzer: yes, but should we design the API in a way that that's the only way it can handle multiple remotes?
(12:47:43) ordex: i think what cron said earlier is the "simplest" concept: if a plugin implements ->connect(), then we simply pass all the connection-related options to it. so they come from the standard --lport, --remote, etc config options (12:47:44) dazo: but adding support for --plugin within connection blocks .... that's not a trivial task
(12:47:54) cron2: so my idea would be like this:
(12:48:05) cron2: - we keep --proto / --remote / --port as it is
(12:48:23) cron2: - we add an option "--transport-plugin-enable <options>"
(12:48:55) cron2: - plugin->connect() gets access to our <connection> options plus the <transport-plugin-enable> options
(12:49:08) cron2: and then it can do with it whatever it wants - honour them, ignore them, mutate them
(12:49:26) cron2: if --transport-plugin-enable is configured, a plugin MUST be loaded that can do, well, transport
(12:49:36) dazo: so --transport-plugin-enable would be given the .so to load as well? Or just the arguments to pass to a --plugin ?
(12:49:43) cron2: dazo: you'd do
(12:49:48) cron2: --plugin mymagic.so
(12:49:50) cron2: <connection>
(12:49:55) cron2: remote vpn.ca 1234
(12:50:02) cron2: transport-plugin-enable 0x12345
(12:50:04) cron2: <connection>
(12:50:08) cron2: remote vpn.us 4321
(12:50:13) cron2: transport-plugin-enable 0x99999
(12:50:15) cron2: </connection>
(12:50:45) ordex: should we consider loading multiple plugins? or not for now?
(12:50:47) cron2: the "0x12345" number here could be "the xor key", or "anything else that makes sense to the transport-plugin in that case
(12:51:18) dazo: multiple --plugin would truly be even more tricky ... you can do that already, and they would be chained
(12:51:20) cron2: ordex: we'll have to handle that eventually (on the server side, you might want a transport plugin and an auth plugin)
(12:51:44) ordex: in constrained environment, it would be needed to try different obfuscations. even though this can be solved with multiple configs and multiple servers
(12:52:17) cron2: --transport-plugin-enable myxor.so 0x9999
(12:52:25) cron2: --transport-plugin-enable magicgoogleAES.so 0x1234523414
(12:52:36) cron2: ?
(12:52:51) ordex: I like that, but this is going to be interesting codewise :D
(12:53:00) cron2: ("force use of a plugin with that name, and pass it <arguments>")
(12:53:07) cron2: ordex: I don't think it will be, tbh
(12:53:22) ordex: oh ok
(12:53:26) ordex: even better :)
(12:53:32) dazo: that's probably a somewhat simpler approach .... doing it via --plugin + --transport-pluing-enable would need a massive rework of the plugin.c code (it is currently a for() loop looping over the set of feature being requested in the plugin, defined by a "type" mask) (12:53:32) cron2: if plugins can be chained today (this is how I understand dazo), we just need to agree on "do I want a single transport plugin, or stacked"
(12:54:09) cron2: dazo: I do not want them *loaded* in the --transport-plugin-enable code, just referenced -- loaded at startup time with the normal --plugin call
(12:54:23) cron2: --transport-plugin-enable mymagic.so
(12:54:51) cron2: would then find that plugin in the list, and set up some sort of ->connect(),->encap(),->decap() pointers
(12:55:04) cron2: so we do not need to walk for every packet
(12:55:08) ordex: oh so we'd still need to list multiple --plugin options to load them all?
(12:55:20) cron2: since a plugin can provide other features, yes
(12:55:25) ordex: ok
(12:55:27) cron2: so you ave
(12:55:30) cron2: plugin myauth.so
(12:55:34) cron2: plugin eurephia.so
(12:55:38) cron2: plugin myxor.so
(12:55:42) cron2: plugin googlesAESthingie.so
(12:55:44) cron2: and then
(12:55:48) cron2: <connection>
(12:55:57) cron2: transport-plugin-enable myxor.so 0x1235
(12:56:00) cron2: <connection>
(12:56:04) cron2: ...
(12:56:18) cron2: "I think this could work, and be easy to see in the config what is happening"
(12:56:24) dazo: look at plugin.c:814 / plugin_call_ssl() ... this is what is being called whenever anything in OpenVPN wants to make use of a plug-in
(12:56:24) ordex: yeah
(12:57:00) dazo: then the real call inside the plugin happens via plugin_call_item()
(12:57:29) dazo: but the plugin_call_ssl() need to be extended with a "filter" to only run the selected transport plugin, defined in a connection block
(12:58:15) cron2: dazo: or we add something like "plugin_setup_transport()" that would find desired transport plugin and setup "fast calls" for connect/encap/decap later on
(12:58:48) cron2: but anyway, that is implementation, iff we agree on the approach
(12:58:57) ordex: yeah
(12:59:04) ordex: implementation details can be discussed later
(12:59:08) ordex: when the code is on the ml
(12:59:32) ordex: even though an approach in "ops-style" like suggested by cron2 would not be bad. so the lookup is done only once
(12:59:45) ordex: anyway, do we all like this per-connection/remote approach?
(12:59:46) dazo: I would actually suggest we provide this feeback back to Operation Foundation, so they can consider all this before submitting to the ML
(13:00:18) cron2: dazo: yes (on "feedback before patches")
(13:00:43) ordex: I think we could directly suggest the "ops-like" approach, no? but /me is not up-to-date with the entire plugin stack
(13:00:53) dazo: I see the advantage of being able to use different obfuscation plugins ... I'm more concerned about the implications it does to the complexity
(13:01:29) cron2: my mental eye sees one extra call per packet ("if c->plugin.encap_function != NULL ...")
(13:01:35) cron2: and one extra call per function setup
(13:01:42) cron2: all the rest nicely encapsulated away
(13:01:54) cron2: s/function setup/connection setup/
(13:02:00) ordex: cron2: we could force those ops to be non-null at load time
(13:02:04) ordex: or we reject the plugin (?)
(13:02:15) cron2: ordex: well, we could be running "with no plugin" :)
(13:02:27) ordex: event though some obfscation plugins may not have all the APIs implemented
(13:02:39) cron2: (we could certainly have the c->encap_function point to "our normal encap function")
(13:02:46) ordex: cron2: well, yeah..in a way or another there must be a check
(13:03:03) dazo: right, but we have the struct plugin which keeps a list of all plugins ... so the plugin_call_ssl() can then not be used to for traffic obfuscation, it needs a different call ... which should point at the specific plugin for the connection profile (13:03:36) dazo: so it is kind of duplicating existing plug-in code paths but at the same time it will be somewhat simpler in other aspects
(13:03:52) cron2: "always do function pointers for encap/decap" is certainly the "elegant" way, but it makes the code harder to understand for the normal case... (ran into this when trying to figure out setsockopt() failures in NetBSD... call chain through 4 or 5 function pointers...) (13:04:09) cron2: dazo: yes
(13:05:35) dazo: well, plugins depends on function pointers anyhow ;-) ... But we should make it as simple as possible
(13:05:40) ordex: cron2: hehe yeah. but if we keep it simple, it should not get that bad :P
(13:05:46) ordex: yeah
(13:05:54) dazo: Hmmm ... perhaps the connection block could just carry the function pointer?
(13:06:15) dazo: IIRC, connection blocks are used under the hood, even if only a single --remote is configured
(13:06:42) mattock: (12:33:26) ordex: actually, I'd suggest to start from #2 ... because it's shorter
(13:06:43) mattock: :P
(13:06:48) ordex: :P
(13:07:01) ordex: dazo: that's probably how it may work..
(13:07:17) dazo: mattock: Murphy's law in practice ;-)
(13:08:24) ordex: dazo: yeah, connection blocks are used also for one remote
(13:08:40) ordex: the remote is converted to a connection entry in the post-options-parse thing
(13:09:01) ordex: so some per-connection block field is probably the cleanest solution
(13:09:24) ordex: I think I've got enough to get back to them and keep busy for a while..
(13:09:24) dazo: so if --transport-plugin is defined, it looks up all loaded --plugins and sets the function pointer directly to the obfuscation function .... this way, there's less CPU cycles wasted when passing data for obfuscation/de-obfuscation (13:09:38) ordex: yes
(13:09:50) ordex: this is the "ops-like" approach cron2 described before, I think
(13:10:00) dazo: yeah
(13:10:08) dazo: okay, I'm convinced about this approach now :)
(13:10:10) ordex: this is common in the kernel for FS or network devices too
(13:10:11) ordex: :D
(13:10:12) ordex: goood!
(13:10:25) ordex: i'll forward our comments to them and see what they think about it
(13:11:04) dazo: thx!
(13:11:29) ordex: are we good with #2 ?
(13:11:38) cron2: yep :)
(13:11:39) dazo: yeah
(13:11:47) mattock: ordex: if you could summarize our thoughts for me as well
(13:11:50) mattock: for the summary
(13:12:06) ordex: ok
(13:12:09) ordex: let me see
(13:12:11) mattock: thanks!
(13:13:16) ordex: - preserve current settings (proto, port, etc)
(13:13:16) ordex: - specify --transport-plugin <plugin.so> [params], referencing one plugin per connection block
(13:13:16) ordex: - plugin needs to be loaded at startup with --plugin
(13:13:16) ordex: - 'ops' like approach for required functions (i.e. attached to connection
(13:13:16) ordex: block)
(13:13:26) ordex: needs to be reworded and extended :P of course
(13:13:47) ordex: but i think these are the major points we touched, no?
(13:14:03) cron2: dazo: commit 23d61c56b9fd218c39ad151b01b7e2d6690e6093
(13:14:10) cron2: Always use connection_list, simplifies the reconnection logic.
(13:14:21) dazo: " referencing one plugin " -> "reference the callback function in one plugin per connection block"
(13:14:53) ordex: oky
(13:15:12) dazo: cron2: yeah, I vaguely recalled something like that :)
(13:15:26) cron2: this is why I went looking it up :)
(13:15:33) dazo: :)
(13:16:09) ordex: 15 minutes left for netlink :D
(13:16:13) dazo: :-D
(13:16:28) cron2: ok, which is the most relevant patch you want feedback for?
(13:16:39) ordex: I think the networking API per se
(13:16:43) ordex: let me pick it
(13:17:05) ordex: so this is the API I came up with: https://patchwork.openvpn.net/patch/307/
(13:17:06) vpnHelper: Title: [Openvpn-devel,1/8] implement platform generic networking API - Patchwork (at patchwork.openvpn.net)
(13:17:22) ordex: and here it is used for tun.c: https://patchwork.openvpn.net/patch/313/
(13:17:24) vpnHelper: Title: [Openvpn-devel,3/8] tun.c: use new networking API to handle tun interface on Linux - Patchwork (at patchwork.openvpn.net)
(13:17:25) cron2: *reading*
(13:17:35) ordex: ok
(13:17:52) ordex: the question is: is this "reasonable" so that we can move also the other platforms to this API in the future?
(13:18:02) cron2: this is what I'm looking for :)
(13:18:21) ordex: hehe yeah, I think we all want that. this way we'd cleanup tun.c/route.c big time
(13:19:00) cron2: first nitpick: "add an IPv4 address to an interface"
(13:19:11) syzzer: ordex: I don't have much to add to the dicussion, but I do want to say that both the netlink and the multisocket stuff is very cool!
(13:19:19) cron2: we should be sure that is what we want, "add to whatever is already there" instead of "set address for an interface"
(13:19:35) ordex: syzzer: glad to hear that! :)
(13:20:15) ordex: cron2: if we want to "set", the external layer could do a "flush all addrs on $dev", "ass new $addr"
(13:20:34) ordex: not sure we have a way to flush right now, we could be implemented in the current API
(13:21:04) ordex: cron2: your concerns comes from the actual behaviour of "ifconfig" ?
(13:21:11) ordex: because with iproute2 we already do "ip addr add"
(13:21:18) ordex: and this API is basically the same as that
(13:21:50) cron2: it's a bit of "what do we really use?" plus "ifconfig can only do <x>" plus "omg, windows"
(13:22:17) cron2: and what we *use* today is "set". Calling "ip addr add" might just work because a new tun/tap has no address, but technically that's just coincidence
(13:22:27) ordex: :D
(13:22:30) ordex: nice to know
(13:22:31) dazo: I think supporting "add" instead of just "set" is more future proof, even though now we can only support a single VPN IP address per IP stack
(13:22:54) dazo: today
(13:22:58) cron2: but maybe we want *add*, to give people more rope to hang themselve :-) (predefined tun interface, with some addresses already there that "MUST NOT BE DELETED!!!")
(13:22:59) ordex: yeah what dazo said. but maybe then we should add a "flush_addr" API, so that the external logic can make that behaviour clear
(13:23:10) dazo: yeah, that makes sense
(13:23:34) ordex: hmmm
(13:23:44) cron2: so, this is one thing that came to my mind :) - "be clear on what we want, set or add, and if we want set, make the API support that"
(13:23:48) cron2: so, next thing
(13:24:41) cron2: if we use that API as an internal upper half / lower half for route.c, tun.c, splitting "net_iface_up()" and "net_addr_v4_add()" will cause extra exec() calls on some of the ifconfig plattforms
(13:24:59) cron2: right now we do "ifconfig tun0 1.2.3.4 up" and be done with it
(13:25:04) ordex: yeah, is that a problem?
(13:26:30) cron2: we'd need to test this (if "ifconfig tun0 up" will nicely work everywhere) - I assume it's not a hard problem, I just loathe extra exec() calls if not needed
(13:26:32) dazo: Or we could also figure out some kernel APIs on those platforms as well, and migrate to a similar approach there too - having ifconfig as the fallback there
(13:26:57) cron2: dazo: we do not want to find kernel APIs for Solaris, really not :-)
(13:27:01) ordex: :D
(13:27:19) ordex: but, yeah, we need to make sure it works. buildbot should safely check that, no?
(13:27:19) dazo: fair point! :) I was more thinking about *BSD ;-)
(13:28:04) dazo: (I really wonder how widely OpenVPN is used on Solaris nowadays)
(13:28:21) cron2: I would see "kernel packet link APIs" as a non-goal. If someone really feels like they need this, good, but since part of the reason we want this on linux ("100000 routes" and "non-root, capabilities" ) do not really seem to exist for those plattforms (13:28:49) cron2: anyway
(13:29:00) cron2: the API will not work on windows in its current form
(13:29:06) ordex: oh ok, why?
(13:29:37) cron2: because you pass in a "const char * iface" but you miss the service pipe handle
(13:29:53) dazo: oh, true
(13:30:07) cron2: (windows passes "give me a route! give me an ifconfig!" via pipe to the iservice daemon)
(13:30:40) ordex: hmmm can't the windows API implementation be the one building what the iservice needs?
(13:30:53) ***ordex has no clue about how this works at the moment
(13:31:32) dazo: hmmm .... well, it's ugly, but the service pipe could be a global variable ... which would only be defined on Windows
(13:31:45) cron2: dazo: no
(13:32:22) ordex: ah
(13:32:28) cron2: I would tend to add an opaque struct pointer to the API calls which they can use to store "things they need" in it
(13:32:31) dazo: the alternative is to have some init() setup ... which configures a struct used by this API ... for Linux it would mostly be a NOOP
(13:32:35) ordex: this is similar to the env_set problem with iproute
(13:32:41) ordex: we could have an opaque ctx like for ssl
(13:32:47) ordex: yes
(13:32:49) cron2: yes
(13:32:55) ordex: we all said the same thing I believe :D
(13:33:02) dazo: yeah, that's what I mean too
(13:33:07) dazo: ::)
(13:33:23) ordex: that's probably the best, so we hide all the implementation specific requirements in the opaque ctx
(13:33:37) ordex: or any required state
(13:33:56) cron2: ... and if it turns out we run into a platform that cannot do "ifconfig tun0 up", we can just have the struct remember "tun wants up, but is not yet" and the ifconfig calls can then do that
(13:34:16) dazo: yeah
(13:34:42) ordex: yup
(13:34:56) ordex: this way we can re-use the same ifconfig-implementation for the "broken" platforms
(13:34:58) ordex: sounds good :)
(13:35:13) ordex: I think this is already enough for no
(13:35:14) ordex: w
(13:35:24) ordex: I can restructure the API to include the ctx
(13:35:35) dazo: sounds good to me
(13:35:50) cron2: the net_route_* functions *should* work, though we use an interface index on windows, not the name
(13:36:18) cron2: (and since it's not always the same interface, using "init()" for this won't work)
(13:36:19) ordex: can't thatbe retrieved from the implementation? also netlink retrieves the ifindex from the name
(13:36:30) cron2: we might not have a name
(13:36:35) ordex: ah
(13:36:47) cron2: like, for the "where is the current ipv6 default gateway? so we can add a $host/128 bypass route"
(13:37:06) cron2: I think the "where is the route?" API will spit out an ifindex+gateway
(13:37:15) ordex: hmm will check that
(13:37:36) dazo: hmmm ... is that index something we could put into a ctx instead of providing an interface name each time?
(13:37:54) ordex: it's a bit ugly...but we could have some openvpn_iface_type_t
(13:38:03) ordex: that gets redefined based on the implementation we choose
(13:38:11) ordex: char * for those using a name
(13:38:16) ordex: or $whatever for windows
(13:38:17) cron2: dazo: "all but one" route will point to the tun/tap interface, and *one* (redirect-gateway) will point elsewhere, which might only be identified by an index...
(13:38:23) cron2: yeah
(13:38:49) cron2: making "const char *iface" an "openvpn_platform_if_t iface" might make this work
(13:39:02) ordex: yeah some name like that
(13:39:03) dazo: I was thinking an "init ctx" call could do the ifindex lookup and save the needed details needed for each platform
(13:39:44) dazo: if it saves ifindex + a char *, or what it uses later on would be up to the "sitnl" implementation for each platform
(13:39:48) ordex: this means we might need to call the init() everytime we have to work on a different ifname
(13:39:55) cron2: dazo: we have no name
(13:40:05) ordex: that too :P
(13:40:23) ordex: so basically we have no "common type" that we can use in our abstraction
(13:40:26) cron2: (even for the tap interface on windows, we take great care to use the ifindex today :))
(13:40:33) dazo: I was thinking of the "char *iface"
(13:40:34) ordex: we need to redefine the type per implementation..
(13:40:42) dazo: so bad terminology from my side :)
(13:41:14) cron2: ordex: I think most plattforms will be fine with char * iface, as long as we find a way to transport an integer without too much hurt
(13:41:46) dazo: Then openvpn_platform_if_t iface would be a bit cleaner
(13:41:50) ordex: yap
(13:41:54) cron2: yep
(13:42:06) cron2: I was thinking about struct/union, but that just complicates things for everybody
(13:42:23) mattock: I will have to get some lunch now
(13:42:41) mattock: but do not let that stop you from continuing :P
(13:42:44) dazo: mattock: bring your laptop and Internet connection! :-P
(13:42:48) ordex: cron2: well, but where do we use it? if it's for a single member, better to just redefine the type
(13:42:57) ordex: :D
(13:43:13) ordex: anyway, let's try the openvpn_platform_if_t approach
(13:43:17) cron2: ordex: this *should* have conveyed "... so I do not think struct/union is a good idea" :)
(13:43:18) ordex: anyway I can test this on windows?
(13:43:28) ordex: ah :D
(13:43:30) ordex: ok
(13:44:28) cron2: ordex: if you have _init(), you could just experiment with one of the easy ones (net_route_v6_add())...
(13:44:37) ordex: ok
(13:44:52) ordex: and btw, converting windows is not part of this patchset yet
(13:45:10) ordex: so ensuring it works might come later, even though the API should be good enough to not being touched anymore
(13:45:37) cron2: ordex: understood :) - and that's why it was important you urged us to review the API today
(13:45:43) cron2: (thanks)
(13:45:44) ordex: yup :)
(13:46:08) ordex: it would be nice if we could rediscuss this next week (hopefully with these changes applied by me)
(13:46:15) ordex: but for now i think we are good
(13:46:16) ordex: !
(13:47:40) ordex: anything else we want to mention?
(13:48:04) ***cron2 is a bit exhausted
(13:48:14) ordex: food for everybody then ;P
(13:48:37) syzzer: yeah, food! :D
(13:48:39) cron2: mattock: any news on driver signing? Or have you avoided even thinking about that?
(13:48:39) syzzer: :p
(13:49:08) cron2: syzzer: you haven't said *that* much :)
(13:50:42) syzzer: cron2: correct, but I still need food ;-)
(13:50:54) cron2: hrhrh :)
(13:51:11) cron2: syzzer: so how's your busy-level these days? Haven't seen much from you lately
(13:51:21) syzzer: cron2: slowly decreasing :)
(13:51:26) cron2: promising
(13:51:39) dazo: down to 128% ... or something around there? :-P
(13:52:03) syzzer: new team member starting today, so still need to invest time to get everything rolling.
(13:52:26) syzzer: hopefully once the new team members are up-and-running, I get time to do other stuff again
(13:52:29) cron2: dazo: only 128%? Are you neglecting your family, or not sleeping enough? ;)
(13:53:12) dazo: sleeping is overrated
(13:53:24) dazo: ;-)
(14:22:40) mattock: cron2: no progress on the driver signing front - national holidays and all that got in the way
(14:22:59) mattock: I will start the via dolorosa soon enough, though

#2 lore raw

[Openvpn-devel] Summary of the community meeting (Wed, 23rd May 2018)

In reply to Samuli Seppänen

Hi,

Here's the summary of the IRC meeting.
---

COMMUNITY MEETING

Place: #openvpn-meeting on irc.freenode.net
Date: Wednesday 23rd May 2018
Time: 11:30 CET (9:30 UTC)

Planned meeting topics for this meeting were here:

<https://community.openvpn.net/openvpn/wiki/Topics-2018-05-23>

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, mattock, ordex and syzzer participated in this meeting.

--

Discussed status of tap-windows6 builds, signing and the latest security fix. The guys at OpenVPN, Inc. office are setting up Windows 10 mini-pc's for testing the driver signatures. Actual testing can be performed by an internal team. It was agreed, though, that automating as much of the testing as possible should be the goal.

Related to that mattock is almost done with automating OpenVPN Inc's basic Windows configurations using Puppet, and will extend that automation to the Win10 testing mini-pc's and the tapbuilder VM. Once that's done he will publish a Vagrant VM that anyone can use to build tap-windows6 drivers.

Cron2 had contacted Cisco about the latest problem in tap-windows6 driver, but after the initial response ("we hear you") there has not been any further progress.

We also discussed the option of having a semi-private "vendors" list where we could share basic vulnerability info (e.g. severity) before the release date. This would help vendors release fixed versions synchronously with us. The idea was to have a protected ("only admins can edit") Trac page with basic vendor info. Vendors would have to contact [email protected]... to get added there. Other approaches like having semi-private mailing lists were also discussed.

--

Discussed the obfuscation patchset by the Operator Foundation. Ordex forwarded our freeback to them and they're making changes based on it.

--

Had a discussion of the networking API (netlink patchset) which lives in ordex's GitHub fork:

<https://github.com/ordex/openvpn/commits/sitnl>

The current API is here:

<https://github.com/ordex/openvpn/commit/59ef41b8c42897060fe546917fb421bc6fea21c9>

It also comes with unit tests in form of t_net.sh:

<https://github.com/ordex/openvpn/commit/78c579d9591ced096175238e00377733fcb047a4>

The unit tests looked reasonable and it was agreed that extending them to *BSD would be doable. Similar tests could be implemented on Windows using Powershell, cmd.exe or Cygwin.

--

Discussed tls-crypt-v2. Ordex will try to allocate some time to review syzzer's patches. If the patches get an ACK cron2 has no issues merging them. It was agreed that we should have post-review meeting to ensure that the patches don't end up in "forgotten state" again.

--

Discussed protocol extensions briefly, as tls-crypt-v2 is essentially a low-level protocol extension. It was agreed that this is a good topic for the upcoming hackathon.

--

Full chatlog attached.

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

irc freenode net: mattock

(12:29:43) mattock: hi
(12:29:52) cron2: ho
(12:30:00) mattock: how do we have here today
(12:30:05) mattock: who
(12:30:10) cron2: meow
(12:30:11) ordex: you
(12:30:22) cron2: ordex-man! :-)
(12:30:23) dazo: hey
(12:30:27) ordex: :D
(12:30:37) ordex: and dazo-san
(12:31:10) dazo: heh
(12:31:12) mattock: a fair crowd already
(12:31:34) cron2: so crowded toda?
(12:32:10) mattock: https://community.openvpn.net/openvpn/wiki/Topics-2018-05-23
(12:32:12) vpnHelper: Title: Topics-2018-05-23 – OpenVPN Community (at community.openvpn.net)
(12:32:44) syzzer: morning :)
(12:32:47) ordex: hi syzzer !
(12:32:55) mattock: hi!
(12:33:05) mattock: start from the top?
(12:33:15) mattock: any other topics?
(12:33:41) syzzer: maybe tls-crypt-v2 ?
(12:33:50) syzzer: I'd like to see if we can get that ball rolling again
(12:33:58) ordex: yeah
(12:33:59) mattock: fine by me
(12:34:02) syzzer: (like, flushing my queue a bit)
(12:34:28) mattock: added to topic list
(12:34:38) ordex: thanks
(12:34:58) dazo: syzzer: you're not alone with a long queue these days
(12:35:25) mattock: 1. Tap-windows6 patches and updates
(12:35:34) syzzer: yeah, guessed so, it's awfully quiet on the list
(12:35:54) mattock: I can give my update on 1.
(12:36:00) ordex: ok
(12:36:04) syzzer: sounds good :)
(12:36:18) mattock: no progress as far as signing goes, but the guys at the office are setting up a bunch of Win10 mini-pc's for testing
(12:36:33) mattock: and we can outsource and/or automate much of the testing part
(12:36:59) mattock: so the whole process might not be entirely horrendous on my part
(12:37:30) mattock: I'm almost at the point where I can setup a new tap-windows6 build rig for jkunkee's refactored tap-windows6 build system
(12:37:36) mattock: i.e. newer DDK and all
(12:37:48) mattock: I got distracted by tangentially related large infrastructure tasks
(12:37:59) mattock: that all
(12:38:10) dazo: mattock: this topic was briefly touched last week in Lviv too ... but I believe we pointed people into your direction as well
(12:38:38) mattock: yep, so the idea I believe was to have Lviv team do the testing
(12:38:52) mattock: although depending on what kind of testing MS wants it might pay off to automate some of it
(12:38:56) dazo: And I presume it might come up again when discussing release management with Elfredy in Lviv in July again
(12:38:57) dazo: ahh, right
(12:39:16) dazo: yeah, we need to automate as much as possible
(12:39:42) dazo: I doubt MS insists on us hiring monkeys to do the testing .... monkeys have higher failure rate than proper automation, regardless of how you do things
(12:40:08) dazo: (and I do NOT mean the guys in Lviv are monkeys!)
(12:40:47) mattock: good correction
(12:41:18) mattock: anyways, the automation part is something I could probably do fairly easily with Powershell remoting for example
(12:41:24) cron2: I have established contact with the cisco guys wrt the new TAP security thing - no response so far except "we have heard you". So I'll might come with a request for a CVE later...
(12:41:26) mattock: but it remains to be seen what it takes
(12:41:59) dazo: mattock: play along with the Lviv guys ... you might be able to offload some of the automation work if you co-operate with them ... tossing everything to them might take a bit longer again, though
(12:42:14) syzzer: mattock: any chance we can get the tap-windows 6 builds to be reproducible?
(12:42:30) dazo: speaking of CVEs ... we have a few wiki pages needing attention here ... and to release and update some MITRE entries
(12:42:38) mattock: dazo: I will bring this up with Mykola and Justin
(12:42:45) dazo: good!
(12:42:56) dazo: syzzer++ on reproducible builds
(12:43:16) syzzer: if you think that's doable, I'm willing to invest some time into it
(12:43:18) cron2: reproducible builds = "I can follow this recipe, build this on my machine, and get the same outcome"?
(12:43:36) syzzer: yes, as in binaries with exact same sha256 hash
(12:43:50) mattock: syzzer: I have no clue
(12:44:09) cron2: not sure if that is doable, but "have a recipe which things to do exactly in which order to get a working driver binary in the end" would be a useful goal already
(12:44:11) dazo: or at least the core executable code of the binary has an identical hash (depending on build approaches)
(12:44:17) mattock: what I can possibly do is create a Vagrant VM where you can build tap-windows6 without any tinkering
(12:44:19) cron2: what dazo says...
(12:44:27) cron2: mattock: that would be SOOO cool :-)
(12:44:40) dazo: agreed :)
(12:44:43) ordex: yeah, I think that would make everybody happy
(12:45:10) mattock: I've put our Windows-based VMs to Puppet already, so unless there are some really funky configurations that resist automation that's doable
(12:45:22) syzzer: ah, too bad. Me neither, but I'm willing to invest some time into that if it's somewhat doable. Because that way I could just use your signed installer, *and* be able to prove for myself (and our customers) exactly what code we're shipping :) (12:45:25) mattock: I can move the same Puppet code to Vagrant easily
(12:45:36) dazo: Vagrant is a good first step ... and then tweaking the compiler to do the reproducible builds as the next step
(12:45:55) syzzer: Yeah, that sounds like a solid plan
(12:46:25) cron2: +1
(12:46:29) mattock: I'm missing only a small piece in the Windows base profile and will move to tap-windows6-specifics enxt
(12:46:31) mattock: next
(12:46:55) mattock: I may be able to get that done next week unless something urgent pops up
(12:48:05) dazo: but .... something urgent will always pop up ;-) .... but we need to ensure you can get these things moving forward as well, but that's more a corp-priority thing though
(12:48:40) mattock: I've managed to avoid urgent stuff for last three weeks or so
(12:48:44) mattock: so I'm good at it :p
(12:48:52) ordex: :p
(12:49:55) cron2: speaking of TAP driver plans - I'll give "cross-compile the tap BSOD exploit code on mingw" a try and see if I can reproduce the (new) crash, and then produce a patch that mattock can build me into a proper driver :-)
(12:50:18) cron2: ... and then we need to agree on release strategy (binary driver first, source only when Cisco is ready, ...)
(12:50:26) cron2: this is a bit annoying
(12:50:44) ordex: if we wait for cisco, are we expected to wait also for other vendors?
(12:51:23) cron2: my stance on this is: if we know that their product has the same problem, and we're endangering their users by doing "full disclosure right away", it is prudent to coordinate
(12:51:52) cron2: so, the other two VPN vendors listed need a heads up - I just needed to start somewhere
(12:52:18) dazo: I'm torn here .... neither of them, to our knowledge, is active in the community .... if they'd been active here, they would have known this information more quickly
(12:52:19) cron2: so - does one of you have working contacts at NordVPN or VyprVPN?
(12:52:45) dazo: if they're just being "parasites" taking our code and not interacting with us in an open way .... their loss
(12:52:46) syzzer: I didn't know they existed until the mail came in...
(12:52:48) ordex: I guess normally downstream users are just expected to pick up the new "security release" and integrate it in their products as soon as its out - warning everybody does not sounds like something that can scale - unless they are active and eventually join the security list (12:53:02) dazo: exactly, syzzer
(12:53:12) cron2: ordex: well, I think Cisco is not actually using our driver, just made the same programming mistake
(12:53:28) syzzer: well, I agree with cron2 that we should think a bit about their users too
(12:54:19) syzzer: but it sucks that this means more work for us, while the vendors profit
(12:54:23) ordex: yeah in this case it makes sense to "help" them, but if it's a different product, I guess the reporter should have reported the issue to them
(12:54:23) cron2: for the other two, I'd say "check what they are bundling" - if it's just tap0901.sys, we can send them a "hey, there will be a release in two weeks, you *WANT* this!". If they build their own drivers, they need a bit more time
(12:54:46) cron2: the reporter did it nice and easy - "look what I found! and you get to sort out the mess now!"
(12:54:54) ordex: :D yeah
(12:55:14) cron2: ok, I see if I can find any contacts and/or any information what is in there...
(12:55:23) dazo: I think we need to just communicate that clearly .... if you want to know what happens in regards to security .... get in touch with us first to establish communication lines. We can't scale to alert each VPN solution who just takes our code and runs with it (12:55:35) cron2: yep
(12:57:03) mattock: what about having a semi-private mailing list where vendors can join to get notified?
(12:57:09) dazo: Being an open source community means you'll have to contribute to get the real benefit of the community ... otherwise, you're just being an open source parasite
(12:57:25) dazo: They need to care enough to get in touch with us ... not the other way around
(12:57:34) cron2: right. Let's talk to them and see if we can get something going
(12:57:40) dazo: but yeah, having a vendors list might be a good way forward
(12:58:06) mattock: I think we could share basic vulnerability info (severity etc.) and release dates, nothing more
(12:58:16) mattock: just to give them a bit of heads up
(12:58:18) cron2: Viscosity worked nicely last time, they just never had any need to talk :)
(12:58:21) dazo: yeah
(12:58:36) ordex: should this list be public?
(12:58:41) mattock: although
(12:58:54) dazo: nope, I'd say closed list
(12:58:58) mattock: our Rackspace mailing lists suck (four "external" users)
(12:58:59) cron2: ordex: semi-public, so not "just subscribe" but subscription should be vetted
(12:59:03) mattock: SF.net is public
(12:59:11) cron2: and no archive
(12:59:13) mattock: so we need something else
(12:59:21) mattock: e.g. mailmanlists or other solution
(12:59:30) ordex: yap
(12:59:42) cron2: right (which we wanted to investigate for the main lists anyway)
(12:59:49) dazo: lets twist it .... do that list need to just be a distribution list, or a full fledged mailing list with archive?
(13:00:11) cron2: no archive. distribution list should be fine for the first 10 vendors or so...
(13:00:24) dazo: I agree with cron2
(13:00:30) ordex: me too
(13:00:56) syzzer: maybe list a list of "tap-windows vendors" on the wiki, where people/projects can be added, with their security email contact
(13:01:03) syzzer: that we can send notifications to those on that list
(13:01:11) cron2: *like*
(13:01:23) mattock: that would have to be a protected page I guess
(13:01:35) syzzer: put the ball at the vendor's end to 'register' their project
(13:02:01) mattock: do we care about the possibility of "random" people joining that list disguising as "vendor"
(13:02:10) syzzer: why? they whould be able to be open about the fact that they use our (GPL) code, and what their security contact is
(13:02:32) ordex: I think protected in the sense that not everyody should be able to edit
(13:02:35) dazo: Yes, we should be careful about who joins such a list
(13:02:48) syzzer: ah, edit-restrictions. yes, that makes sense.
(13:02:50) cron2: what dazo and ordex say
(13:03:30) mattock: given Trac's permission scheme the page would have to be "Protected" (=only admins can edit)
(13:03:32) dazo: They can make us update the that public page, as part of the registration
(13:03:44) mattock: yes, we would have to edit the page once they've contacted us
(13:03:54) cron2: mattock: I think that should work
(13:03:56) syzzer: should be good enough :)
(13:03:58) ordex: yap
(13:04:08) dazo: and subscription can happen via [email protected]...
(13:04:09) mattock: ok agreement!
(13:04:13) mattock: +1
(13:04:47) mattock: next topic?
(13:04:55) syzzer: go
(13:05:00) mattock: 2. obfuscation for Jigsaw project: quick status update
(13:05:01) dazo: 2 is probably quick, ordex?
(13:05:06) ordex: yup
(13:05:11) ordex: 2. obfuscation for Jigsaw project: quick status update
(13:05:13) ordex: very quick
(13:05:30) ordex: I just forwarded our comments about the way this new obfuscation plugin should be configured
(13:05:52) ordex: I told them this is the main blocker at the moment, after solving this, they can probably send the patchset to the ml
(13:05:57) ordex: and they are now working on it :)
(13:06:03) ordex: nothing came back yet other than "ACK"
(13:06:13) ordex: they probably will have a meeting this week to decide how to move forward
(13:06:34) ordex: if they have any counter-proposal or comment I'll rely the message here
(13:06:40) ordex: relay
(13:06:50) cron2: thanks
(13:06:59) ordex: np :)
(13:07:21) ordex: this is all for 2.
(13:07:33) cron2: so, 3. is you again, I think :)
(13:07:41) mattock: 3. obfuscation for Jigsaw project: quick status update
(13:07:53) cron2: that was 2.
(13:08:01) dazo: 3. networking API patch: status update
(13:08:07) dazo: netlink :)
(13:08:12) ordex: do we want to do 4. first? as it has been in the queue a bit longer? and may need some time?
(13:09:11) syzzer: let's just follow the agenda :)
(13:09:26) ordex: oky
(13:09:53) ordex: so last time we discussed the new API and we agreed on making some changes, especially about introducing a "context" object to be passed to every API call
(13:10:09) ordex: so the latest code is available on the sitnl branch in my repo on github, but the interesting patch is: https://github.com/ordex/openvpn/commit/59ef41b8c42897060fe546917fb421bc6fea21c9
(13:10:11) vpnHelper: Title: implement platform generic networking API · ordex/[email protected]... · GitHub (at github.com)
(13:10:14) ordex: this is just the API
(13:10:53) ordex: so basically now we have this "openvpn_net_ctx_t *ctx" thing initialized once within the "struct context" object and is then passed around
(13:11:06) ordex: (branch is here: https://github.com/ordex/openvpn/commits/sitnl)
(13:11:07) vpnHelper: Title: Commits · ordex/openvpn · GitHub (at github.com)
(13:11:21) cron2: I do not have brains to look at it and give a meaningful comment right now, sorry
(13:11:42) cron2: (corp network hubbub around me, people coming with questions every 3 minutes...)
(13:11:52) ***cron2 takes a note and looks soonish
(13:11:58) ordex: hehe no prob.
(13:12:14) syzzer: without understanding the networking intricacies involved, this look like a clean API design
(13:12:45) cron2: the "ctx" bit is needed to handle windows, but with that, it should work - but I'll do a more brainful review
(13:13:08) ordex: it is actually also useful for iproute2 as ctx is used to pass "es" (env_set) around
(13:13:20) ordex: while with netlink it is just void*
(13:13:45) cron2: nice :)
(13:14:13) ordex: after having enojyed the code, there is another point to discuss: unit test
(13:14:21) ordex: it is implemented here: https://github.com/ordex/openvpn/commit/78c579d9591ced096175238e00377733fcb047a4
(13:14:23) vpnHelper: Title: unit tests: implement test for sitnl · ordex/[email protected]... · GitHub (at github.com)
(13:14:28) ordex: and the commit message tries to explain how it works
(13:14:51) ordex: but in a nutshell: it basically consists of a t_net.sh script and a test_networking.c object
(13:14:59) dazo: I've quickly looked at that last week when ordex showed it to me .... I think that approach for unit testing is clever
(13:15:30) dazo: when extending the unit tests in this area, it is only needed to be done in a single place
(13:15:54) dazo: though, Windows testing via this approach might be somewhat tricky ... but for Linux this should work very well
(13:16:24) dazo: (*BSD should be possible as well, if we want to extend it here too)
(13:16:28) ordex: the t_net.sh script executes the test_networking object which performs some netlink operations and prints to stdout the matching iproute2 command. the script then takes a snapshot, cleans up the state and runs these iproute2 commands. if the final state matches the snapshot taken earlier, everything is fine (13:16:32) ordex: yeah
(13:17:13) ordex: I think it needs to be changed quite a bit for windows as it needs to interact with the windows powershell and ip/route configuration (/me has no real clue about that)
(13:17:32) dazo: well, there's always cygwin
(13:17:45) dazo: but iproute2 is probably not feasible via cygwin ;-)
(13:17:56) ordex: yeah :)
(13:18:24) ordex: anyway, for now the patchset is all about linux, so this unit test should give us enough confidence in this area
(13:18:32) dazo: ack!
(13:18:35) cron2: ack
(13:18:45) syzzer: approach looks sane
(13:18:49) mattock: +1
(13:19:00) mattock: somebody can rewrite the script for Windows in Powershell
(13:19:05) syzzer: though you might want to run the tests in a network namespace
(13:19:15) cron2: if one of us feels bored, we can have a test script that does "the same" with route.exe/net.exe on windows
(13:19:22) syzzer: that gives you a clean environment, and you need sudo rights anyway
(13:20:11) syzzer: oh, and currently it seems that the dummy0 interface is not cleaned up at the end of the script?
(13:20:19) dazo: now it uses a dummy0 interface ... so shouldn't collide with anything else on the system .... but yeah, a separate network NS isn't a bad idea
(13:20:30) ordex: syzzer: yeah that's also an option. the problem is that the netlink API at the moment does not support net namespaces because we don't use them in openvpn
(13:20:51) syzzer: you can just run the entire script in a network namespace, should work :)
(13:21:09) cron2: which actually brings up the interesting question: if we want to support network namespaces, will the new API get in the way?
(13:21:10) syzzer: ip netns exec openvpn_test_1324 t_net.sh
(13:21:38) ordex: yeah that should work
(13:22:15) ordex: cron2: it depends how we want to handle it. it may just be a new attribute of the "ctx" object
(13:22:27) ordex: so it will be passed all around the place without touching the API
(13:22:31) dazo: yeah, my thoughts exactly
(13:22:33) syzzer: (or run all separate command in the script in the namespace, may be a bit more elegant, and allows you to add a trap to remove the namespace on exit)
(13:22:39) ordex: as I expect it to be one for the entire openvpn process
(13:22:52) cron2: ordex: the problem with that is: we'll have the "tun" netns, and the "outside" netns
(13:22:54) ordex: syzzer: yeah might be better that way
(13:23:15) syzzer: anyway, approach looks good :)
(13:23:19) cron2: mmmh
(13:23:22) cron2: actually no
(13:23:43) cron2: if we do "tun routes" in a separate netns, we do not *need* to install "outside" routes anymore (for recursion bypass)
(13:23:58) ordex: right
(13:24:04) ordex: because they do not interfere anyway
(13:24:24) dazo: ordex: return net__iface_mtu_set(1281); ..... should we test more MTU values? Like 300, 9000, 65535 and 90000?
(13:24:32) dazo: or even -1
(13:24:35) cron2: (so our code needs to be aware that this is no longer needed and do not muck with external /128 routes... but that's actually a good thing :) ) - and I agree with "stuff it in the ctx, done"
(13:24:56) ordex: dazo: we can, but then that becomes a MTU test, not an API test anymore :P we can do that separately if you like
(13:25:30) ordex: cron2: yeah, I think to introduce full netnamespace support we need to look and change more things
(13:25:39) dazo: well, yeah ... I do see it somewhat related to the API though ... it tests the error handling paths in the sitnl code
(13:26:00) ordex: dazo: ah in that sense, yeah
(13:26:38) cron2: dazo: error what?
(13:26:44) dazo: same with IP addresses .... testing with 0.0.0.0/0 and 255.255.255.255/255.255.255.255 .... as well as 391.239.403.304
(13:26:57) dazo: and invalide IPv6 addresses
(13:27:01) ordex: I think he refers to "invalid" mtu values - they should trigger an error
(13:27:21) dazo: and we should handle that error gracefully
(13:27:23) ordex: dazo: but not sure we want to test that in the t_net.sh script, which is in charge of doing the matching with iproute2
(13:27:44) dazo: ahh, true ... you're right, this is actually a different test from iproute2 matching
(13:27:46) cron2: handling of invalids can nicely go to a cmocka test
(13:27:50) ordex: yap
(13:27:59) mattock: "handling of invalids"
(13:28:16) mattock: in Finnish a disabled person is called "invalidi"
(13:28:16) dazo: invalid handling?
(13:28:23) mattock: :P
(13:28:25) ordex: :D
(13:28:39) mattock: anyways, sorry for the distraction
(13:28:41) mattock: :)
(13:28:59) cron2: so... two more minutes... tls-crypt v2?
(13:29:05) ordex: yap
(13:29:06) mattock: +1
(13:30:08) ordex: would review and ack help to move this forward? I am still the owner of tls-crypt-v2 on ovpn3 therefore I have tests and brain (somewhat) fresh on that
(13:30:24) dazo: that would help a lot!
(13:30:28) syzzer: yeah, I think review is the most important right now
(13:31:49) ordex: ok, will try to allocate more time for that
(13:32:16) ordex: and once review is done, should we try to organize a meeting focused on this only so we can get everybody's attention and try to get it merged?
(13:32:23) cron2: +1
(13:32:26) dazo: +1
(13:32:43) ordex: otherwise I fear it will just go back to "forgotten" state, even after the review, because it's big and might be complex to be picked up by a single person
(13:32:59) ordex: ok
(13:33:04) syzzer: yeah, sounds good!
(13:33:04) cron2: if it has ACKs, I can merge it just fine :)
(13:33:41) ordex: ok, then let's see what I can review and let's discuss the rest in a meeting :)
(13:33:48) syzzer: one thing to consider (separate from this review) is how to deal with protocol extensions
(13:34:05) ordex: in terms of backwards compatibility?
(13:34:24) syzzer: I'll cook up a mail to get that discussion started on the list
(13:34:34) syzzer: and future extensions
(13:34:52) syzzer: basically, "should we reserve some bytes?"
(13:35:33) syzzer: but I'll make that more clear on a mail
(13:35:57) syzzer: and we can discuss it further during a future meeting
(13:35:58) dazo: We should be careful about protocol extensions .... and such changes needs to be vetted by James. They need to also be handled well in OpenVPN 3 too, to ensure it is performing well against openvpn 2.x
(13:36:12) cron2: we understand that :)
(13:36:15) dazo: sounds like a topic for the Hackathon to be honest :)
(13:36:32) syzzer: dazo: that would block tls-crypt-v2 until the hackathon
(13:36:45) syzzer: because tls-crypt-v2 is a protocol extention on the lowest level
(13:36:57) cron2: we should start on the list
(13:37:07) dazo: ahh, okay ... we'll get James attention on this too internally
(13:37:22) syzzer: yeah, I'll cook up the mail, so we all have the information and can efficiently discuss it
(13:37:24) dazo: perhaps even explicitly Cc James
(13:37:25) cron2: and depending on the result of this, we can continue @ Hackathon to flesh out details
(13:37:26) ordex: yeah let's get it started on the list
(13:37:35) dazo: agreed
(13:38:18) cron2: wife food now! see you later :-)
(13:38:24) syzzer: I don't think this will impact the patch set much, but we do need to consider this before applying final patches.
(13:38:39) syzzer: yes, me hungry too!
(13:38:49) mattock: laters!
(13:38:52) mattock: summary coming up
(13:38:57) ordex: enjoy!
(13:39:00) ordex: thanks mattock