Community discussions

MikroTik App
 
danieltnc1981
newbie
Topic Author
Posts: 32
Joined: Sun Jul 16, 2017 1:27 pm

OpenVpn Server - Connection Restarting - Problem with my microtik - 6.40

Fri Mar 26, 2021 12:17 am

Good evening. I just installed a mikrotik.
Version 6.48.
Configured an OpenVpn server.
But when I connect from windows on OPENVPN GUI I get this error.

2021-03-25 23:11:29 Attempting to establish TCP connection with [AF_INET]XXXXXXXX:1194 [nonblock]
2021-03-25 23:11:29 TCP connection established with [AF_INET] XXXXXXXX:1194
2021-03-25 23:11:29 TCP_CLIENT link local: (not bound)
2021-03-25 23:11:29 TCP_CLIENT link remote: [AF_INET]XXXXXXXX:1194
2021-03-25 23:11:29 Connection reset, restarting [0]
2021-03-25 23:11:29 SIGUSR1[soft,connection-reset] received, process restarting


This is my .ovpn file

proto tcp-client
remote My Ip Pubblic 1194
dev tun
script-security 2

nobind
persist-key

tls-client
verb 1

AES-256-CBC cipher
auth SHA1
pull

auth-user-pass auth.cfg
route 192.168.1.0 255.255.255.0


<ca>
----- BEGIN CERTIFICATE -----
MIIDNjCCAh6gAwIBAgIIa + xL1SgiikAwDQYJKoZIhvcNAQELBQAwDTELMAkGA1UEXXXX
----- END CERTIFICATE -----
</ca>


I attach microtik log and microtik server vpn configuration
You do not have the required permissions to view the files attached to this post.
 
User avatar
loloski
Member Candidate
Member Candidate
Posts: 298
Joined: Mon Mar 15, 2021 9:10 pm

Re: OpenVpn Server - Connection Restarting - Problem with my microtik - 6.40

Mon Mar 29, 2021 6:03 pm

First on your client configuration ensure the protocol is set to TCP, if you verified that it's TCP then check your input chain in your router if you allow port 1194 TCP then report your progress here
and also disable tls-client I think mikrotik does not support it.

Try this i just modify your config a little bit
client
proto tcp
remote My Ip Pubblic 1194
dev tun
script-security 2
nobind
persist-key
verb 1
AES-256-CBC cipher

Who is online

Users browsing this forum: artone and 49 guests