Page MenuHomeVyOS Platform

Openvpn conf-mode "openvpn-option" is not respected
Closed, ResolvedPublicBUG

Description

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/[email protected]/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
        }
    }
}

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.4-rolling-202203230317
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)