Fadim wrote
The configuration you've shared seems generally correct. It's tricky to diagnose the problem without logs or error messages. However, here are a few things you might want to check:
1. Ensure the certificates and keys are correctly formatted in the .ovpn file. They should be exactly as they are in the original files, including all lines and dashes.
2. Make sure the Mikrotik server is configured to allow connections from your Ubiquiti router's IP.
3. The line "proto tcp-client" might be causing issues, you could try changing it to "proto udp" instead, as UDP is generally recommended for VPNs due to better performance.
4. Check if the Mikrotik router's firewall rules allow the Ubiquiti router to establish a connection.
5. Lastly, verify that you have the correct public IP and port number.
If none of this works, it would be really helpful if you could share any error messages you're seeing. They could provide valuable clues on what's going wrong.
Thank you very much for your reply. In the Mikrotik's log I don't have any error or connection attempt from the Ubiquiti router. And from the Ubiquiti router the only thing I have is a "problem" when trying to load the file.
I'll try to check the spaces or if everything is formatted correctly, because I don't really know what it could be.
This is what I get when I try to load the file:
Connection not established. Please check your credentials, configuration file and check if remote is online.