Issues with pass-though

I hope someone can help me.

I am having an issue with info pass through for Unifi and Teamviewer, the system design is shown below. The firewall rules on the L009UiGS-RM are disabled.

I am able to see that Teamviewer is online, when I try to login to the Windows 10 machine it gives me an authorization error, if I move the machine before the L009UiGS-RM it works perfectly.

Are there any suggestions on how to solve this issue?

Thank you in advance.
Draw Map.png