Answer the question
In order to leave comments, you need to log in
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
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
Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question