Change in openvpn[master]: options: make `tun` the default for `--dev`
A message that is not in the archive (sent off-list or not yet received): gerrit.1771284291000.I0ca7b5b7ec1a01acaad222c99db137c94c88555a@...2715...
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/1537?usp=email
to review the following change.
Change subject: options: make tun the default for --dev
......................................................................
options: make tun the default for --dev
With this change, OpenVPN can be launched without specifying any --dev option and it will start a tun (L3) tunnel with the interface named tunX.
As before, this behaviour can be changed using --dev or --dev-type.
Existing configs won't see any behavioural change as they all had to contain at least one --dev directive.
---
M Changes.rst
M src/openvpn/options.c
2 files changed, 10 insertions(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/37/1537/1
Changes.rst +9 -1
@@ -1,6 +1,14 @@ Overview of changes in 2.8 ========================== - +User-visible Changes +-------------------- +- Default for ``--dev`` is now ``tun``. This implies that, unless another + name is specified, the OpenVPN interface will always be named ``tunX``. + More importantly, this means that by default OpenVPN will start a L3 + tunnel. + Since ``--dev`` had no default value until now, all existing + configurations will behave exactly the same because they all had to + contain one ``--dev`` directive. Overview of changes in 2.7 ==========================
src/openvpn/options.c +1 -0
@@ -799,6 +799,7 @@gc_init (&o->dns_options.gc); o->mode =MODE_POINT_TO_POINT ; + o->dev ="tun" ; o->topology =TOP_UNDEF ; o->ce.proto =PROTO_UDP ; o->ce.af =AF_UNSPEC ;
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1537?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I0ca7b5b7ec1a01acaad222c99db137c94c88555a
Gerrit-Change-Number: 1537
Gerrit-PatchSet: 1
Gerrit-Owner: ordex <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Attention is currently required from: ordex, plaisthos.
flichtenheld has posted comments on this change by ordex. ( http://gerrit.openvpn.net/c/openvpn/+/1537?usp=email )
Change subject: options: make tun the default for --dev
......................................................................
Patch Set 2: Code-Review-1
(1 comment)
Patchset:
PS2:
While this is probably the minimal change to enable this, this is missing a lot of documentation updates.
* The usage output should be updated
* The documentation for --dev should be updated
* The examples in openvpn-examples should be updated
* Sample configs in samples/ maybe should be updated?
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1537?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I0ca7b5b7ec1a01acaad222c99db137c94c88555a
Gerrit-Change-Number: 1537
Gerrit-PatchSet: 2
Gerrit-Owner: ordex <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: ordex <[email protected]...>
Gerrit-Comment-Date: Tue, 17 Feb 2026 13:53:16 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Attention is currently required from: ordex, plaisthos.
cron2 has posted comments on this change by ordex. ( http://gerrit.openvpn.net/c/openvpn/+/1537?usp=email )
Change subject: options: make tun the default for --dev
......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS2:
... and do not update Changes.rst, unless you insist on having this *only* in 2.8... :-)
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1537?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I0ca7b5b7ec1a01acaad222c99db137c94c88555a
Gerrit-Change-Number: 1537
Gerrit-PatchSet: 2
Gerrit-Owner: ordex <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: cron2 <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: ordex <[email protected]...>
Gerrit-Comment-Date: Tue, 17 Feb 2026 21:56:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Attention is currently required from: ordex.
plaisthos has posted comments on this change by ordex. ( http://gerrit.openvpn.net/c/openvpn/+/1537?usp=email )
Change subject: options: make tun the default for --dev
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1537?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I0ca7b5b7ec1a01acaad222c99db137c94c88555a
Gerrit-Change-Number: 1537
Gerrit-PatchSet: 2
Gerrit-Owner: ordex <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: cron2 <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: ordex <[email protected]...>
Gerrit-Comment-Date: Mon, 02 Mar 2026 15:05:10 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Attention is currently required from: ordex.
plaisthos has posted comments on this change by ordex. ( http://gerrit.openvpn.net/c/openvpn/+/1537?usp=email )
The change is no longer submittable: Code-Review is unsatisfied now.
Change subject: options: make tun the default for --dev
......................................................................
Patch Set 2: Code-Review+1
(1 comment)
Patchset:
PS2:
Looks good but should address the points of Frank
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1537?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I0ca7b5b7ec1a01acaad222c99db137c94c88555a
Gerrit-Change-Number: 1537
Gerrit-PatchSet: 2
Gerrit-Owner: ordex <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: cron2 <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: ordex <[email protected]...>
Gerrit-Comment-Date: Mon, 02 Mar 2026 15:05:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes