Hi,
I am new to the field and new with MikroTik.
I have a configuration from a cisco router, which I shall migrate to a MikroTik router.
In line with the migration there are also some changes on the ipsec tunnel security configurations.
old cisco configuration:
crypto isakmp policy 9
encr aes 256
hash sha512
authentication pre-share
group 16
!
crypto isakmp policy 10
encr aes
authentication pre-share
group 14
!
crypto isakmp policy 50
encr 3des
hash md5
authentication pre-share
crypto isakmp key address 10.0.0.56
crypto isakmp invalid-spi-recovery
!
crypto ipsec security-association lifetime seconds 86400
!
crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
mode tunnel
crypto ipsec transform-set AES-SHA esp-aes 256 esp-sha512-hmac
mode tunnel
!
!
!
crypto map SDM_CMAP_1 1 ipsec-isakmp
description tunnel to other server
set peer 10.0.0.56
set transform-set AES-SHA
match address 100
!
!
interface FastEthernet0
no ip address
!
interface FastEthernet1
no ip address
!
interface FastEthernet2
no ip address
!
interface FastEthernet3
no ip address
!
interface FastEthernet4
ip address 192.168.55.156 255.255.255.0
duplex auto
speed auto
crypto map SDM_CMAP_1
!
interface Vlan1
description subnet test.server
ip address 172.16.75.1 255.255.255.0
no ip redirects
ip tcp adjust-mss 1452
!
no ip forward-protocol nd
no ip http server
no ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 192.168.55.10
ip route 172.16.75.0 255.255.192.0 172.16.75.10
!
new MikroTik confugration:
model = RB750Gr3
/interface bridge
add name=bridge1
/interface vlan
add interface=bridge1 name=SVI-vlan vlan-id=1
/interface list
add name=WAN
add name=LAN
/interface lte apn
set [ find default=yes ] add-default-route=no ip-type=ipv4 use-network-apn=no \use-peer-dns=no
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip ipsec policy group
add name=test_group
/ip ipsec profile
set [ find default=yes ] dpd-interval=2m dpd-maximum-failures=5
add dh-group=ecp384,ecp521 enc-algorithm=aes-256 hash-algorithm=sha512 lifetime=8h
name=ipsec_test prf-algorithm=sha512
/ip ipsec peer
add address=10.0.0.56/32 comment="ipsec_tunnel" exchange-mode=
ike2 name=ipsec_other_server profile=ipsec_test
/ip ipsec proposal
add auth-algorithms="" enc-algorithms=aes-256-gcm lifetime=1h name=
IKEv2-proposal pfs-group=ecp521
/ip smb users
set [ find default=yes ] disabled=yes
/routing bgp template
set default disabled=no output.network=bgp-networks
/routing ospf instance
add disabled=no name=default-v2
/routing ospf area
add disabled=yes instance=default-v2 name=backbone-v2
/snmp community
set [ find default=yes ] encryption-protocol=AES name=mikrotik_snmp
/interface bridge port
add bridge=bridge1 interface=ether4
add bridge=bridge1 interface=ether5
/interface bridge vlan
add bridge=bridge1 tagged=bridge1 untagged=ether4,ether5 vlan-ids=1
/interface l2tp-server server
set default-profile=default enabled=yes use-ipsec=required
/interface list member
add interface=ether4 list=LAN
add interface=ether1 list=WAN
add interface=ether2 list=LAN
add interface=ether3 list=LAN
add interface=ether5 list=LAN
/ip address
add address=192.168.55.156/24 interface=ether4 network=192.168.55.0
add address=172.16.75.1/24 interface=interface=SVI-vlan network=172.16.75.0
/ip dns
set servers=1.1.1.1,8.8.8.8
/ip firewall filter
add action=accept chain=input port=500,4500 protocol=udp
add action=accept chain=forward connection-state=established,related dst-address=
172.16.30.0/24 src-address=172.16.75.0/24
add action=accept chain=input protocol=ipsec-esp
/ip firewall nat
add action=accept chain=srcnat dst-address=172.16.30.0/24 src-address=172.16.75.0/24
/ip ipsec identity
add peer=ipsec_other_server policy-template-group=test_group
/ip ipsec policy
add dst-address=172.16.30.0/24 peer=ipsec_other_server proposal=IKEv2-proposal
src-address=172.16.75.0/24 tunnel=yes
/ip route
add disabled=no dst-address=0.0.0.0/0 gateway=192.168.55.10 routing-table=main
add disabled=no distance=1 dst-address=172.16.75.0/18 gateway=172.16.75.10
routing-table=main scope=30 target-scope=10
/ip service
set www disabled=yes
/ipv6 nd
set [ find default=yes ] advertise-mac-address=no disabled=yes
/routing bfd configuration
add disabled=yes interfaces=all min-rx=200ms min-tx=200ms multiplier=5
To test my new MikroTik configuration I used three MikroTik routers (one for each ipsec tunnel endpoint and one between them). The ipsec tunnel forms and is stable, but I have issues with the communication through the tunnel. I have a client on each side of the tunnel, but I cannot reach anything.
Nothing worked so far. Could someone give me a hint or some advice on how I can implement this.
Thanks!
