Message ID | 1573148729-27339-1-git-send-email-lstipakov@gmail.com |
---|---|
Headers | show
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net> Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director12.mail.ord1d.rsapps.net ([172.30.191.6]) by backend30.mail.ord1d.rsapps.net with LMTP id aL1GJQ5ZxF2dBgAAIUCqbw for <patchwork@openvpn.net>; Thu, 07 Nov 2019 12:49:02 -0500 Received: from proxy10.mail.ord1d.rsapps.net ([172.30.191.6]) by director12.mail.ord1d.rsapps.net with LMTP id qODyJA5ZxF0tcQAAIasKDg ; Thu, 07 Nov 2019 12:49:02 -0500 Received: from smtp14.gate.ord1d ([172.30.191.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy10.mail.ord1d.rsapps.net with LMTP id 4POTJA5ZxF0TdwAAfSg8FQ ; Thu, 07 Nov 2019 12:49:02 -0500 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-Orig-To: openvpnslackdevel@openvpn.net X-Originating-Ip: [216.105.38.7] Authentication-Results: smtp14.gate.ord1d.rsapps.net; iprev=pass policy.iprev="216.105.38.7"; spf=pass smtp.mailfrom="openvpn-devel-bounces@lists.sourceforge.net" smtp.helo="lists.sourceforge.net"; dkim=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dkim=fail (signature verification failed) header.d=gmail.com; dmarc=fail (p=none; dis=none) header.from=gmail.com X-Suspicious-Flag: YES X-Classification-ID: e1f13344-0186-11ea-99ff-525400504bae-1-1 Received: from [216.105.38.7] ([216.105.38.7:50626] helo=lists.sourceforge.net) by smtp14.gate.ord1d.rsapps.net (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 85/DB-11894-E0954CD5; Thu, 07 Nov 2019 12:49:02 -0500 Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) id 1iSlsp-0001oc-R9; Thu, 07 Nov 2019 17:47:47 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from <lstipakov@gmail.com>) id 1iSlso-0001oR-14 for openvpn-devel@lists.sourceforge.net; Thu, 07 Nov 2019 17:47:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=dPRxvhjroqnHWhxZWLgzTVl1tuqDQPGjYYAQjv4yq5o=; b=YJhx8B7x9BB78YXUIjevyjWPck q0TQm+odiAGkm+NRZMV9OJJPUEg88YKh6qpzX4nRB3K4ywMnCPY34oPe9cSjpwZuRCfViLgRrHeAh 7yOqzgjYDvZbK4yF1mwBVWmJNEh47cBq9R11t/bcrxkxTU+0EUZXQ0kfPNi3jBDMJLO4=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version: Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=dPRxvhjroqnHWhxZWLgzTVl1tuqDQPGjYYAQjv4yq5o=; b=POOaKt+UWkEeeCf4hj8iw1E7Wt Ax6ZdTwcUtDwcnoN9rHs9jfx6vEDpsC8/dmtOeJ8gpNkM0SWKFKCxjPv5qsVF7HuYJ9gXyZ8L4GqN CpUKy02syp7ArzMoy5IOOzAQ+m3NvmjnM6OqEo1KkeQtTVeO/KFlrrQCf42eEidcRbWs=; Received: from mail-wm1-f65.google.com ([209.85.128.65]) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.2) id 1iSlsm-0040yy-G7 for openvpn-devel@lists.sourceforge.net; Thu, 07 Nov 2019 17:47:45 +0000 Received: by mail-wm1-f65.google.com with SMTP id t26so3415325wmi.4 for <openvpn-devel@lists.sourceforge.net>; Thu, 07 Nov 2019 09:47:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=dPRxvhjroqnHWhxZWLgzTVl1tuqDQPGjYYAQjv4yq5o=; b=neba3HvED0NXxPaIWPU02ZX8MMeJ+UHQy6jO3KVFS528NdVIZlfHO+++Zw4GEdn1KG k78Ou1EU7eNCoLGwP7ZP+MGufRI9YBhXr9ZKnDhhjRoeQHPto1MfG8334tKVVXd5mVJj ba80v/bQ7fX5wFMcarWPMGJxOsK1h74gm7ksiADDKWn1h+eDW/yO37+Q/pO74vwDOT4Y tDy44Fzx4P9+IfqNATvHob+JnImemwNZO33Jn6UYFFOqnRLkYxOW74z53rXDSfJbSonH fTDzFQPDb72l67o5MvRJBt89NdWLyQx2FHmksBDmPCB3SCKLfdTX5WIB+KLq21h/JTci +vUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=dPRxvhjroqnHWhxZWLgzTVl1tuqDQPGjYYAQjv4yq5o=; b=rjF+ChYLZGYof9twLSss6c8gdtYRy6OquqMcvpbxv57oI0kJ70WK40B+aJ1ruLThGy +lb/sO4CP+iFIZNYkubzDXN0NHIC3M0bCPAPoJIX6n/lJAwvGbU7VeCdDDAPf6j+vIHc zb9Hb15jWuDtYsYhF2OSFgcWQIQI1XrSazS1rgbwsbMK/+/mbkKOITNwz7h+XmShRJtk hTa8GATz/X+KKVHhGB9h+q2vaXhHCSKxpfaaSveX3ZuKQyVX/NjCrRT0Qs9uFfmL/UzY inGm4BBY5j3CsUDG8fceIqKiP7ZJk0VUP5VF54kNIVxB1lQTI+0ESaGAjgFrM82nA7K1 CJug== X-Gm-Message-State: APjAAAUBk6VUD85Z7tp8B5t49PCCnpgXXF5doo6qUMSeJnOJSWpwZhre iSnAnPJAlTY4sW0UbUovksZUUDI5W/v1AQ== X-Google-Smtp-Source: APXvYqxRLZjFMYNGXzVI98z8v6kzwuSAKhUJTez6Qnbu7jkdqmXpV0t97vbecTu+N7+B9pfZOFnT0w== X-Received: by 2002:a1c:e157:: with SMTP id y84mr3878454wmg.59.1573148857496; Thu, 07 Nov 2019 09:47:37 -0800 (PST) Received: from stipakov.fi (stipakov.fi. [128.199.52.117]) by smtp.gmail.com with ESMTPSA id l13sm2527752wmh.12.2019.11.07.09.47.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Nov 2019 09:47:36 -0800 (PST) From: Lev Stipakov <lstipakov@gmail.com> To: openvpn-devel@lists.sourceforge.net Date: Thu, 7 Nov 2019 19:45:22 +0200 Message-Id: <1573148729-27339-1-git-send-email-lstipakov@gmail.com> X-Mailer: git-send-email 2.7.4 X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: makefile.am] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (lstipakov[at]gmail.com) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.128.65 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.128.65 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-Headers-End: 1iSlsm-0040yy-G7 Subject: [Openvpn-devel] [PATCH v2 0/7] Wintun support X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: <openvpn-devel.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel> List-Post: <mailto:openvpn-devel@lists.sourceforge.net> List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox |
This set of patches adds support of wintun kernel driver (https://www.wintun.net) to OpenVPN Windows client and server. While wintun is in beta (currently used version is 0.7), it performs significantly faster comparison to tap-windows6. Below are download bandwidth stats reported by iperf3 running on client: > iperf3 -c <server-vpn-ip> -t 60 Server - community openvpn2 (2.4.4) tap-windows6 - 396Mbit/s wintun - 677Mbit/s Server - propietary openvpn3 with kernel acceleration (in development) tap-windows6 - 386Mbit/s wintun - 840Mbit/s Client version used for tap-windows6 tests is 2.4.8. To use wintun driver instead of tap-window6, add "windows-driver wintun" to your VPN config file or openvpn.exe command line. Ready-made Windows client installer (signed by OpenVPN Inc) with wintun support could be found here: from http://staging.openvpn.net/openvpn2/. To build installer yourself, you need a patched version of openvpn-build, see https://github.com/OpenVPN/openvpn-build/pull/154. Changes from v1: - rebased on top of latest master (2b11e57) Lev Stipakov (7): Visual Studio: upgrade project files to VS2019 wintun: add --windows-driver config option wintun: implement opening wintun device wintun: ring buffers based I/O wintun: interactive service support wintun: set adapter properties via interactive service wintun: clear adapter settings on tun close include/openvpn-msg.h | 10 + src/compat/compat.vcxproj | 12 +- src/openvpn/Makefile.am | 4 +- src/openvpn/forward.c | 42 ++- src/openvpn/forward.h | 47 ++- src/openvpn/init.c | 7 + src/openvpn/mtcp.c | 28 +- src/openvpn/mudp.c | 14 + src/openvpn/openvpn.vcxproj | 16 +- src/openvpn/openvpn.vcxproj.filters | 8 +- src/openvpn/options.c | 37 ++ src/openvpn/options.h | 1 + src/openvpn/ring_buffer.c | 54 +++ src/openvpn/ring_buffer.h | 79 +++++ src/openvpn/route.c | 2 +- src/openvpn/route.h | 3 +- src/openvpn/syshead.h | 1 + src/openvpn/tun.c | 504 +++++++++++++++++++++++----- src/openvpn/tun.h | 139 +++++++- src/openvpn/win32.c | 95 ++++++ src/openvpn/win32.h | 4 + src/openvpnmsica/openvpnmsica.vcxproj | 14 +- src/openvpnserv/Makefile.am | 3 +- src/openvpnserv/interactive.c | 141 +++++++- src/openvpnserv/openvpnserv.vcxproj | 14 +- src/openvpnserv/openvpnserv.vcxproj.filters | 6 + src/tapctl/tapctl.vcxproj | 14 +- 27 files changed, 1160 insertions(+), 139 deletions(-) create mode 100644 src/openvpn/ring_buffer.c create mode 100644 src/openvpn/ring_buffer.h