I’m trying to configure an OpenVPN client on the LtAP mini LTE kit ROS 7.15.3 and I have a problem with it.
OpenVPN server is in AWS and other routers are connected to it and working happily.
Here is how I configure the LtAP mini LTE kit 4G router:
Upload the .ovpn file to router file system
In router, PPP → Import .ovpn → select the uploaded .ovpn file → click start button
In router, Interface → ovpn-importxxx → enable Add Default Route → OK
In router, enable this openvpn interface.
Issue
Router log shows connected, but does not show me the Local Address, Remote Address in the openvpn interface status.
Router failed to ping to OpenVPN server IP, 8.8.8.8
Router could not access internet
Questions
The router complains error about “unsupported redirect-gateway flag ‘bypass-dhcp’”.
This is OpenVPN server pushed configuration. I have no idea why router not happy about it and how to fix it.
I notice few rules are dynamically added to IP → Routes when openvpn interface is enabled. It seems ok.
What about firewall? Do I need to manually configure it?
Any configuration I missed out?
This ovpn file is valid and works in both Windows and Teltonika 4G router.
Imported the same ovpn file and the obvious error router reported is “unsupported redirect-gateway flag ‘bypass-dhcp’”.
By googling that, it is used by Windows and ROS should safely ignore this setting and not reporting error.
The link provided is very old. My ovpn file uses certificate and does not use username/password. I found two confusing MikroTik documents:
https://wiki.mikrotik.com/wiki/Manual:Interface/OVPN: last update 2021, it says “Currently unsupported OpenVPN features: authentication without username/password”. I think this is out of date and not valid anymore.
1 - Your router without the vpn can access the internet without problem ?
2 - Can you disable the redirect-gateway flag ‘bypass-dhcp’" in your OpenVPN server and try again ?
Yes, the router can access the internet without VPN.
Disabled the redirect-gateway flag ‘bypass-dhcp’" in my OpenVPN server, issue still there. This error is not stopping the router connect to OpenVPN server.
Here is router log:
Line 231, the error
Line 232, connected, no internet
Disabled the redirect-gateway flag ‘bypass-dhcp’" in my OpenVPN server
After tens of hours of research and try with retailer tech support.
The issue is still there:
LTE router is OpenVPN client, connected to cloud server. No idea what routing rules/firewall need to set on router and router is not using it.
Also tried Wireguard, same again. Connected, but no idea what/how to set other rules.
The Mikrotik documentation is not very helpful. Most documents focus on router as server.
In this forum, a lot of similar question asked but seems no clear answers.
If anyone want to setup the same server environment: