Julien Lepiller <jul...@lepiller.eu> writes:

> Le 22 février 2020 07:09:46 GMT-05:00, Raghav Gururajan 
> <raghavgurura...@disroot.org> a écrit :
>>Hi Julien!
>>
>
> Unless I'm mistaken, I've pushed a patch to add auth-user-pass which
> is what you need. If that's not it, can you share the target
> configuration?
>

Here's an example configuration.

#+BEGIN_SRC scheme
   (openvpn-client-service
    #:config
    (let ([base-dir "/home/joshua/prog/guile/guix-config/vpn/"])
      (openvpn-client-configuration
       (auth-user-pass (string-append base-dir "login.conf"))
       (ca (string-append base-dir "ca2.crt"))
       (cert (string-append base-dir "client.crt"))
       (key (string-append base-dir "client.key"))
       ;; the expressvpn file I use disables lzo compression
       (comp-lzo? #f)
       (fast-io? #t)
       (remote
        (list
         (openvpn-remote-configuration
          (name "name-of-remote-host.com")
          (port 1195)))))))
#+END

"login.conf" looks like

#+BEGIN_SRC  text
username
password
#+END_SRC

Best of luck!

--
Joshua Branson
Sent from Emacs and Gnus

Reply via email to