Por padrão, o OpenVpn procura por .conf
arquivos não .opvn
em /etc/openvpn/
.
Altere a extensão do arquivo para .conf
, em seguida, a execução do serviço não deverá ter problemas ao localizar o arquivo e conectar-se
Se você instalou o pacote do apt-get, ele tem a capacidade de iniciar automaticamente. Além disso, dependendo do sistema operacional que você está executando, pode haver algumas diferenças em caminhos de arquivo, faça um link simbólico para /etc/init.d/openvpn nos arquivos rc apropriados.
ie. no ubuntu / debian
ln -s /etc/init.d/openvpn /etc/rc4.d/S99Openvpn
para iniciar no nível de execução 4
ln -s /etc/init.d/openvpn /etc/rc6.d/K99Openvpn
para parar no encerramento
Isso foi tudo o que eu tinha feito para fazer minhas vpn's começarem.
Existe um arquivo, /etc/default/openvpn
, que possui alguns parâmetros de início automático.
Precisa que o nome do seu arquivo seja .conf
Depois, há uma linha para adicionar. AUTOSTART='client'
em que client é o nome do arquivo. ie. /etc/openvpn/client.conf