I am trying to connect routerOS 7.2.3 to OpenVPN Cloud.
On OpenVPN claud there are instructions to connect different routers but not Mikrotik. The .ovpn file containing the certificates is provided which I can without problems import to RouterOS.
I try to reproduce the instructions on RouterOS, but upon connection I get "TSL failed"
file .ovpn:
Code: Select all
etenv USERNAME "stek/connector/baff8c61-2d91-4cbe-833b-01aac4268c72_9510df84-cd6f-4bd0-b2dd-dc61afc27175"
# OVPN_WEBAUTH_FRIENDLY_USERNAME=stek/stekhome/connector01
# OVPN_FRIENDLY_PROFILE_NAME=stekhome@stek.openvpn.com [Zurich]
client
dev tun
remote ch-zrh.gw.openvpn.com 1194 udp
remote ch-zrh.gw.openvpn.com 1194 udp
remote ch-zrh.gw.openvpn.com 443 tcp
remote ch-zrh.gw.openvpn.com 1194 udp
remote ch-zrh.gw.openvpn.com 1194 udp
remote ch-zrh.gw.openvpn.com 1194 udp
remote ch-zrh.gw.openvpn.com 1194 udp
remote ch-zrh.gw.openvpn.com 1194 udp
remote-cert-tls server
cipher AES-256-CBC
auth SHA256
persist-tun
nobind
verb 3
socket-flags TCP_NODELAY
<ca>
-----BEGIN CERTIFICATE-----
Mxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Mxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Mxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Mxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
...
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
Mxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Mxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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