Currently I setup port forwarding for a nodejs server such that all http requests (using tcp protocol) get redirected from port 80 to 3000, and all https requests (using tcp) get redirected from port 443 to 8080.
The nodejs application also needs to support a websocket server (wss) currently running on port 7071. But the problem is both https and wss use tcp protocol and the default port for both of them is 443. I also can't use the same destination port (8080) for both https server and websocket server.
So, is there any way to distinguish between https and wss requests using firewalld so that I can redirect https requests to 8080 and wss requests to 7071?