starting openvpn server fails with Options error: --client-config-dir fails

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















I'm working on setting up an openvpn server. I'm using the standard sources of debian jessie and easy-rsa as an CA.



Everything worked fine until I've tried to start openvpn via init script. When I'm running /etc/init.d/openvpn start
following error comes up in /var/log/daemon.log



Options error: --client-config-dir fails with "/etc/openvpn/easy-rsa/keys/crl.jail//etc/openvpn/server.ccd": No such file or directory


Has someone of you a idea where this mess with the paths comes from?
The directory what is set in the config file exists.
The server.conf file:



port 1194
proto udp
dev tun

comp-lzo
keepalive 10 120

persist-key
persist-tun
user nobody
group nogroup

chroot /etc/openvpn/easy-rsa/keys/crl.jail
crl-verify crl.pem

ca /etc/openvpn/easy-rsa/keys/ca.crt
dh /etc/openvpn/easy-rsa/keys/dh2048.pem
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
key /etc/openvpn/easy-rsa/keys/server.key
cert /etc/openvpn/easy-rsa/keys/server.crt

ifconfig-pool-persist /var/lib/openvpn/server.ipp
client-config-dir /etc/openvpn/server.ccd
status /var/log/openvpn/server.log
verb 4

# virtual subnet unique for openvpn to draw client addresses from
# the server will be configured with x.x.x.1
# important: must not be used on your network
server 10.254.1.0 255.255.255.0

# push routes to clients to allow them to reach private subnets
push "route 10.0.0.0 255.0.0.0"


THX for your help.










share|improve this question






















  • Copy the script cp -r /usr/share/easy-rsa/ /etc/openvpn then restart the service /etc/init.d/openvpn restart

    – GAD3R
    Nov 27 '16 at 21:48











  • The easy-rsa folder is at place. I've allready used easy-rsa to generate certificates.

    – andi-g
    Nov 27 '16 at 22:13















0















I'm working on setting up an openvpn server. I'm using the standard sources of debian jessie and easy-rsa as an CA.



Everything worked fine until I've tried to start openvpn via init script. When I'm running /etc/init.d/openvpn start
following error comes up in /var/log/daemon.log



Options error: --client-config-dir fails with "/etc/openvpn/easy-rsa/keys/crl.jail//etc/openvpn/server.ccd": No such file or directory


Has someone of you a idea where this mess with the paths comes from?
The directory what is set in the config file exists.
The server.conf file:



port 1194
proto udp
dev tun

comp-lzo
keepalive 10 120

persist-key
persist-tun
user nobody
group nogroup

chroot /etc/openvpn/easy-rsa/keys/crl.jail
crl-verify crl.pem

ca /etc/openvpn/easy-rsa/keys/ca.crt
dh /etc/openvpn/easy-rsa/keys/dh2048.pem
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
key /etc/openvpn/easy-rsa/keys/server.key
cert /etc/openvpn/easy-rsa/keys/server.crt

ifconfig-pool-persist /var/lib/openvpn/server.ipp
client-config-dir /etc/openvpn/server.ccd
status /var/log/openvpn/server.log
verb 4

# virtual subnet unique for openvpn to draw client addresses from
# the server will be configured with x.x.x.1
# important: must not be used on your network
server 10.254.1.0 255.255.255.0

# push routes to clients to allow them to reach private subnets
push "route 10.0.0.0 255.0.0.0"


THX for your help.










share|improve this question






















  • Copy the script cp -r /usr/share/easy-rsa/ /etc/openvpn then restart the service /etc/init.d/openvpn restart

    – GAD3R
    Nov 27 '16 at 21:48











  • The easy-rsa folder is at place. I've allready used easy-rsa to generate certificates.

    – andi-g
    Nov 27 '16 at 22:13













0












0








0








I'm working on setting up an openvpn server. I'm using the standard sources of debian jessie and easy-rsa as an CA.



