Hi Guys,
I really need your help and guidance with an issue that I have when trying to connect through Wireguard to my home router with an Android 12 phone (road warrior config).
Hardware used:
Mikrotik Router: RB5009, RouterOS 7.5
Mobile terminals used: iPhone 14 Pro Max iOS with 16.03, iPad 9 with iOS 15.6, Motorola G51 with Android 12.
So long story short I have set up Wireguard on RB5009 including Firewall rules and 2 peers for the iPhone and iPad, did the config also on iPhone and iPad and everything works ok, I can connect immediately and access RB5009. When I tried to do the same thing with the Android phone ... surprize it's not working the reason as per the logs being that the handshake did not complete after 5 seconds. What I did to pinpoint where the problem is:
1. Exported the wg config from iPhone and imported the zip on the Android phone, then changed the allowed IP (iPhone was let's say 192.168.100.2, for Android I put 192.168.100.3), public key of RB5009 is obviously kept and I created another peer on the RB5009 with the public key of the Android phone generated with the wg app on the Android phone. Hit connect and the handshake is not done!
2. Created a pair of private/public keys on iPhone and used them for the configuration of the Android phone, the rest kept the same as the above, changed accordingly the public key of the Android phone peer in RB5009. Hit connect and handshake is not done!
3. At this moment I was already getting crazy, checked again the connections from iPhone and iPad everything worked. Therefore I decided to test something crazy, imported again the config from iPhone and this time I did not change anything, meaning the public/private keys and peer IP were those used on the iPhone. Hit connect and the handshake was done immediately! Everything works as if I was on the iPhone!
I'm totally lost at this moment. Do you have any idea what the hell am I missing here?