Hello,
I just started my adventure with RouterOS. I have a RB2011UiAS-2HnD with 6.7 version of RouterOS.
In the headquarters of my company we have a Cisco 3800 with IOS Version 12.4(9)T7. I’m trying to set up a VPN connection with IPSEC and OSPF routing protocol used between this devices. I’m not sure if this is possible and if so, please help and show me an error in my configuration.
#Tunnel configuration in Cisco
interface Tunnel0
ip address 172.17.254.254 255.255.255.0
no ip redirects
ip mtu 1440
ip nat inside
ip virtual-reassembly
ip ospf authentication-key 7 ****************
ip ospf network broadcast
ip ospf priority 20
qos pre-classify
tunnel source GigabitEthernet0/1
tunnel mode gre multipoint
tunnel key 1000
tunnel protection ipsec profile VPN-ST
interface Loopback0
ip address 172.17.252.254 255.255.255.255
interface GigabitEthernet0/0
description LAN
ip address 10.0.0.2 255.255.255.0
ip nat inside
ip virtual-reassembly
ip route-cache flow
service-policy output LAN_shape
interface GigabitEthernet0/1
description WAN
ip address PUBLIC_IP_ADDRESS_headquarters 255.255.255.224
ip nat outside
ip virtual-reassembly
crypto map Mapa_enc
#Cisco OSPF
router ospf 15
router-id 10.0.0.0
log-adjacency-changes
passive-interface GigabitEthernet0/1
passive-interface Vlan3
passive-interface Vlan4
network 10.0.0.0 0.0.0.255 area 0
network 10.1.0.0 0.0.0.255 area 1
network 172.17.252.254 0.0.0.0 area 0
network 172.17.254.0 0.0.0.255 area 0
#MikroTiK configuration
/ip address
add address=PUBLIC_IP_ADDRESS_OF_MY_LOCATION/30 interface=WAN network=MODEM_ADDRESS_OF_MY_LOCATION
add address=192.168.191.1/24 interface=lan_port_bridge network=192.168.191.0
add address=172.17.254.191/24 interface=GRE_TUNNEL_NAME network=172.17.254.0
/ip routes
DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 MODEM_ADDRESS 1
1 ADC NETWORK_ADDRESS/30 MY_PUBLIC_ADDRESS WAN 0
2 ADC 172.17.254.0/24 172.17.254.191 GRE_TUNNEL_NAME 0
3 ADC 192.168.191.0/24 192.168.191.1 lan_port_bridge 0
/interface gre
add mtu=1440 name=Companyheadquarters remote-address=PUBLIC_IP_ADDRESS_headquarters
/ip ipsec proposal
set [ find default=yes ] auth-algorithms=md5 enc-algorithms=3des lifetime=8h
/ip ipsec peer
add address=PUBLIC_IP_ADDRESS_headquarters/32 dpd-interval=15s enc-algorithm=3des hash-algorithm=md5 lifetime=8h my-id-user-fqdn=PUBLIC_IP_ADDRESS_OF_MY_LOCATION secret=********
/ip ipsec policy
add dst-address=10.0.0.0/24 sa-dst-address=PUBLIC_IP_ADDRESS_headquarters sa-src-address=PUBLIC_IP_ADDRESS_OF_MY_LOCATION src-address=192.168.191.0/24 tunnel=yes
add dst-address=10.1.0.0/24 sa-dst-address=PUBLIC_IP_ADDRESS_headquarters sa-src-address=PUBLIC_IP_ADDRESS_OF_MY_LOCATION src-address=192.168.191.0/24 tunnel=yes
/routing ospf instance
set [ find default=yes ] router-id=192.168.191.0
/routing ospf interface
add authentication=simple authentication-key=******* interface=GRE_TUNNEL_NAME network-type=broadcast priority=0
/routing ospf network
add area=backbone network=192.168.191.0/24
add area=backbone network=172.17.254.0/24
VPN Tunnel with IPSEC looks like it works, I can ping local hosts on both sides (10.0.0.0/24 to 192.168.191.0/24 and vice versa). OSPF neighbors does not show any hosts in both side and does not receive any information. I know that the configuration may have been wrong on vpn connections stage, so please let me know if something looks wrong. Please help, any information would be very valuable for me. Thank you very much.