Community discussions

MikroTik App
 
imaljko4
Member Candidate
Member Candidate
Topic Author
Posts: 250
Joined: Fri Apr 25, 2008 6:52 pm

RE: Openvpn Setup problem: please help

Sat Jan 11, 2014 12:36 am

I have setup the openvpn Server (RB 751-2HND) like described in the wiki here:
http://wiki.mikrotik.com/wiki/OpenVPN

I am connecting to the Openvpn from a windows XP computer, but when i connect i am constantly getting "Connection reset, restarting" problem.
I am using RouterOS 6.7.
Kan somebody pinpoint me to what might be the problem?
I have tried almost every possible thing ( created new certificates, created a bridge interface....etc..), but i always get the same error.

I have opnevpn server on other 2 mirktoik routers, and there it is working without problems, but they are routerOS v4.17.
Can it be that the new RouterOS version has a problem with Openvpn?

Here is the Openvpn log:
Fri Jan 10 23:18:00 2014 OpenVPN 2.3.2 i686-w64-mingw32 [SSL (OpenSSL)] [LZO] [P
KCS11] [eurephia] [IPv6] built on Aug 22 2013
Enter Auth Username:1
Enter Auth Password:
Fri Jan 10 23:18:02 2014 WARNING: --ping should normally be used with --ping-res
tart or --ping-exit
Fri Jan 10 23:18:02 2014 WARNING: No server certificate verification method has
been enabled.  See http://openvpn.net/howto.html#mitm for more info.
Fri Jan 10 23:18:02 2014 Socket Buffers: R=[8192->8192] S=[8192->8192]
Fri Jan 10 23:18:02 2014 Attempting to establish TCP connection with [AF_INET]10
.0.5.1:1194
Fri Jan 10 23:18:02 2014 TCP connection established with [AF_INET]10.0.5.1:1194
Fri Jan 10 23:18:02 2014 TCPv4_CLIENT link local: [undef]
Fri Jan 10 23:18:02 2014 TCPv4_CLIENT link remote: [AF_INET]10.0.5.1:1194
Fri Jan 10 23:18:02 2014 TLS: Initial packet from [AF_INET]10.0.5.1:1194, sid=xxxxxxxx xxxxxxxx
Fri Jan 10 23:18:02 2014 WARNING: this configuration may cache passwords in memo
ry -- use the auth-nocache option to prevent this
Fri Jan 10 23:18:03 2014 VERIFY OK: depth=1, C=HR, ST=ZG, L=Zagreb, O=Company
d.o.o., CN=ca, emailAddress=info@mymail.com
Fri Jan 10 23:18:03 2014 VERIFY OK: depth=0, C=HR, ST=ZG, O=Company d.o.o., CN
=server, emailAddress=info@mymail.com
Fri Jan 10 23:18:04 2014 Connection reset, restarting [0]
Fri Jan 10 23:18:04 2014 SIGUSR1[soft,connection-reset] received, process restar
ting
Fri Jan 10 23:18:04 2014 Restart pause, 5 second(s)

here is the log from the Mikrotik Router:
23:18:11 ovpn,info TCP connection established from 10.0.5.253 
23:18:11 ovpn,info <ovpn-0>: dialing... 
23:18:13 ovpn,info <ovpn-0>: terminating... - remote peer uses tap encapsulation while we - tun 
23:18:13 ovpn,info <ovpn-0>: disconnected 
Edit:
So the problem occurs when i use "dev tap" in the client.ovpn (windows) file.
When i change the line to "dev tun", then it works fine (tested it from Ubuntu and windows)
The only problem is , when i use "dev tun", how can i force my windows client to use the internet through the vpn connection?

Edit:
I found a solution:
I had to change the mode from "IP" to "ethernet", under OVPN server (on the mikrotik router).
Seems that on the new routerOS the "dev Tap" option is supported only when you select "ethernet" mode.

Now everything is working, except i don't know how can i successfully route all my XP clients internet traffic, to go through the vpn?
 
lz1dsb
Member Candidate
Member Candidate
Posts: 226
Joined: Wed Aug 07, 2013 11:48 am

Re: RE: Openvpn Setup problem: please help

Tue Sep 09, 2014 5:00 pm

Thank God I found this!
I didn't even know that this OVPN server option ever exists....
 
ahmedbona3
Frequent Visitor
Frequent Visitor
Posts: 81
Joined: Tue Apr 28, 2015 1:41 am

Re: RE: Openvpn Setup problem: please help

Sun Apr 29, 2018 8:08 pm

I have the same problem please help me
 
User avatar
Hrobocop
just joined
Posts: 23
Joined: Sun Dec 04, 2011 12:07 pm
Location: Prague

Re: RE: Openvpn Setup problem: please help

Sun Jan 27, 2019 3:58 pm

You need to setup same mode on server and client.
Mode should be IP or Ethernet.
On Windoz tun/tap

More info here: https://wiki.mikrotik.com/wiki/OpenVPN# ... ._RouterOS

Who is online

Users browsing this forum: Bing [Bot], edupre, Google [Bot], maigonis, Semrush [Bot] and 92 guests