wireguard as VPN client

Hi,
I´m a new user with MKT and i´m starting with hAP Lite. Now it’s working properly but i’ve got a problem setting up it as wireguard VPN client. I’ve got a wireguard server working correctly on a Debian 10 server. The clients can connect and works perfectly. Now, i’m trying to configure the Mikrotik as VPN client but i cann’t find where i must to put the conf file to upload to Mikrotik. Also i’ve tried to add it manually on the Mikrotik but it asks for an interface. wht i’m doing wrong?

Mikrotik’s OS version is 7.2.3

Regards from Spain.

https://forum.mikrotik.com/viewtopic.php?t=182340
http://forum.mikrotik.com/t/route-internet-traffic-mt-via-wireguard-tunnel-through-mt-wg-peer/154825/1

Hola txpiron!

Can you draw a network diagram, it is unclear the relationship of the debian server to the MT device.

Do you wish the clients on the MT device to be able to reach devices connected to the debian server?

Do you wish the clients on the MT device to be able to use the internet via the debian server.

IN terms of Wireguard settings.
The information you need from the debian server to put in Mikrotik settings.
a. public IP = endpoint IP (to put on peer settings)
b. listening port on the debian server (to put on peer settings)
c. public key from the debian server ( to put on peer settings)

The Debian Server device will need
a. public key generated by the MT wireguard settings
b. The IP address of the MT wireguard interface

What is the allowed IP or allowed IPs you have put on Debian Server Peer settings?

Hello again,
The Debian server runs the wireguard server role. It’s working fine because i can connect with it using mi laptop or mi mobile phone. I want that the role of wireguard client in order to establish a PTP connection. Y fill the Wireguard menu in the Mikrotik with the same data as i used in mi laptop connection:

[Interface]
PrivateKey = PrivateKey
ListenPort = 47968
Address = 10.8.8.3/24
DNS = 192.168.81.240, 192.168.81.241
MTU = 1280

[Peer]
PublicKey = PublicKey
PresharedKey = PresharedKey
AllowedIPs = 0.0.0.0/1, 128.0.0.0/1, ::/1, 8000::/1
Endpoint = domain:port
PersistentKeepalive = 25

Those data are in the wireguard.conf that i’ve imported in my laptop or my phone, but mikrotik can notconnect

A MT device is not a laptop so its not going to be exactly the same.
The links provided by the other poster are sufficient for a working config.

Suggest providing config of MT
/export file=anynameyouwish