Is it possible to use the same key with multiple remote peers? If I have 10 connections I need to make, for instance, can I just distribute the router1 public key? Below is my current config; I am unable to get L2TP connected with this configuration.
Router 01:
/ip ipsec proposal
set [ find default=yes ] auth-algorithms=sha1 disabled=no enc-algorithms=3des,aes-256 lifetime=0s name=default pfs-group=modp1024
/ip ipsec peer
add address=0.0.0.0/0 auth-method=rsa-key dh-group=modp1024 disabled=no dpd-interval=disable-dpd dpd-maximum-failures=5 enc-algorithm=3des exchange-mode=main-l2tp generate-policy=yes hash-algorithm=md5 key=default_2048.priv lifetime=1d my-id-user-fqdn="" nat-traversal=yes port=500 remote-key=remote_2048.pub send-initial-contact=no
Router 02:
/ip ipsec proposal
set [ find default=yes ] enc-algorithms=3des,aes-256-cbc
/ip ipsec peer
add address=1.1.1.1/32 auth-method=rsa-key dpd-interval=disable-dpd enc-algorithm=3des exchange-mode=main hash-algorithm=md5 key= remote_2048.priv remote-key=default_2048.pub
/ip ipsec policy
add dst-address=1.1.1.1/32 sa-dst-address=1.1.1.1 sa-src-address=2.2.2.2 src-address=2.2.2.2/32
This actually seems to connect, as I get an established remote peer. L2TP does not, however. Below is all I see from the L2TP log:
dec/08 21:10:32 l2tp,debug,packet l2tp =>: sent control message to 1.1.1.1:1701
dec/08 21:10:32 l2tp,debug,packet l2tp =>: tunnel-id=0, session-id=0, ns=0, nr=0
dec/08 21:10:32 l2tp,debug,packet l2tp =>: (M) Message-Type=SCCRQ
dec/08 21:10:32 l2tp,debug,packet l2tp =>: (M) Protocol-Version=0x01:00
dec/08 21:10:32 l2tp,debug,packet l2tp =>: (M) Framing-Capabilities=0x1
dec/08 21:10:32 l2tp,debug,packet l2tp =>: (M) Bearer-Capabilities=0x0
dec/08 21:10:32 l2tp,debug,packet l2tp =>: Firmware-Revision=0x1
dec/08 21:10:32 l2tp,debug,packet l2tp =>: (M) Host-Name="remote"
dec/08 21:10:32 l2tp,debug,packet l2tp =>: Vendor-Name="MikroTik"
dec/08 21:10:32 l2tp,debug,packet l2tp =>: (M) Assigned-Tunnel-ID=4843
dec/08 21:10:32 l2tp,debug,packet l2tp =>: (M) Receive-Window-Size=4
dec/08 21:10:40 l2tp,debug l2tp =>: tunnel 4843 received no replies, disconnecting
dec/08 21:10:40 l2tp,debug l2tp =>: tunnel 4843 entering state: dead
dec/08 21:10:40 l2tp,debug l2tp =>: session 1 entering state: dead
The relevant firewall rules:
2 chain=input action=jump jump-target=filter_105 dst-address=2.2.2.2 in-interface=pppoe-centurylink
3 chain=filter_105 action=accept protocol=ipsec-esp
4 chain=filter_105 action=accept protocol=udp dst-port=4500
5 chain=filter_105 action=accept protocol=udp dst-port=1701
6 chain=filter_105 action=accept protocol=udp dst-port=500
7 chain=filter_105 action=accept protocol=icmp
8 chain=filter_105 action=accept connection-state=established
9 chain=filter_105 action=accept connection-state=related
10 chain=filter_105 action=drop
On the other side, this is what I see in the logs:
21:15:39 l2tp,debug,packet L2TP =>: rcvd control message from 2.2.2.2:1701
21:15:39 l2tp,debug,packet L2TP =>: tunnel-id=0, session-id=0, ns=0, nr=0
21:15:39 l2tp,debug,packet L2TP =>: (M) Message-Type=SCCRQ
21:15:39 l2tp,debug,packet L2TP =>: (M) Protocol-Version=0x01:00
21:15:39 l2tp,debug,packet L2TP =>: (M) Framing-Capabilities=0x1
21:15:39 l2tp,debug,packet L2TP =>: (M) Bearer-Capabilities=0x0
21:15:39 l2tp,debug,packet L2TP =>: Firmware-Revision=0x1
21:15:39 l2tp,debug,packet L2TP =>: (M) Host-Name="remote"
21:15:39 l2tp,debug,packet L2TP =>: Vendor-Name="MikroTik"
21:15:39 l2tp,debug,packet L2TP =>: (M) Assigned-Tunnel-ID=4852
21:15:39 l2tp,debug,packet L2TP =>: (M) Receive-Window-Size=4
21:15:39 l2tp,debug,packet L2TP =>: sent control message (ack) to 2.2.2.2:1701
21:15:39 l2tp,debug,packet L2TP =>: tunnel-id=4852, session-id=0, ns=1, nr=1
21:15:39 l2tp,debug L2TP =>: tunnel 14319 received no replies, disconnecting
21:15:39 l2tp,debug L2TP =>: tunnel 14319 entering state: dead
Any ideas? In case you're wondering, the goals is to be able to use RSA keys, get L2TP/IPSEC working between many peers and a central router, and distribute routes using OSPF between them. This is the only piece I'm stuck on; I had it working using PSK, can't seem to now that I'm not.