Everything worked fine until I've tried to start openvpn via init script. When I'm running /etc/init.d/openvpn start
following error comes up in /var/log/daemon.log



Options error: --client-config-dir fails with "/etc/openvpn/easy-rsa/keys/crl.jail//etc/openvpn/server.ccd": No such file or directory


Has someone of you a idea where this mess with the paths comes from?
The directory what is set in the config file exists.
The server.conf file:



port 1194
proto udp
dev tun

comp-lzo
keepalive 10 120

persist-key
persist-tun
user nobody
group nogroup

chroot /etc/openvpn/easy-rsa/keys/crl.jail
crl-verify crl.pem

ca /etc/openvpn/easy-rsa/keys/ca.crt
dh /etc/openvpn/easy-rsa/keys/dh2048.pem
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
key /etc/openvpn/easy-rsa/keys/server.key
cert /etc/openvpn/easy-rsa/keys/server.crt

ifconfig-pool-persist /var/lib/openvpn/server.ipp
client-config-dir /etc/openvpn/server.ccd
status /var/log/openvpn/server.log
verb 4

# virtual subnet unique for openvpn to draw client addresses from
# the server will be configured with x.x.x.1
# important: must not be used on your network
server 10.254.1.0 255.255.255.0

# push routes to clients to allow them to reach private subnets
push "route 10.0.0.0 255.0.0.0"


THX for your help.










share|improve this question














I'm working on setting up an openvpn server. I'm using the standard sources of debian jessie and easy-rsa as an CA.



Everything worked fine until I've tried to start openvpn via init script. When I'm running /etc/init.d/openvpn start
following error comes up in /var/log/daemon.log



Options error: --client-config-dir fails with "/etc/openvpn/easy-rsa/keys/crl.jail//etc/openvpn/server.ccd": No such file or directory


Has someone of you a idea where this mess with the paths comes from?
The directory what is set in the config file exists.
The server.conf file:



port 1194
proto udp
dev tun

comp-lzo
keepalive 10 120

persist-key
persist-tun
user nobody
group nogroup

chroot /etc/openvpn/easy-rsa/keys/crl.jail
crl-verify crl.pem

ca /etc/openvpn/easy-rsa/keys/ca.crt
dh /etc/openvpn/easy-rsa/keys/dh2048.pem
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
key /etc/openvpn/easy-rsa/keys/server.key
cert /etc/openvpn/easy-rsa/keys/server.crt

ifconfig-pool-persist /var/lib/openvpn/server.ipp
client-config-dir /etc/openvpn/server.ccd
status /var/log/openvpn/server.log
verb 4

# virtual subnet unique for openvpn to draw client addresses from
# the server will be configured with x.x.x.1
# important: must not be used on your network
server 10.254.1.0 255.255.255.0

# push routes to clients to allow them to reach private subnets
push "route 10.0.0.0 255.0.0.0"


THX for your help.







debian openvpn






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 27 '16 at 21:29









andi-gandi-g

13




13












  • Copy the script cp -r /usr/share/easy-rsa/ /etc/openvpn then restart the service /etc/init.d/openvpn restart

    – GAD3R
    Nov 27 '16 at 21:48











  • The easy-rsa folder is at place. I've allready used easy-rsa to generate certificates.

    – andi-g
    Nov 27 '16 at 22:13

















  • Copy the script cp -r /usr/share/easy-rsa/ /etc/openvpn then restart the service /etc/init.d/openvpn restart

    – GAD3R
    Nov 27 '16 at 21:48











  • The easy-rsa folder is at place. I've allready used easy-rsa to generate certificates.

    – andi-g
    Nov 27 '16 at 22:13
















Copy the script cp -r /usr/share/easy-rsa/ /etc/openvpn then restart the service /etc/init.d/openvpn restart

– GAD3R
Nov 27 '16 at 21:48





