I’m trying to set up a “road warrior” style VPN, so I can access devices I have at home on LAN (file share, remote desktop, etc.) when away from home without opening any of these up to the big scary Internet. After setting it up, and trying to test it, I am able to connect successfully using my iPhone 6s or Android 7.0 Tablet, or Windows 7 desktop (it has no WiFi, so I can’t tether it) over LAN. However, when I try to test using an outside connection, I have a perplexing result:
iPhone 6s over cellular – failure
Android 7.0 tablet connected via WiFi to iPhone 6s Personal Hotspot (over cellular) – successful
Crappy chinese Windows 10 laptop – failure
I tried adding debug/ipsec/l2tp to my logging and see many messages (including signs of connection attempts and negotiation), but nothing that sticks out as an error or obvious path to fix. My best guess is this had something to do with encryption or authentication, but there are many encryption/authentication options in several places (IP/IPSec/Peers, PPP/L2TPServer/Authentication, PPP/Profiles/Default) so it’s too many for me to feel comfortable flipping and trying at random.
For my configuration, I have a new RB951G-2HnD running RouterOS 6.34.6 (bugfix). It is connected directly to the Internet so its WAN IP is a public IP. There are no other gateways/switches/etc. on the network. I did nothing for my initial setup that wasn’t in “Quick Set” (set up wireless, enabled upnp, changed the local IPs).
I then followed the instructions here to set up L2TP: http://wiki.mikrotik.com/wiki/Manual:Interface/L2TP#L2TP.2FIpSec_setup
I then moved the two firewall rules created at the end of the instructions above to 3/4, above the entry that says “drop all from WAN”.
My router ip is *.1, LAN DHCP range is *.100-199, PPP profile local address is *.200, and PPP profile remote address uses a pool from *.210-.244. All these settings seem to be working as intended when connecting to the VPN over the LAN.
My iOS configuration is type: L2TP with the correct username/password/shared secret. Like I said, it works for the Android tablet when tethered to the same connection.
If anyone could assist or point me in the right direction it would be much appreciated. I have read everything I can find on the Wiki or Google but haven’t found anything guiding me toward the solution.
I am totally open to using a completely different setup if it would be more appropriate. I originally set up a PPTP connection successfully using the easy wizard on the Quick Set page, but PPTP is being deprecated from iOS/macOS. I just it to work with all major devices (Windows 7+/Android/iOS/macOS). Ideally out of the box but I don’t have anything against using a separate app. My use case is pretty simple so I really just need something simple without a kamikaze level of insecurity.