Community discussions

MikroTik App
 
Eloy55
just joined
Topic Author
Posts: 5
Joined: Wed Nov 13, 2019 7:18 pm

OSPF over OPENVPN tunnels

Tue Apr 27, 2021 3:14 pm

Hi, I'm new to OSPF in Mikrotik and I'm trying to get it working over a OPENVPN site to site tunnel. For some reason, there is no interface running OSPF even when the tunnel is running correctly. Router1 (server) is running RouterOS 6.48.1 and Router2 (client) is running 6.48.2. Here is the configuration of both sides:

--------------------------------------------------------------------------------------

OPENVPN - Router 1:
/interface ovpn-server server set auth=sha1 certificate=SERVER cipher=aes256 default-profile=ovpn enabled=yes netmask=32 require-client-certificate=yes
ppp secret add local-address=10.1.1.1 name=S2S password="********" profile=ovpn remote-address=10.1.1.2 service=ovpn

OPENVPN - Router 2:
/interface ovpn-client add certificate=cert_blabla.crt_0 cipher=aes256 connect-to=Router1 cloud mac-address=FE:66:F1:4F:59:21 name=S2S password="****" profile=default-encryption \
user=S2S

--------------------------------------------------------------------------------------

OpenVPN is working fine with static routing. Now, for OSPF:

--------------------------------------------------------------------------------------

OSPF - Router 1:

/interface bridge add name=loopback

/ip address
add address=192.168.3.1/24 interface=ether5 network=192.168.3.0
add address=192.168.11.1/24 interface=ether4 network=192.168.11.0
add address=10.255.255.1 interface=loopback network=10.255.255.1

/routing ospf instance
set [ find default=yes ] redistribute-connected=as-type-1 redistribute-static=as-type-1 router-id=10.255.255.1
/routing ospf network
add area=backbone network=192.168.3.0/24
add area=backbone network=192.168.11.0/24

OSPF - Router 2:

/interface bridge add name=loopback

/ip address
add address=192.168.1.1/24 interface=ether5 network=192.168.1.0
add address=10.255.255.2 interface=loopback network=10.255.255.2


/routing ospf instance
set [ find default=yes ] redistribute-connected=as-type-1 router-id=10.255.255.2
/routing ospf network
add area=backbone network=192.168.1.0/24

Am I missing something? Please let me know if I should give more configuration info.

Thanks in advance.

Regards
 
passw0rd
just joined
Posts: 5
Joined: Fri Feb 22, 2019 12:31 pm

Re: OSPF over OPENVPN tunnels

Fri Sep 03, 2021 9:02 am

loopback address is not match with the defined OSPF networks.

Who is online

Users browsing this forum: No registered users and 17 guests