<feed xmlns='http://www.w3.org/2005/Atom'>
<title>packages/net/openvpn/files/openvpn.init, branch master</title>
<subtitle>Mirror of packages feed</subtitle>
<id>https://git.openwrt.org/feed/packages/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/feed/packages/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/'/>
<updated>2026-02-22T09:54:13Z</updated>
<entry>
<title>openvpn: introduce proto handler</title>
<updated>2026-02-22T09:54:13Z</updated>
<author>
<name>Paul Donald</name>
</author>
<published>2026-02-16T19:01:50Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=2607b761549a4793eff91dcb60a287c05f631846'/>
<id>urn:sha1:2607b761549a4793eff91dcb60a287c05f631846</id>
<content type='text'>
openvpn needs a proto handler. Here it is.

Removed all of the up/down scripts from the init handler
and made those entirely optional (with some ucode examples).

The config options have been updated to reflect v 2.6/2.7,
with a 'd' flag to denote deprecated. Deprecated flags are
gated behind an 'allow_deprecated' config flag, which must
be on to use them. Some flags will cease to work in the next
version.

Users should not be using compression. Openvpn has enough
security holes and pitfalls already without using
compression.

Updated the example configs (left in place as legacy
documentation) and removed older cryptos which do not exist
in ovpn any longer.

A migration script is included -x. /etc/config/openvpn
entries become interface entries in /etc/config/network
with proto='openvpn'. The source config is retained.

Signed-off-by: Paul Donald &lt;newtwen+github@gmail.com&gt;
https://github.com/openwrt/packages/pull/28533
</content>
</entry>
<entry>
<title>openvpn: fix startup with script-security lower than 2</title>
<updated>2024-07-03T19:55:24Z</updated>
<author>
<name>Clemens Hopfer</name>
</author>
<published>2024-07-02T20:49:02Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=1cf592503b42956a422804d8b84ab25ea7e16d10'/>
<id>urn:sha1:1cf592503b42956a422804d8b84ab25ea7e16d10</id>
<content type='text'>
External scripts may only be specified with script-security 2 or higher,
otherwise OpenVPN fails at tunnel startup with an error.
This changes the previously hardcoded hotplug scripts to only be added if
script-security is 2 or higher is used.

Signed-off-by: Clemens Hopfer &lt;openwrt@wireloss.net&gt;
</content>
</entry>
<entry>
<title>openvpn: fix start_path_instance function</title>
<updated>2024-02-20T20:35:16Z</updated>
<author>
<name>Dirk Brenken</name>
</author>
<published>2024-02-19T13:54:08Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=fe736b2f8c415e6d590931f1f1f504e1d18c579b'/>
<id>urn:sha1:fe736b2f8c415e6d590931f1f1f504e1d18c579b</id>
<content type='text'>
Check the conffile existance (with .conf extension), before calling the
function 'start_path_instance'. This fixes errors with non-existing and
wrong spelling instances.

Signed-off-by: Dirk Brenken &lt;dev@brenken.org&gt;
- Update commit description
Signed-off-by: Florian Eckert &lt;fe@dev.tdt.de&gt;
</content>
</entry>
<entry>
<title>openvpn: add missing script-security</title>
<updated>2024-01-30T00:06:13Z</updated>
<author>
<name>Erik Conijn</name>
</author>
<published>2024-01-17T12:31:37Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=61eb0a3d965a3a3e8eed24c9689e67c82a991203'/>
<id>urn:sha1:61eb0a3d965a3a3e8eed24c9689e67c82a991203</id>
<content type='text'>
Maintainer: @mkrkn  @neheb

Compile tested: armv7, cortexA15, OpenWRT 23.05
Run tested: Linksys EA8500

Compile tested: armv8, cortexA53, OpenWRT main
Run tested: Dynalink DL-WRX36

Description:
Script-security is always 2 and cannot be changed from the openvpn config file due to a missing rule in openvpn.init.

This is discussed in issue #23014

This patch adds the missing rule in openvpn.init to parse script-security from the openvpn config file.

Signed-off-by: Erik Conijn &lt;egc112@msn.com&gt;
</content>
</entry>
<entry>
<title>Openvpn: add missing script event options</title>
<updated>2024-01-02T23:27:52Z</updated>
<author>
<name>Erik Conijn</name>
</author>
<published>2023-12-24T10:26:26Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=7735cdfe6046a4f8690c8cf7e4a05a8cff5622dd'/>
<id>urn:sha1:7735cdfe6046a4f8690c8cf7e4a05a8cff5622dd</id>
<content type='text'>
Maintainer: @mkrkn  @neheb
Compile tested: aarch64, cortex-a53, OpenWRT Master
Run tested: Dynalink DL-WRX36

