Hello everyone,
when using the openvpn-option command the openvpn executable is started without the command applied.
I tracked it down to the systemd file /run/systemd/system/openvpn@vtun10.service/20-override.conf not being generated correctly.
The last line ExecStart=... is missing a newline and to it won't be recognized by systemd.
When I add an additional newline in the template file it seems to be working correctly. Will prepare a PR for that.
My config:
interfaces {
bridge br0 {
address 10.0.0.1/16
member {
interface eth1 {
}
interface vtun10 {
}
}
}
openvpn vtun10 {
device-type tap
local-port 1194
mode server
openvpn-option "server-bridge 10.0.0.1 255.255.0.0 10.0.0.100 10.0.0.250"
persistent-tunnel
protocol tcp-passive
tls {
ca-certificate CA
certificate SERVER_CERT
}
}
}