We have a STUN/TURN Server (coturn) running. It will relay (over TURN) a video feed from a device on the internet to a device in a fixed IP range. (There is currently no stream in the other direction, but this might change in the future)
I know about the TURN REST API spec to generate temporary credentials to access the TURN Server. Now we would also like to restrict access in a more fine grained way: Is it possible to restrict the TURN server such that only streams TO a device in a certain IP range or streams FROM a device in this certain IP range is relayed and all other traffic would get dropped?
Is there a way to configure this in coturn or would it be possible to put a NGINX proxy in between to handle this?