Description:
[A previous commit](https://github.com/openwrt/packages/commit/f8a8b71e26b9bdbf86fbb7d4d1482637af7f3ba4) has added more script event options.
However it looked like that commit was not complete as it stops the use of the script events route-up, route-pre-down, and ipchange when those are placed in the openvpn config file.

This PR fixes a regression that makes it problematic to specify certain event options in the OpenVPN configuration file.

Discussion in [this thread](https://forum.openwrt.org/t/openvpn-custom-route-up-script-in-23-05-rc2/167105/13) and [here](https://forum.openwrt.org/t/openvpn-route-up-and-route-pre-down-broken-in-23-05/176568)

Please have a look and consider implementing or make it possible to use all script event options in the openvpn config file in another way.

Pull request has been discussed and improved with the help of @AuthorReflex, see: https://github.com/openwrt/packages/pull/21732

Signed-off-by: Erik Conijn &lt;egc112@msn.com&gt;
</content>
</entry>
<entry>
<title>openvpn: Added option to not start the native OpenVPN configurations on boot</title>
<updated>2023-12-20T14:01:46Z</updated>
<author>
<name>Florian Eckert</name>
</author>
<published>2023-12-20T13:20:13Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=053e588162a8c559e1c1731cb8bf8d109576ca25'/>
<id>urn:sha1:053e588162a8c559e1c1731cb8bf8d109576ca25</id>
<content type='text'>
OpenVPN configurations that have a uci entry, the enable/enabled option can
be used to control whether the OpenVPN connection should be started at
system startup or not.

OpenVPN configurations that are located under '/etc/openvpn/' are always
started at system boot. To ensure that these connections can also be
started later, they must 'not' be started automatically during system boot.
This can be prevented with the following entry in the OpenVPN configuration.

config globals 'globals'
	option autostart '0'

These OpenVPN configurations can then be started later with the command.
'/etc/init.d/openvpn start &lt;name&gt;'

Signed-off-by: Florian Eckert &lt;fe@dev.tdt.de&gt;
</content>
</entry>
<entry>
<title>openvpn: add possibility to start openvpn_path_instance on request</title>
<updated>2023-12-20T14:01:39Z</updated>
<author>
<name>Florian Eckert</name>
</author>
<published>2023-12-20T09:19:24Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=9a27865acbcd08acc703d0e9412a6fe93c12d4b6'/>
<id>urn:sha1:9a27865acbcd08acc703d0e9412a6fe93c12d4b6</id>
<content type='text'>
This commit adds the possibility that an OpenVPN instance located under
'/etc/openvpn' can also be started with the command.
'/etc/init.d/openvpn start &lt;name&gt;'

Signed-off-by: Florian Eckert &lt;fe@dev.tdt.de&gt;
</content>
</entry>
<entry>
<title>openvpn: add start_path_instance function</title>
<updated>2023-12-20T14:01:29Z</updated>
<author>
<name>Florian Eckert</name>
</author>
<published>2023-12-20T09:13:39Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=0b633a08867578fd028c17dd47f3250a22f17da3'/>
<id>urn:sha1:0b633a08867578fd028c17dd47f3250a22f17da3</id>
<content type='text'>
This commit moves the part for starting an instance to a sub function.

Signed-off-by: Florian Eckert &lt;fe@dev.tdt.de&gt;
</content>
</entry>
<entry>
<title>openvpn: move path instances call to sub function</title>
<updated>2023-12-20T14:01:24Z</updated>
<author>
<name>Florian Eckert</name>
</author>
<published>2023-12-20T08:59:13Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=b2269ecbf779b712db8ef40203ef1bcaaf4175ce'/>
<id>urn:sha1:b2269ecbf779b712db8ef40203ef1bcaaf4175ce</id>
<content type='text'>
Move the start of the OpenVPN configurations in '/etc/openvpn' in a function.

Signed-off-by: Florian Eckert &lt;fe@dev.tdt.de&gt;
</content>
</entry>
<entry>
<title>openvpn: rename start_instance to start_uci_instance</title>
<updated>2023-12-20T14:01:14Z</updated>
<author>
<name>Florian Eckert</name>
</author>
<published>2023-12-20T08:53:52Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=01d8f5c9befdce35d4d254aaa0793b8daa4b0008'/>
<id>urn:sha1:01d8f5c9befdce35d4d254aaa0793b8daa4b0008</id>
<content type='text'>
Preparation commit to make it clear that this is a uci configuration.

Signed-off-by: Florian Eckert &lt;fe@dev.tdt.de&gt;
</content>
</entry>
</feed>
