Hello,
I just rented an unmanaged VPS Linux server running OpenVZ and CentOS 5.10 32bit. I know absolutely nothing about Linux and I just started following random online guides. I've been messing around for several hours, even having to look up how to use the nano editor, vi editor, stuff like that. So please talk to me as if I'm a baby. LOL
Anyway, I managed to successfully install OpenVPN, but it doesn't want to run.
Shutting down openvpn: [ OK ]
Starting openvpn: [FAILED]
I obviously have no clue what my move should be here. I think there might be something wrong with the server.config file, because I just copy/pasted the contents from an online guide.
FYI:
TUN/TAP is activated
built certificate, CA, key server, diffie hellman
copy/pasted a config file and saved it
Here are the last lines of the /var/log/messages:
Sep 4 20:53:07 blabla openvpn[2716]: OpenVPN 2.2.2 i686-redhat-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] built on Apr 5 2012
Sep 4 20:53:07 blabla openvpn[2716]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sep 4 20:53:07 blabla openvpn[2716]: PLUGIN_INIT: POST /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so '[/usr/share/openvpn/plugin/lib/openvpn-auth-pam.so] [/etc/pam.d/login]' intercepted=PLUGIN_AUTH_USER_PASS_VERIFY
Sep 4 20:53:07 blabla openvpn[2716]: Diffie-Hellman initialized with 1024 bit key
Sep 4 20:53:07 blabla openvpn[2716]: WARNING: POTENTIALLY DANGEROUS OPTION --client-cert-not-required may accept clients which do not present a certificate
Sep 4 20:53:07 blabla openvpn[2716]: TLS-Auth MTU parms [ L:1574 D:138 EF:38 EB:0 ET:0 EL:0 ]
Sep 4 20:53:07 blabla openvpn[2716]: Socket Buffers: R=[133120->131072] S=[133120->131072]
Sep 4 20:53:07 blabla openvpn[2716]: ROUTE: default_gateway=UNDEF
Sep 4 20:53:07 blabla openvpn[2716]: TUN/TAP device tun0 opened
Sep 4 20:53:07 blabla openvpn[2716]: TUN/TAP TX queue length set to 100
Sep 4 20:53:07 blabla openvpn[2716]: /sbin/ip link set dev tun0 up mtu 1500
Sep 4 20:53:07 blabla openvpn[2716]: /sbin/ip addr add dev tun0 local 10.8.0.1 peer 10.8.0.2
Sep 4 20:53:07 blabla openvpn[2716]: /sbin/ip route add 10.8.0.0/24 via 10.8.0.2
Sep 4 20:53:07 blabla openvpn[2716]: Data Channel MTU parms [ L:1574 D:1450 EF:42 EB:135 ET:32 EL:0 AF:3/1 ]
Sep 4 20:53:07 blabla openvpn[2723]: UDPv4 link local (bound): [undef]:1194
Sep 4 20:53:07 blabla openvpn[2723]: UDPv4 link remote: [undef]
Sep 4 20:53:07 blabla openvpn[2723]: MULTI: multi_init called, r=256 v=256
Sep 4 20:53:07 blabla openvpn[2723]: IFCONFIG POOL: base=10.8.0.4 size=62
Sep 4 20:53:07 blabla openvpn[2723]: Initialization Sequence Completed
Sep 4 21:01:18 blabla openvpn[2723]: event_wait : Interrupted system call (code=4)
Sep 4 21:01:18 blabla openvpn[2723]: TCP/UDP: Closing socket
Sep 4 21:01:18 blabla openvpn[2723]: /sbin/ip route del 10.8.0.0/24
Sep 4 21:01:18 blabla openvpn[2723]: Closing TUN/TAP interface
Sep 4 21:01:18 blabla openvpn[2723]: /sbin/ip addr del dev tun0 local 10.8.0.1 peer 10.8.0.2
Sep 4 21:01:18 blabla openvpn[2723]: PLUGIN_CLOSE: /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so
Sep 4 21:01:18 blabla openvpn[2723]: SIGTERM[hard,] received, process exiting
Sep 4 21:01:20 blabla openvpn[2774]: Options error: You must define TUN/TAP device (--dev)
Sep 4 21:01:20 blabla openvpn[2774]: Use --help for more information.
Sep 4 21:01:20 blabla openvpn[2777]: Options error: You must define TUN/TAP device (--dev)
Sep 4 21:01:20 blabla openvpn[2777]: Use --help for more information.
Sep 4 21:01:20 blabla openvpn[2780]: OpenVPN 2.2.2 i686-redhat-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] built on Apr 5 2012
Sep 4 21:01:20 blabla openvpn[2780]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sep 4 21:01:20 blabla openvpn[2780]: Diffie-Hellman initialized with 1024 bit key
Sep 4 21:01:20 blabla openvpn[2780]: TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Sep 4 21:01:20 blabla openvpn[2780]: Socket Buffers: R=[133120->131072] S=[133120->131072]
Sep 4 21:01:20 blabla openvpn[2780]: ROUTE: default_gateway=UNDEF
Sep 4 21:01:20 blabla openvpn[2780]: TUN/TAP device tun0 opened
Sep 4 21:01:20 blabla openvpn[2780]: TUN/TAP TX queue length set to 100
Sep 4 21:01:20 blabla openvpn[2780]: /sbin/ip link set dev tun0 up mtu 1500
Sep 4 21:01:20 blabla openvpn[2780]: /sbin/ip addr add dev tun0 local 10.0.0.1 peer 10.0.0.2
Sep 4 21:01:20 blabla openvpn[2780]: /sbin/ip route add 10.0.0.0/24 via 10.0.0.2
Sep 4 21:01:20 blabla openvpn[2780]: Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Sep 4 21:01:20 blabla openvpn[2786]: GID set to users
Sep 4 21:01:20 blabla openvpn[2786]: UID set to nobody
Sep 4 21:01:20 blabla openvpn[2786]: UDPv4 link local (bound): [undef]:1194
Sep 4 21:01:20 blabla openvpn[2786]: UDPv4 link remote: [undef]
Sep 4 21:01:20 blabla openvpn[2786]: MULTI: multi_init called, r=256 v=256
Sep 4 21:01:20 blabla openvpn[2786]: IFCONFIG POOL: base=10.0.0.4 size=62
Sep 4 21:01:20 blabla openvpn[2786]: IFCONFIG POOL LIST
Sep 4 21:01:20 blabla openvpn[2786]: Initialization Sequence Completed
Sep 4 21:10:19 blabla openvpn[2786]: event_wait : Interrupted system call (code=4)
Sep 4 21:10:19 blabla openvpn[2786]: TCP/UDP: Closing socket
Sep 4 21:10:19 blabla openvpn[2786]: /sbin/ip route del 10.0.0.0/24
Sep 4 21:10:19 blabla openvpn[2786]: ERROR: Linux route delete command failed: external program exited with error status: 2
Sep 4 21:10:19 blabla openvpn[2786]: Closing TUN/TAP interface
Sep 4 21:10:19 blabla openvpn[2786]: /sbin/ip addr del dev tun0 local 10.0.0.1 peer 10.0.0.2
Sep 4 21:10:19 blabla openvpn[2786]: Linux ip addr del failed: external program exited with error status: 2
Sep 4 21:10:19 blabla openvpn[2786]: SIGTERM[hard,] received, process exiting
Sep 4 21:10:21 blabla openvpn[3035]: OpenVPN 2.2.2 i686-redhat-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] built on Apr 5 2012
Sep 4 21:10:21 blabla openvpn[3035]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sep 4 21:10:21 blabla openvpn[3035]: Diffie-Hellman initialized with 1024 bit key
Sep 4 21:10:21 blabla openvpn[3035]: Cannot load certificate file server.crt: error:0906D06C:PEM routines:PEM_read_bio:no start line: error:140AD009:SSL routines:SSL_CTX_use_certificate_file:PEM lib
Sep 4 21:10:21 blabla openvpn[3035]: Exiting
Sep 4 21:10:21 blabla openvpn[3038]: Options error: You must define TUN/TAP device (--dev)
Sep 4 21:10:21 blabla openvpn[3038]: Use --help for more information.
Sep 4 21:10:21 blabla openvpn[3041]: Options error: You must define TUN/TAP device (--dev)
Sep 4 21:10:21 blabla openvpn[3041]: Use --help for more information.
Sep 4 21:10:21 blabla openvpn[3044]: OpenVPN 2.2.2 i686-redhat-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] built on Apr 5 2012
Sep 4 21:10:21 blabla openvpn[3044]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sep 4 21:10:21 blabla openvpn[3044]: Diffie-Hellman initialized with 1024 bit key
Sep 4 21:10:21 blabla openvpn[3044]: Cannot load certificate file server.crt: error:0906D06C:PEM routines:PEM_read_bio:no start line: error:140AD009:SSL routines:SSL_CTX_use_certificate_file:PEM lib
Sep 4 21:10:21 blabla openvpn[3044]: Exiting
It's possible that I actually messed up the whole thing, because I started trying out 3 "how to" guides at the same time and ended up trying out a bunch of different things.
Thank you for any advice. Sorry for being an idiot.