Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am setting up an openvpn server on my network for the purposes of accessing devices remotely. I have generated crts and keys with the easy-rsa scripts and have configured server.conf correctly AFAIK.

/etc/init.d/openvpn start

returns

[FAIL] Starting virtual private network daemon: server failed!

I have tried starting the server manually to get more detailed output, but

openvpn --cd /etc/openvpn --config /etc/openvpn/server.conf

returns no output at all and the process dies before doing anything. Any idea on how to troubleshoot this further?

server.conf:

cd /etc/openvpn
remote local
proto udp
port 1194
verb 3
log-append /var/log/openvpn.log
daemon
dev tun
persist-tun
persist-key
server 10.1.7.0 255.255.255.0
ifconfig-pool-persist ips.txt
client-to-client
cipher BF-CBC
secret keys/shared.key
ca certs/ca.crt
dh dh1024.pem
cert certs/server.crt
key keys/server.key
share|improve this question
2  
Usually OpenVPN outputs its complaints to syslog. Check your log files. –  Celada Mar 8 '13 at 19:37
1  
You have OpenVPN configured to log explicitly to /var/log/openvpn.log (that's what the log-append line is for). Maybe you should look there. –  larsks Mar 8 '13 at 21:25

1 Answer 1

With

openvpn --cd /etc/openvpn --config /etc/openvpn/server.conf

you are trying to start openvpn client with servers config.

You have log in /var/log/openvpn.log, check it. And check tun module lsmod | grep tun

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.