Tcp port forwarding with ssl #4207
-
I'm trying to setup ngnix to use my subdomain and port 443 to forward requests to port 3000 which is a tcp port , for http ports it's easy to do this but did anyone do this before or can help me achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
Hi, the protocol involved (https/http or another) would be more relevant than the actual TCP port involved while deciding on what to set up inside NPM. You say you want NPM to listen for https traffic (TCP 443) using that subdomain of yours and for that, you will add a TLS certificate into NPM (either as an external certificate or using NPM's feature to request a new certificate). That destination host/app/service which is listening on TCP 3000, is it using http or https? |
Beta Was this translation helpful? Give feedback.
You would use a stream host only for non http/https traffic, as far as I know.
(That's why I began mentioning the protocol in use is more relevant)
A couple of examples I have in my environment:
--> traffic forwarded to a host running https on TCP 8443
--> traffic forwarded to the NPM container's own web gui port, http on TCP 81
(upon posting, realized websockets should not be turned on here, gone now)
For both, it might as well have been TCP 3000 instead of what is now (in case I changed the service's port to that)
When we think just TCP it's the Transport Layer (OSI Layer4), but when we add to that the knowledge it's http/https we have the Application Layer (OSI Layer7) thrown into th…