Forward packet for public IP to local IP

Hi!

I am trying to persuade a smart power switch device to send data to IP on my local network instead of sending it to some server in China.

Now the device A that is on local network (e.g. 192.168.88.10) sends UDP packet to external IP (e.g. 88.88.88.88).
I want that this packet is redirected to device B on my local network (e.g. 192.168.88.11) where I can accept it and respond back.

Can I do that with MikroTik? I was trying with srcnat firewall rules but with no luck.

You have to use dst-nat for this.
create something like

/ip firewall nat
add chain=dstnat action=dst-nat src-address=192.168.88.10 protocol=udp dst-address=88.88.88.88 dst-port=xxx to-address=192.168.88.11

But some srcnat will be required too in this case (source and destination in same subnet), specifically this kind.

Thanks Rudios, it worked.
I can now get the packets from device A to B.