I've got a very weird problem in setting up the openvpn server on centos.
Everything went fine and I did run the openvpn on standalone mode With
and again everything goes well in this standalone run.
The problem comes When I'm gonna run openvpn in service mode. When I come issue this command:
# /etc/init.d/openvpn start (Even for making sure I did restart instead)
it gives me failed. So I checked out the /etc/openvpn/openvpn.log and it said:
Sat Jan 14 20:34:51 2012 OpenVPN 2.1.4 i386-redhat-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on Apr 24 2011
Sat Jan 14 20:34:51 2012 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sat Jan 14 20:34:51 2012 Note: cannot open /etc/openvpn/openvpn-status.log for WRITE
Sat Jan 14 20:34:51 2012 Note: cannot open /etc/openvpn/ipp.txt for READ/WRITE
Sat Jan 14 20:34:51 2012 Diffie-Hellman initialized with 1024 bit key
Sat Jan 14 20:34:51 2012 TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Sat Jan 14 20:34:51 2012 Socket Buffers: R=[110592->131072] S=[110592->131072]
Sat Jan 14 20:34:51 2012 TCP/UDP: Socket bind failed on local address [undef]:1143: Permission denied
Sat Jan 14 20:34:51 2012 Exiting
you see? it gives me permission denied but I'm totally sure that I run this in root.
it gives me even Write error!!!!!
But when I run the same config on ubuntu, it runs correctly. So any ideas???????????