<feed xmlns='http://www.w3.org/2005/Atom'>
<title>packages/net/openvpn/files/etc/hotplug.d, 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-03-15T06:45:36Z</updated>
<entry>
<title>openvpn: hotplug script improvements</title>
<updated>2026-03-15T06:45:36Z</updated>
<author>
<name>Paul Donald</name>
</author>
<published>2026-03-12T03:49:20Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=99a24f515ad8e3a1bfc411bcca283e5071ab22da'/>
<id>urn:sha1:99a24f515ad8e3a1bfc411bcca283e5071ab22da</id>
<content type='text'>
add mode server hook scripts hotplug handling

Signed-off-by: Paul Donald &lt;newtwen+github@gmail.com&gt;
</content>
</entry>
<entry>
<title>openvpn: add hotplug handling back in</title>
<updated>2026-03-11T13:22:41Z</updated>
<author>
<name>Florian Eckert</name>
</author>
<published>2026-03-05T08:02:44Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=647b67e18b6bf857e60e4e2e1874fd04d4138586'/>
<id>urn:sha1:647b67e18b6bf857e60e4e2e1874fd04d4138586</id>
<content type='text'>
This commit adds hotplug handling back in.

Fixes: 2607b761 ("openvpn: introduce proto handler")

Signed-off-by: Florian Eckert &lt;fe@dev.tdt.de&gt;
</content>
</entry>
<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: 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: fix invoking user up &amp; down commands from hotplug wrapper</title>
<updated>2021-04-01T11:20:03Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2021-03-27T19:33:44Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=7f065a94bb2663d32da7424c777a580d470728a0'/>
<id>urn:sha1:7f065a94bb2663d32da7424c777a580d470728a0</id>
<content type='text'>
This commit adds a number of fixes to the OpenVPN up/down hotplug command
wrapper which currently fails to actually invoke user defined up and down
commands for uci configurations not using external native configurations.

 - Use the `--setenv` to pass the user configured `up` and `down` commands
   as `user_up` and `user_down` environment variables respectively

 - Instead of attempting to scrape the `up` and `down` settings from the
   (possibly generated) native OpenVPN configuration in
   `/etc/hotplug.d/openvpn/01-user`, read them from the respective
   environment variables instead

 - Fix parsing of native configuration values in `get_openvpn_option()`;
   first try to parse a given setting as single quoted value, then as
   double quoted and finally as non-quoted, potentially white-space
   escaped one. This ensures that `up '/bin/foo'` is interpreted as
   `/bin/foo` and not `'/bin/foo'`

Ref: https://forum.openwrt.org/t/openvpn-up-down-configuration-ignored/91126
Supersedes: #15121, #15284
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>openvpn: import from base</title>
<updated>2020-12-01T20:37:37Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2020-12-01T20:36:46Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=4434915571b5c3dbc7d000215e48d8d0d60e41bc'/>
<id>urn:sha1:4434915571b5c3dbc7d000215e48d8d0d60e41bc</id>
<content type='text'>
Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
</feed>
