Q
Q
qvantum5462016-06-12 16:47:47
linux
qvantum546, 2016-06-12 16:47:47

The OpenVPN server on mikrotik falls off. Why?

On Mikrotik, an OpenVPN server is running, to which you can connect only once. After stopping the client, reconnection does not occur. in client log

TCP: connect to [AF_INET]xxx.xxx.xxx.xxx:1194 failed, will try again in 5 seconds: Connection refused

It is possible to connect only after restarting the OVPN server.
What could be the problem?
dev tun
proto tcp
remote xxx.xxx.xxx.xxx 1194 
client
resolv-retry infinite
<ca>
</ca>
<cert>
</cert>
nobind
<key>
</key>
persist-key
persist-tun
#comp-lzo
verb 3
status-version 3
log-append /var/log/openvpn-client.log
keepalive 10 120
route-delay 2
auth-user-pass auth.cfg
ns-cert-type server
tls-cipher TLS-RSA-WITH-AES-256-CBC-SHA

The OVPN server itself was configured according to the off wiki wiki.mikrotik.com/wiki/OpenVPN#Server_configuration

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
paxlo, 2016-06-12
@paxlo

Show vyser after verb 5

D
Dmitry Aitkulov, 2016-07-29
@Scarfase1989

give me my working config

client
dev tun
proto tcp
remote xxx.xxx.xxx.xxx 1194
nobind
persist-key
persist-tun
tls-client
remote-cert-tls server
ca CA.crt
cert client1.crt
key client1.key
verb 3
mute 10
tls-cipher TLS-RSA-WITH-AES-256-CBC-SHA
auth sha1
auth-user-pass user-pwd.txt
auth-nocache
redirect-gateway def1

+ on Mikrotik ppp -> openvpn server ticked
:
auth: sha1 md5
cipher blowfish and all aes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question