I wonder if anyone has successfully managed to do so and would be so kind sharing their knowledge and point me in the right direction.
You see, I have successfully connected to my RB493G via OpenVPN and also the LAN behind it, using my WIN7 PC. I also can connect via OpenVPN to a USA-based VPN server on my Android tablet. It allows me to watch Netflix from outside USA. So my openVPN works on my Android tablet.
But have not been able to connect the MikroTik oVPN server from my Android tablet. I kept getting the messages alternating between ‘connecting’ and ‘reconnecting’. And it stops after the set 5 times. I have searched low and high, tried various settings but to no avail. So I guess it’s the issue with MikrotTik openVPN.
Much appreciate for your help.
Edited for clarity.
Since the reply to my query was so overwhelming, [cough, cough], I feel my patience was tested to the limits at times with using MikroTik. But I love its value and full of features. I also wish some gentle push with appropriate efforts by MikroTik to make its products even more valuable in terms of finding out its features in a more systematic way.
I know my MCNA qualification does not mean I know all about MikroTik products. But I do own a copy of excellent 'RouterOS by Example' by Stephen R.W. Disher, as well as first edition of 'Learn RouterOS' by Dennis Burgess. But still found myself many times stumbling in the dark (so to speak) by lack of documented features by examples. Please do not see this as a complaint.
(I know of a certain IT company which asks chosen beta testers to help develop its product such as debugging and documentation before the product is released. The price to the company is relatively cheap: Beta testers got to keep the products they test. That's simple. I am one of their beta testers so I know but I can't name name.) [End of unsolicited advice]
Back to the issue at hand, I finally resolved the issue after a lot of perseverance and time. I am glad to say that I can now connect to MikroTik (RB493G) via OpenVPN from my Android devices - one is my HTC Desire (h/ware is a bit old) running modified Cyanogen ROM (4.2.2); the other is my Acer A500 (also a few years old) tablet running modified Omni version 4.4.4. I used to connect via PPTP but it can be easily cracked (source Edward Snowden).
For those who are interested, I have to set OpenVPN server to IP mode for Android devices to connect. Whereas Windows can only connect if I set it to ethernet mode. In short, I can only connect one type of devices at a time but not Windows and Android at the same time. In addition the following script to make it to work (Android only) along these lines:
dev tun
proto tcp-client
remote pubic-ip-adress-of-Mikrotik-router (or your DNS name)
ca ca.crt
tls-client #comp-lzo # Do not use compression.
persist-tun
persist-key
verb 3
cipher BF-CBC
auth SHA1
pull
route local-network-ip-adress netmask ip-adress-of-ovpnserver
additional subnets on your local network s/be added here in the same format if you want access when connected.
auth-user-pass
Cheers
P.S. Now the question 'How to have Windows and Android connecting Mikrotik openVPN server at the same time? Or is it possible?
Over to expert. Anyone at all.
I got the answer to my own question at bottom of last post.
OpenVPN server cannot accept dev tun (i.e. Android device) and dev tap (i.e. Windows) as clients concurrently.
Use Ethernet mode for Windows-based device connection, and IP mode for Android devices. VPN providers must have different OVPN servers at their end to handle Windows connections separately from Android devices.
Hello Friend, could you help me to connect my Android Phone to my OpenVPN Server installed in mikrotik? I´ve tryed to connect generating new certificates but I don´t know how config the Android OVPN client.
I agree if you could help me step by step the configuration.
Thanks very much