d3vilh / raspberry-gateway

Simple yet powerful home gateway environment with Pi-Hole +Unbound, VPN, Torrent client and Internet monitoring, all managed by Portainer.
https://github.com/d3vilh/raspberry-gateway
Apache License 2.0
120 stars 14 forks source link

Dev #34

Closed d3vilh closed 10 months ago

d3vilh commented 10 months ago

Bugfix for listing EasyRSA VARs on start.

This was can't open file error is fixed:

~/openvpn-server $ docker logs openvpn -f
EasyRSA path: /usr/share/easy-rsa OVPN path: /etc/openvpn
cat: can't open '/usr/share/easy-rsa/pki/vars': No such file or directory
PKI already set up.

Now it works fine and lists all the parameters:

 docker logs openvpn -f
EasyRSA path: /usr/share/easy-rsa OVPN path: /etc/openvpn
PKI already set up.
Following EASYRSA variables were set during CA init:
 EASYRSA_DN "org"
 EASYRSA_REQ_COUNTRY "UA"
 EASYRSA_REQ_PROVINCE "KY"
 EASYRSA_REQ_CITY "Kyiv"
 EASYRSA_REQ_ORG "Wonderland"
 EASYRSA_REQ_EMAIL "sweet@wonderland.ua"
 EASYRSA_REQ_OU "Wonderland"
 EASYRSA_REQ_CN "server"
 EASYRSA_KEY_SIZE 2048
 EASYRSA_CA_EXPIRE 3650
 EASYRSA_CERT_EXPIRE 825
 EASYRSA_CERT_RENEW 30
 EASYRSA_CRL_DAYS 180
 Auto generated by OpenVPN-UI v.0.9.3
Configuring networking rules...