Hi,
thanks for your reply. Here it is - it is very simple:
(IPs are not real)
router 01: LAN interface IP = 192.168.2.54 WAN interface (public IP) = 214.177.176.77
router 02: LAN interface IP = 192.168.210.54 WAN interface (public IP) = 213.155.160.22
router 01 (with L2TP server) :
Create an user who will connect to the server:
/ppp secret add name=PHA2MB service=l2tp comment=“l2tp tunel” disabled=no limit-bytes-in=0 limit-bytes-out=0 local-address=214.177.176.77 remote-address=213.155.160.22 password=4444 profile=default
Then create a L2TP server interface for the created user:
/interface l2tp-server add disabled=no name=l2tp-MB user=PHA2MB
Enable the server:
/interface l2tp-server server set authentication=pap,chap,mschap1,mschap2 default-profile=default-encryption enabled=yes max-mru=1460 max-mtu=1460 mrru=disabled
Create a ipsec proposal:
/ip ipsec proposal set default auth-algorithms=sha1 disabled=no enc-algorithms=3des lifetime=30m name=default pfs-group=modp1024
Create an ipsec policy:
/ip ipsec policy add action=encrypt disabled=no comment=“ipsec tunnel policy” ipsec-protocols=esp level=require priority=0 proposal=default protocol=all dst-address=192.168.210.0/24 dst-port=any sa-dst-address=213.155.160.22 sa-src-address=214.177.176.77 src-address=192.168.2.0/23 src-port=any tunnel=yes
Create an ipsec peer:
/ip ipsec peer add address=213.155.160.22/32 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=md5 lifebytes=0 lifetime=1d nat-traversal=no proposal-check=obey send-initial-contact=yes secret=dfklas
Add route:
/ip route add comment=“ipsec tunnel route” disabled=no distance=1 dst-address=192.168.210.0/24 gateway=192.168.210.54 scope=30 target-scope=10
NAT rule
/ip firewall nat add chain=srcnat comment=“NAT LAN to LAN” src-address=192.168.2.0/23 dst-address=192.168.210.0/24 action=accept place-before=0
router 02 (with L2TP client)
Create l2tp client:
/interface l2tp-client add add-default-route=no allow=pap,chap,mschap1,mschap2 connect-to=214.177.176.77 dial-on-demand=no disabled=no max-mru=1460 max-mtu=1460 mrru=disabled name=l2tp-PHA password=4444 profile=default-encryption user=PHA2MB
rest of rules on router 2 are only IPSEC / NAT / Route rules in reversible manner to router 01
IPSEC tunnel is working and i can ping both ways from both LAN to each other. But the L2TP is not working and my head is about to blow
. I’m missing something something significant, ehh.