I have this OVPN configuration:
dev tun
proto udp
remote <server IP> 1433
cipher AES-128-CBC
auth SHA1
resolv-retry infinite
nobind
persist-key
persist-tun
client
verb 3
auth-user-pass
<ca>
-----BEGIN CERTIFICATE-----
<Removed for the server owner security>
-----END CERTIFICATE-----
</ca>
###############################################################################
# Client certificate and key.
#
# A pair of client certificate and private key is required in case you want to
# use the certificate authentication.
#
# To enable it, uncomment the lines below.
# Paste your certificate in the <cert> block and the key in the <key> one.
<cert>
-----BEGIN CERTIFICATE-----
<Removed for the server owner security>
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
<Removed for the server owner security>
-----END PRIVATE KEY-----
</key>
but: it won't in the Mikrotik... also It wouldn't even establish the connection, until I upgrade router OS to 7.x to allow UDP connection
I'm using Winbox... and I'm doing:
** NOTE: I can not understand the detail of the OVPN file
PPP -> Profile > Add Profie:
- General
- - Name: ovpn...
- - bridge learning: default
- - Change TCP MSS: default
- Protocols
- - IP v6: no
- - MPLS: no
- - Compression: no
- - Encryption: yes
System -> Certificates -> Certificates -> import:
- name: ovpn...
- <The actual x.ovpn file> (it does contain the three keys as I put above)
- passpharase: <EMPTY>
Interface -> ADD OVPN:
- General
- - Name: ovpn-out1
- Dial Out
- - Connect To: <Server IP>
- - Port: 1433
- - Mode: ip
- - Protocol: udp
- - User & Pass: <OK>
- - Profile: ovpn...
- - Certificate: ovpn...
- - Verify Server Cerificate: false
- - TLS Version: any
- - Auth: SHA1
- - Cipher: AES 128
- - Use Peer DNS: yes
- - Add Default Route: false
It says: status: link established... but it won't change to connected...
Device Logs:
Code: Select allTopics | Message ------------------------------ ovpn, info | initializing ... ovpn, info | connecting ... ovpn, info | disconnected <could not negotiate TLS in time> ovpn, info | terminating ... could not negotiate TLS in time ovpn, info | disconnected