Following the wiki post “L2TP + IPSEC between Mikrotik router and a PC”, I attempted to set up my own VPN server. When I add the IPsec policy, my x86 router running 5.0 RC7 loses all of its connections. To remedy this, I used the console to disable the policy, then all connections were restored on my LAN. Here is some information on my setup. If more info is needed, just let me know. Thanks!
For this one, I have the VPN connection, accessible from any address, on 192.168.1.80.
/ppp secret add caller-id="" comment="VPN" disabled=no limit-bytes-in=0 limit-bytes-out=0 localaddress=192.168.1.80 name=uname password=blah profile=default remote-address=0.0.0.0 routes="" service=l2tp
/interface l2tp-server add disabled=no name=l2tp-default user=uname
/interface l2tp-server server set authentication=pap,chap,mschap1,mschap2 default-profile=default-encryptionenabled=yes max-mru=1460 max-mtu=1460 mrru=disabled
/ip ipsec proposal set default auth-algorithms=sha1 disabled=no enc-algorithmsdes lifetime=30m name=default pfs-group=modp1024
Client, assigned 192.168.1.80, from any address can access all network resources.
/ip ipsec policy add action=encrypt disabled=no dst-address=192.168.1.0/24:any ipsec-protocols=esp level=require priority=0 proposal=default protocol=all sa-dst-address=0.0.0.0 sa-src-address=192.168.1.80 src-address=192.168.1.0/24:any tunnel=yes
Again, client can connect from any address.
/ip ipsec peer add address=0.0.0.0/0:500 auth-method=pre-shared-key dh-group=modp1024 disabled=no dpd-interval=disable-dpd dpd-maximum-failures=1 enc-algorithm=3des exchange-mode=main generate-policy=no hash-algorithm=sha1 lifebytes=0 lifetime=1d my-id-user-fqdn="" nat-traversal=no proposal-check=obey secret=test send-initial-contact=yes


