Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am using DD-WRT with my Buffalo G300NH. I notice in my log files:

Wed Oct 10 01:08:25 2012 us=343000 Cannot open /tmp/openvpn/dh.pem for DH parameters: error:02001003:system library:fopen:No such process: error:2006D080:BIO routines:BIO_new_file:no such file

I have looked at other answers regarding this error. I have tried to no avail. 755 are chmod rights to /tmp/openvpn. At this point, I can not connect outside my LAN via OpenVPN. My server config looks like this:

#mode server
#tls-server

push "route 192.168.11.1 255.255.255.0"
push "dhcp-option DNS 10.8.0.1"
server 10.8.0.0 255.255.255.0

port 1194
proto udp
dev tun0
ifconfig 10.8.0.1 10.8.0.2
#secret /tmp/static.key

ca /tmp/openvpn/ca.crt
cert /tmp/openvpn/cert.pem
key /tmp/openvpn/key.pem
dh /tmp/openvpn/dh.pem

keepalive 10 120
comp-lzo
persist-key
persist-tun
verb 5

management localhost 5001

Can someone, knowledgeable, of this error kindly help? i have been going on several days, trying to sort it out. I like all nighters though!!

share|improve this question

closed as off topic by Michael Hampton, rnxrx, Ward, Adrian, John Gardeniers Oct 12 '12 at 6:34

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

1 Answer

Does that file exist already? You must create it, and you must store it somewhere that will persist across reboots.

To create the file use a command like this openssl dhparam -out /tmp/openvpn/dh.pem 1024. You will want to create this file on some other system and transfer it over because it takes a long time, and the CPU on your router will be very slow.

share|improve this answer

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