We’re installing Dynatrace Managed on customer premises but the Nginx service couldn’t listen to port 443.
From the log, it seems forbidden. We could try to elevate Nginx user privileges but the concern here is the unknown implication (because it’s in the internal steps of dynatrace-managed.sh script).
Right now also Nginx binds to port 8022 and in the Nginx.conf also nowhere to be found the port 443 configurations. Checked with “check” and “status” commands of dynatrace-managed.sh, all services are ok.
We have also pam_faillock(sudo_account):unknown option:unlock error during the installation. Not sure if this is related.
You’re struggling to set it up because the “443” port is a “privileged port” in Linux operating systems (pam-related issues)
The TCP/IP port numbers below 1024 are unique because normal users can’t run servers on them. This is a security feature in that if you connect to a service on one of these ports, you can be reasonably sure that you have the real thing and not a fake that some hacker has put up for you.
That’s why by default, in Dynatrace Managed installation, Nginx listens on port :8022, and we have iptables (nftables) rules that redirect the traffic from :443 to :8022. We don’t recommend changing that configuration.
And then anytime dynatrace-managed is executed thereafter, it will have the CAP_NET_BIND_SERVICE capability. setcap Is in the Debian package libcap2-bin.
Now for the caveats - You’ll need at least a 2.6.24 kernel
Resources:
capabilities(7) man page. Read this long and hard if you’re using capabilities in a production environment. There are some really tricky details of how capabilities are inherited across exec() calls that are detailed here.
Thank you for the answer,
I put the setcap command and reinstalled but still not listening to 443 …
Just wondering, if is this the case (not listening to 443) when the server is blocked for outbound connection to Dynatrace? I just realized cannot connect to mcsvc.dynatrace.com from the server.