Здравствуйте друзья. Вчера до утра пытался пофиксить проблему с OpenVpn , но всё без толку.
Вот лог:
openvpn@server.service - OpenVPN connection to server
Loaded: loaded (/lib/systemd/system/openvpn@.service;
enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2022-11-27 05:53:25 EST; 14s ago
Docs: man:openvpn(8)
https://community.openvpn.net/openvpn/wiki/Openvpn23ManPage
https://community.openvpn.net/openvpn/wiki/HOWTO
Process: 9025 ExecStart=/usr/sbin/openvpn –daemon ovpn-%i –
status /run/openvpn/%i.status 10 –
Main PID: 2410 (code=exited, status=1/FAILURE)
Nov 27 05:53:25 v765toc52ejvz2i systemd[1]: Starting OpenVPN
connection to server…
Nov 27 05:53:25 v765toc52ejvz2i systemd[1]:
openvpn@server.service: Control process exited, code=e
Nov 27 05:53:25 v765toc52ejvz2i systemd[1]: Failed to start
OpenVPN connection to server.
Nov 27 05:53:25 v765toc52ejvz2i systemd[1]:
openvpn@server.service: Unit entered failed state.
Nov 27 05:53:25 v765toc52ejvz2i systemd[1]:
openvpn@server.service: Failed with result ‘exit-code’
Вот конфиг:
local 192.168.0.1
port 443
proto tcp
dev tun
ca keys/ca.crt
cert keys/server.crt
key keys/server.key
dh keys/dh.pem
tls-auth keys/ta.key 0
server myip 225.225.225.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
max-clients 32
persist-key
persist-tun
status /var/log/openvpn/openvpn-status.log
log-append /var/log/openvpn/openvpn.log
verb 4
mute 20
daemon
tls-server
comp-lzo
plugin /usr/lib/openvpn/plugins/openvpn-plugin-auth-pam.so login
tmp-dir /etc/openvpn/tmp
push «redirect-gateway def1»
push «dhcp-option DNS 1.1.1.1»
В этой теме впервые , по этому не бейте.