Copy the script cp -r /usr/share/easy-rsa/ /etc/openvpn then restart the service /etc/init.d/openvpn restart

– GAD3R
Nov 27 '16 at 21:48













The easy-rsa folder is at place. I've allready used easy-rsa to generate certificates.

– andi-g
Nov 27 '16 at 22:13





The easy-rsa folder is at place. I've allready used easy-rsa to generate certificates.

– andi-g
Nov 27 '16 at 22:13










1 Answer
1






active

oldest

votes


















0














I found the bug. The server.ccd has to be in the crl.jail directory. I've changed the config like this:



...
chroot /etc/openvpn/easy-rsa/keys/crl.jail
crl-verify crl.pem

ca /etc/openvpn/easy-rsa/keys/ca.crt
dh /etc/openvpn/easy-rsa/keys/dh2048.pem
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
key /etc/openvpn/easy-rsa/keys/server.key
cert /etc/openvpn/easy-rsa/keys/server.crt

ifconfig-pool-persist /var/lib/openvpn/server.ipp
client-config-dir server.ccd

...





share|improve this answer






















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f326429%2fstarting-openvpn-server-fails-with-options-error-client-config-dir-fails%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I found the bug. The server.ccd has to be in the crl.jail directory. I've changed the config like this:



    ...
    chroot /etc/openvpn/easy-rsa/keys/crl.jail
    crl-verify crl.pem

    ca /etc/openvpn/easy-rsa/keys/ca.crt
    dh /etc/openvpn/easy-rsa/keys/dh2048.pem
    tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
    key /etc/openvpn/easy-rsa/keys/server.key
    cert /etc/openvpn/easy-rsa/keys/server.crt

    ifconfig-pool-persist /var/lib/openvpn/server.ipp
    client-config-dir server.ccd

    ...





    share|improve this answer



























      0














      I found the bug. The server.ccd has to be in the crl.jail directory. I've changed the config like this:



      ...
      chroot /etc/openvpn/easy-rsa/keys/crl.jail
      crl-verify crl.pem

      ca /etc/openvpn/easy-rsa/keys/ca.crt
      dh /etc/openvpn/easy-rsa/keys/dh2048.pem
      tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
      key /etc/openvpn/easy-rsa/keys/server.key
      cert /etc/openvpn/easy-rsa/keys/server.crt

      ifconfig-pool-persist /var/lib/openvpn/server.ipp
      client-config-dir server.ccd

      ...





      share|improve this answer

























        0












        0








        0







        I found the bug. The server.ccd has to be in the crl.jail directory. I've changed the config like this:



        ...
        chroot /etc/openvpn/easy-rsa/keys/crl.jail
        crl-verify crl.pem

        ca /etc/openvpn/easy-rsa/keys/ca.crt
        dh /etc/openvpn/easy-rsa/keys/dh2048.pem
        tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
        key /etc/openvpn/easy-rsa/keys/server.key
        cert /etc/openvpn/easy-rsa/keys/server.crt

        ifconfig-pool-persist /var/lib/openvpn/server.ipp
        client-config-dir server.ccd

        ...





        share|improve this answer













        I found the bug. The server.ccd has to be in the crl.jail directory. I've changed the config like this:



        ...
        chroot /etc/openvpn/easy-rsa/keys/crl.jail
        crl-verify crl.pem

        ca /etc/openvpn/easy-rsa/keys/ca.crt
        dh /etc/openvpn/easy-rsa/keys/dh2048.pem
        tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
        key /etc/openvpn/easy-rsa/keys/server.key
        cert /etc/openvpn/easy-rsa/keys/server.crt

        ifconfig-pool-persist /var/lib/openvpn/server.ipp
        client-config-dir server.ccd

        ...






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 28 '16 at 2:47









        andi-gandi-g

        13




        13



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f326429%2fstarting-openvpn-server-fails-with-options-error-client-config-dir-fails%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown






            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay