unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Raghav Gururajan <rg@raghavgururajan.name>
To: help-guix@gnu.org
Subject: OpenVPN Service
Date: Tue, 17 Nov 2020 21:36:07 -0500	[thread overview]
Message-ID: <62f628f6-4a6e-065b-70ca-374a998b52d2@raghavgururajan.name> (raw)


[-- Attachment #1.1.1: Type: text/plain, Size: 1255 bytes --]

Hello Guix!

I am struggling to setup OpenVPN Service Type. Here is my current 
configuration.

*** START ***

(service openvpn-client-service-type
  (openvpn-client-configuration
   (remote
    (list
     (openvpn-remote-configuration
      (name "vpn.riseup.net")
      (port 1194))))
   (auth-user-pass "/etc/openvpn/Riseup.txt")
   (ca "/etc/openvpn/RiseupCA.pem")))

*** END ***

When I do, `sudo herd status vpn-client`, I get:

*** START ***

Status of vpn-client:
   It is stopped.
   It is enabled.
   Provides (vpn-client).
   Requires (networking).
   Conflicts with ().
   Will be respawned.

*** END ***

When I do, `openvpn /gnu/store/[...]-openvpn.conf`, I get:

*** START ***

Options error: --ca fails with '/etc/openvpn/ca.crt': No such file or 
directory (errno=2)
Tue Nov 17 21:32:44 2020 WARNING: cannot stat file 
'/etc/openvpn/client.key': No such file or directory (errno=2)
Options error: --key fails with '/etc/openvpn/client.key': No such file 
or directory (errno=2)
Tue Nov 17 21:32:44 2020 WARNING: file '/etc/openvpn/Riseup.txt' is 
group or others accessible
Options error: Please correct these errors.

*** END ***

Could anyone please help me with this?

Regards,
RG.

[-- Attachment #1.1.2: OpenPGP_0x5F5816647F8BE551.asc --]
[-- Type: application/pgp-keys, Size: 675 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

             reply	other threads:[~2020-11-18 13:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-18  2:36 Raghav Gururajan [this message]
2020-11-18 14:06 ` OpenVPN Service Julien Lepiller
2020-11-18 19:54   ` Raghav Gururajan
2020-11-19  1:04   ` jbranso
2020-11-19 11:36     ` Julien Lepiller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=62f628f6-4a6e-065b-70ca-374a998b52d2@raghavgururajan.name \
    --to=rg@raghavgururajan.name \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).