service daemon mode dows not work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RS667
    Junior Member
    • Nov 2024
    • 3

    service daemon mode dows not work

    Hello,

    after hours and hours of searching the internet i gave up finding a solution. So i try to get an answer here.
    I have a working openVPN Server, based on pi OS.
    For the Installation, i used the Nyr install Script: https://github.com/Nyr/openvpn-install
    I am using the latest openvpn Connect v3 version for Windows 10/11 to connect to the server.

    That works flawlessly.

    So, i am trying to set up the service daemon, following the OFFICIAL instruction:
    Set up an OpenVPN connection as a system service on Windows with service daemon mode for OpenVPN Connect.



    The Service installs, i can set the config parameters as specified, but it fails to start:
    Code:
    C:\Program Files\OpenVPN Connect>ovpnconnector.exe start
    Service start pending...
    Service not started.
      Current State: 1
      Exit Code: 0
    The windwos event log shows a "file not found" Error, but the details show the following event Data:
    Code:
    OVPNConnectorService
    UNUSED_OPTIONS_ERROR: Ignored by option 'ignore-unknown-option': block-outside-dns UNKNOWN/UNSUPPORTED OPTIONS: ? Unsupported option (ignored): resolv-retry,persist-key,persist-tun
    The profile works, but nonetheless...i deleted the "unsupported Options", just to end up with the same Error, just less detailed:
    Code:
    OVPNConnectorService
    UNUSED_OPTIONS_ERROR: UNKNOWN/UNSUPPORTED OPTIONS: ?
    The Log is written correctly and shows:
    Code:
    Thu Nov 28 15:18:31 2024 OpenVPN core 3.10.1 win x86_64 64-bit OVPN-DCO
    Thu Nov 28 15:35:33 2024 OpenVPN core 3.10.1 win x86_64 64-bit OVPN-DCO
    Thu Nov 28 15:38:44 2024 OpenVPN core 3.10.1 win x86_64 64-bit OVPN-DCO
    Thu Nov 28 15:38:44 2024 Frame=512/2112/512 mssfix-ctrl=1250
    Thu Nov 28 15:38:44 2024 NOTE: This configuration contains options that were not used:
    Thu Nov 28 15:38:44 2024 Ignored by option 'ignore-unknown-option'
    Thu Nov 28 15:38:44 2024 0 [block-outside-dns]
    Thu Nov 28 15:38:44 2024 UNKNOWN/UNSUPPORTED OPTIONS
    Thu Nov 28 15:38:44 2024 0 [?]
    Thu Nov 28 15:38:44 2024 Unsupported option (ignored)
    Thu Nov 28 15:38:44 2024 0 [resolv-retry] [infinite]
    Thu Nov 28 15:38:44 2024 1 [persist-key]
    Thu Nov 28 15:38:44 2024 2 [persist-tun]
    Thu Nov 28 15:42:15 2024 OpenVPN core 3.10.1 win x86_64 64-bit OVPN-DCO
    Thu Nov 28 15:42:15 2024 Frame=512/2112/512 mssfix-ctrl=1250
    Thu Nov 28 15:42:15 2024 NOTE: This configuration contains options that were not used:
    Thu Nov 28 15:42:15 2024 UNKNOWN/UNSUPPORTED OPTIONS
    Thu Nov 28 15:42:15 2024 0 [?]
    Thu Nov 28 15:42:15 2024 Unsupported option (ignored)
    Thu Nov 28 15:42:15 2024 0 [resolv-retry] [infinite]
    Thu Nov 28 15:42:15 2024 1 [persist-key]
    Thu Nov 28 15:42:15 2024 2 [persist-tun]
    Thu Nov 28 15:43:21 2024 OpenVPN core 3.10.1 win x86_64 64-bit OVPN-DCO
    Thu Nov 28 15:43:21 2024 Frame=512/2112/512 mssfix-ctrl=1250
    Thu Nov 28 15:43:21 2024 NOTE: This configuration contains options that were not used:
    Thu Nov 28 15:43:21 2024 UNKNOWN/UNSUPPORTED OPTIONS
    Thu Nov 28 15:43:21 2024 0 [?]
    Thu Nov 28 15:51:00 2024 OpenVPN core 3.10.1 win x86_64 64-bit OVPN-DCO
    Thu Nov 28 15:51:00 2024 Frame=512/2112/512 mssfix-ctrl=1250
    Thu Nov 28 15:51:00 2024 NOTE: This configuration contains options that were not used:
    Thu Nov 28 15:51:00 2024 UNKNOWN/UNSUPPORTED OPTIONS
    Thu Nov 28 15:51:00 2024 0 [?]
    Thu Nov 28 15:52:04 2024 OpenVPN core 3.10.1 win x86_64 64-bit OVPN-DCO
    Thu Nov 28 15:52:04 2024 Frame=512/2112/512 mssfix-ctrl=1250
    Thu Nov 28 15:52:04 2024 NOTE: This configuration contains options that were not used:
    Thu Nov 28 15:52:04 2024 UNKNOWN/UNSUPPORTED OPTIONS
    Thu Nov 28 15:52:04 2024 0 [?]
    I tried this on different machines, without any different outcome, its completely reproduceable.
    What am i doing wrong? What file is the service looking for? It obviously reads the config without problems.

    Greetings
    Michael
    Last edited by RS667; 2024-11-28, 11:18 AM.
  • RS667
    Junior Member
    • Nov 2024
    • 3

    #2
    This also happens when you import a profile via command line. The whole client is broken...

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