Mangle and Port AnyDesk (Remote Dekstop) - MikroTik Script RouterOS

AnyDesk is the ultimate remote access app for Android-giving you a truly mobile solution to remote desktop connectivity and remote control via android devices. And it’s free for private use! Enjoy seamless connectivity in any setting, for any application. Establish remote desktop links with your office. Use AnyDesk to administer external support for customers.

Port forward AnyDesk:
TCP/UDP: 6568,7070/6568,7070


/ip firewall mangle
add action=mark-connection chain=prerouting dst-port="6568,7070" new-connection-mark=conn-AnyDesk protocol=tcp
add action=mark-connection chain=prerouting dst-port="6568,7070" new-connection-mark=conn-AnyDesk protocol=udp
add action=mark-packet chain=prerouting connection-mark=conn-AnyDesk new-packet-mark=AnyDesk_pkt-up passthrough=no src-address=192.168.1.0/24
add action=mark-packet chain=prerouting connection-mark=conn-AnyDesk dst-address=192.168.1.0/24 new-packet-mark=AnyDesk_pkt-down passthrough=no
Credit: www.o-om.com