V
V
Vladimir Skibin2017-09-27 10:41:07
openvpn
Vladimir Skibin, 2017-09-27 10:41:07

How to set up an OpenVPN client on Mikrotik?

It is necessary to configure the OpenVPN client on Mikrotik, of course there is no access to the server, since it is one of the services provided. The service has no other connections (PPTP, L2TP, etc), so you only have to work with OpenVPN.
Actually, the problem is that the off-line documentation only talks about compression and UDP, but there is no longer any certificate authorization for the age-old problem.
Thus, the question boils down to what it will turn out to somehow set up the connection: regular , or through a metarouter ?
Config snippet:

dev tun
proto tcp-client
tls-client
tls-auth <...>.key 1
ca <...>.crt
cert <...>.pem
key <...>.pem
comp-lzo
reneg-sec 36000
auth SHA1
cipher AES-256-CBC
keysize 256
persist-key
persist-tun
verb 3
ping 5
ping-restart 35
hand-window 150
ns-cert-type server
mssfix 0
pull
setenv opt block-outside-dns

PS, How to set up mikrotik openvpn client? - the question was raised more than 3 years ago, maybe something has changed

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Shapkin, 2017-09-27
@WopeN

Here is a link to setting up openvpn on Mikrotik, from the unsupported:

UDP,
LZO,
TLS,
Auth without login/pass

My openvpn client on mikrotik is configured through a certificate and has been working without problems for 2 years.
Below is my config:
ovpn client config
client
proto tcp-client
dev tun
ca <...>.crt
cert <...>.crt
key <...>.key
remote xxx.xxx.xxx.xxx 1194
cipher AES-256-CFB
verb 2
mute 20
keepalive 10 120
persist-key
persist-tun
float
resolv-retry infinite
nobind

I
Ivan, 2017-09-27
@LiguidCool

As far as I remember Mikrots do not support compression. According to the certificate, everything should work, but in general there are examples in the docks ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question