OpenVPN 4.0.3 - Options error: No closing quotation

  • Hi,


    Plugin version: 4.0.3


    OpenVPN is not starting. In syslog i see: "Options error: No closing quotation (") in /etc/openvpn/server.conf:12"
    In /etc/openvpn/server.conf i see:
    push "route 169.254.0.0
    192.168.200.0 255.255.255.0"
    (with LF char after 1st ip.)


    I made some checking and it looks like in "/usr/share/openmediavault/mkconf/openvpn" there is funtion get_subnet which is executing: "ip r s | grep -Ev default | grep ${1} |cut -d/ -f1"
    Problem is that "ip r s" on my enviroment return:


    default via 192.168.200.1 dev enx001e0630d103
    169.254.0.0/16 dev enx001e0630d103 scope link metric 1000
    192.168.200.0/24 dev enx001e0630d103 proto kernel scope link src 192.168.200.10


    As a result of get_subnet funtion we get 2 ips (each in new line).
    169.254.0.0
    192.168.200.0

    So I think this is source of the issue.


    So question is:
    Is there some problem with my ethernet interface configuration or problem is with lack of handling of few ips on one interface in "/usr/share/openmediavault/mkconf/openvpn" script?





Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!