Вот у меня рабочий конфиг с микротиком
ipsec.conf
# basic configuration
config setup
# strictcrlpolicy=yes
# uniqueids = no
# Add connections here.
# Sample VPN connections
conn ipsec-my
ikelifetime=60m
keylife=20m
rekeymargin=3m
keyingtries=1
keyexchange=ikev1
authby=secret
ike=aes128-sha1-modp2048!
esp=aes128-sha1-modp2048!
conn myvpn
keyexchange=ikev1
left=%defaultroute
auto=add
authby=secret
type=transport
leftprotoport=17/1701
rightprotoport=17/1701
right=vpnserverip.com - # address of VPN-server
rightid=localip_of_mikrotik # without this option you will get error RightID mismatch
/etc/ipsec.secrets
%any vpnserverip.com : PSK "mykey"
/etc/xl2tpd/xl2tpd.conf
[lac myl2tp]
lns = vpnserverip.com
ppp debug = yes
pppoptfile = /etc/ppp/options.l2tpd.client
length bit = yes
/etc/ppp/options.l2tpd.client
ipcp-accept-local
ipcp-accept-remote
refuse-eap
require-mschap-v2
noccp
noauth
#idle 1800
mtu 1460
mru 1460
#defaultroute
usepeerdns
lock
persist
maxfail 10
holdoff 15 #интервал между подключениями
connect-delay 5000
name YOUR_LOGIN
password YOUR_PASSWORD
Но надо еще смотреть какие профили настроены в самом микротке