Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#3030 - openvn connections don't start on boot -- libubox problem? #7791

Open
openwrt-bot opened this issue Apr 21, 2020 · 0 comments
Open
Labels

Comments

@openwrt-bot
Copy link

brianjmurrell:

As discussed on IRC, on multiple 19.07.2 devices, openvpn configurations which use /etc/config/openvpn don't start automatically on boot. They try to but the openvpn command issued ends up being invalid:

# ubus call service list '{ "verbose": true, "name": "openvpn" }'
{
"openvpn": {
"instances": {
"foo": {
"running": false,
"command": [
"/usr/sbin/openvpn"
],
"term_timeout": 5
}
},
"triggers": [
[
"config.change",
[
"if",
[
"eq",
"package",
"openvpn"
],
[
"run_script",
"/etc/init.d/openvpn",
"reload"
]
],
1000
]
]
}
}

As you can see, the arguments for the openvpn command are missing.

The /etc/config/openvpn configuration for this:

# cat /etc/config/openvpn
package openvpn

config openvpn 'foo'
option nobind '1'
option float '1'
option client '1'
option comp_lzo 'yes'
option reneg_sec '0'
option dev 'tun'
option verb '3'
option persist_tun '1'
option persist_key '1'
option auth_user_pass '/etc/openvpn/userpass'
option remote 'vpn.example.com 1194'
option ca '/etc/openvpn/ca.crt'
option script_security 2
option up /etc/openvpn/script
option down /etc/openvpn/script
#option link_mtu 1542
option cipher 'AES-256-CBC'
option enabled '1'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant