OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Brian J. Murrell - 21.04.2020

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

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'

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing