Help with L2TP/IPSEC VPN With PSK

I’m trying to replicate an android VPN connection on the Mikrotik.

On Android, I just setup a VPN using the builtin L2TP/IPSec VPN with PSK. Works great. Uses a username & password and pre-shared key.

I dont see any settings however on the Mikrotik for IPsec Pre-shared key?
Tried looking around the web can’t really find anything.

http://forum.mikrotik.com/viewtopic.php?t=57547

Is this what you’re looking for?

So far this looks promising.

Still fails but I presume now it’s something to do with the settings. I’ll have to find out what settings android uses.

Although you could probably use just “auth-method=pre-shared-key” instead of -xauth

I need the xauth as it’s a username, password and pre-shared key.