G
G
Galdar Turin2019-01-24 14:13:32
openvpn
Galdar Turin, 2019-01-24 14:13:32

How to start Open VPN Server?

I execute the command:

systemctl status [email protected]

Gives an error message:

● [email protected] - OpenVPN connection to server
Loaded: loaded (/lib/systemd/system/[email protected]; disabled)
Active: failed (Result: exit-code) since Thu 2019-01-24 16:43: 22MSK; 14min ago
Process: 2512 ExecStart=/usr/sbin/openvpn --daemon ovpn-%i --status /run/openvpn/%i.status 10 --cd /etc/openvpn --config /etc/openvpn/%i .conf (code=exited, status=1/FAILURE)
Jan 24 16:43:22 guacamole ovpn-server[2512]: Options error: Unrecognized option or missing parameter(s) in /etc/openvpn/se...2.3 .4)
Jan 24 16:43:22 guacamole ovpn-server[2512]: Use --help for more information.
Jan 24 16:43:22 guacamole systemd[1]: [email protected]: control process exited, code=exited status=1
Jan 24 16:43:22 guacamole systemd[1]: Failed to start OpenVPN connection to server.
Jan 24 16:43:22 guacamole systemd[1]: Unit ope[email protected] entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.

Someone faced such a problem?
/etc/openvpn/server.conf

;local a.b.c.d
port 1194
proto tcp
;proto udp
explicit-exit-notify 0
;dev tap
dev tun
;dev-node MyTap
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
;server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100
;server-bridge
;push "route 192.168.10.0 255.255.255.0"
;push "route 192.168.20.0 255.255.255.0"
;client-config-dir ccd
;route 192.168.40.128 255.255.255.248
;client-config-dir ccd
;route 10.9.0.0 255.255.255.252
;learn-address ./script
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
client-to-client
;duplicate-cn
keepalive 10 120
key-direction 0
;cipher BF-CBC # Blowfish (default)
cipher AES-128-CBC # AES
;cipher DES-EDE3-CBC # Triple-DES
auth SHA256
comp-lzo
;max-clients 100
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
;log openvpn.log
;log-append openvpn.log
verb 3
;mute 20
sndbuf
rcvbuf 0
push "sndbuf 524288"
push "rcvbuf 524288"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CityCat4, 2019-01-24
@CityCat4

Jan 24 16:43:22 guacamole ovpn-server[2512]: Options error: Unrecognized option or missing parameter(s) in /etc/openvpn/se...2.3.4)

What is the problem written in English on white

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question