Cannot start openvpn
Posted: Tue Apr 19, 2016 4:35 pm
OS : Centos 7.2.1511
i am new to linux ( especially Centos )
im follow the tutorial below on this site : https://www.howtoforge.com/tutorial/how ... -centos-7/
its include :
Enable the epel-repository in CentOS.
Install openvpn, easy-rsa and iptables.
Configure easy-rsa.
Configure openvpn.
Disable firewalld and SELinux.
Configure iptables for openVPN.
Start openVPN Server.
Setting up the OpenVPN client application.
but i cant start OpenVPN
when i running the command " systemctl status openvpn@server.service "
i receive message below :
● openvpn@server.service - OpenVPN Robust And Highly Flexible Tunneling Application On server
Loaded: loaded (/usr/lib/systemd/system/openvpn@.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2016-04-19 23:17:14 WIB; 4min 5s ago
Process: 4660 ExecStart=/usr/sbin/openvpn --daemon --writepid /var/run/openvpn/%i.pid --cd /etc/openvpn/ --config %i.conf (code=exited, status=1/FAILURE)
Apr 19 23:17:14 centos-aiman systemd[1]: Starting OpenVPN Robust And Highly Flexible Tunneling Application On server...
Apr 19 23:17:14 centos-aiman systemd[1]: openvpn@server.service: control process exited, code=exited status=1
Apr 19 23:17:14 centos-aiman systemd[1]: Failed to start OpenVPN Robust And Highly Flexible Tunneling Application On server.
Apr 19 23:17:14 centos-aiman systemd[1]: Unit openvpn@server.service entered failed state.
Apr 19 23:17:14 centos-aiman systemd[1]: openvpn@server.service failed.
and the server.conf was :
port 1337
proto udp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh1024.pem
server 192.168.200.0 255.255.255.0
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
duplicate-cn
keepalive 20 60
comp-lzo
persist-key
persist-tun
daemon
log-append /var/log/myvpn/openvpn.log
verb 3
Any help Appreciated
i am new to linux ( especially Centos )
im follow the tutorial below on this site : https://www.howtoforge.com/tutorial/how ... -centos-7/
its include :
Enable the epel-repository in CentOS.
Install openvpn, easy-rsa and iptables.
Configure easy-rsa.
Configure openvpn.
Disable firewalld and SELinux.
Configure iptables for openVPN.
Start openVPN Server.
Setting up the OpenVPN client application.
but i cant start OpenVPN
when i running the command " systemctl status openvpn@server.service "
i receive message below :
● openvpn@server.service - OpenVPN Robust And Highly Flexible Tunneling Application On server
Loaded: loaded (/usr/lib/systemd/system/openvpn@.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2016-04-19 23:17:14 WIB; 4min 5s ago
Process: 4660 ExecStart=/usr/sbin/openvpn --daemon --writepid /var/run/openvpn/%i.pid --cd /etc/openvpn/ --config %i.conf (code=exited, status=1/FAILURE)
Apr 19 23:17:14 centos-aiman systemd[1]: Starting OpenVPN Robust And Highly Flexible Tunneling Application On server...
Apr 19 23:17:14 centos-aiman systemd[1]: openvpn@server.service: control process exited, code=exited status=1
Apr 19 23:17:14 centos-aiman systemd[1]: Failed to start OpenVPN Robust And Highly Flexible Tunneling Application On server.
Apr 19 23:17:14 centos-aiman systemd[1]: Unit openvpn@server.service entered failed state.
Apr 19 23:17:14 centos-aiman systemd[1]: openvpn@server.service failed.
and the server.conf was :
port 1337
proto udp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh1024.pem
server 192.168.200.0 255.255.255.0
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
duplicate-cn
keepalive 20 60
comp-lzo
persist-key
persist-tun
daemon
log-append /var/log/myvpn/openvpn.log
verb 3
Any help Appreciated