Here you can find examples how to set up ipsec http://wiki.mikrotik.com/wiki/Manual:IP/IPsec#Application_Examples