Hello,
I am trying to connect remotely to a LAN network by configuring a OVPN server in a mikrotik router and accessing it through a LTE interface.
I have an android phone connected on the usb port, with usb tethering activated.
I followed the following tutorial step by step: http://systemzone.net/mikrotik-openvpn-setup-with-windows-client/
It doesn’t work, and I have some questions.
I will describe what I have so far:
- LTE connection to internet (works)
- android phone connected to usb port
- dynamic ip address of LTE interface: 192.168.42.22/24
- dynamic route: 0.0.0.0/0 gateway 192.168.42.129
- dhcp client for LTE interface
- nat rule: chain->srcnat action->masquerade
I can ping google.com, so I have an internet connection.
- OVPN server configured
- local bridge with ip 192.168.90.1/24
- DNS server 8.8.8.8, on the dynamic servers :192.168.42.129 → I think this field contains the default gateway of LTE interface, so you can access 8.8.8.8. But I don’t understand why is it called Dynamic Servers.
- I created certificates like in the tutorial
- enabled OVPN server
- created ppp secret with local address 192.168.90.1(bridge) and 192.168.90.10 remote address
- I activated on the LTE interface proxy-arp
- then I configured OVPN client on windows
The client doesn’t connect to the server.
The problem is this: I have a public address on my phone, a local address on my phone and a dynamic address on LTE interface.
I replaced the WAN ip address from the tutorial with the public address. And it doesn’t work.
Should I define a default gateway in the same network as the public address?
Does the router know to route everything coming to the public ip address to the dynamic address of the LTE?
What should I put in the CA CRL Host input field? The address of the LTE or the public one?
Basically, I don’t know how to adapt the tutorial to my specific problem.
He adds in the tutorial the public IP to ether1. I have LTE1 with a dynamic ip. Where do I add the public IP? Should I add it somewhere?