For this one, I have the VPN connection, accessible from any address, on 192.168.1.80.
Code: Select all
/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
Code: Select all
/interface l2tp-server add disabled=no name=l2tp-default user=uname
Code: Select all
/interface l2tp-server server set authentication=pap,chap,mschap1,mschap2 default-profile=default-encryptionenabled=yes max-mru=1460 max-mtu=1460 mrru=disabled
Code: Select all
/ip ipsec proposal set default auth-algorithms=sha1 disabled=no enc-algorithmsdes lifetime=30m name=default pfs-group=modp1024
Code: Select all
/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
Code: Select all
/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