<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Installing Dynatrace Cluster on Hardened CIS Image (Ubuntu 22.04) in Dynatrace Managed Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Installing-Dynatrace-cluster-on-hardened-CIS-image-Ubuntu-22-04/m-p/200737#M2240</link>
    <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/51035"&gt;@Ardhi&lt;/a&gt;&amp;nbsp;yes, in your case it seems perfectly fine.&lt;BR /&gt;&lt;BR /&gt;First you should check if you can connect locally to the cluster on the node:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# curl -v https://localhost -k&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;If this works, then most likely there is a firewall or something else between your browser and the cluster node preventing connections.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Dec 2022 08:34:17 GMT</pubDate>
    <dc:creator>Julius_Loman</dc:creator>
    <dc:date>2022-12-19T08:34:17Z</dc:date>
    <item>
      <title>Installing Dynatrace cluster on hardened CIS image (Ubuntu 22.04)</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Installing-Dynatrace-cluster-on-hardened-CIS-image-Ubuntu-22-04/m-p/200639#M2235</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;We're installing Dynatrace Managed on customer premises but the Nginx service couldn't listen to port 443.&lt;BR /&gt;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).&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;We have also pam_faillock(sudo_account):unknown option:unlock error during the installation. Not sure if this is related.&lt;BR /&gt;&lt;BR /&gt;Please advise.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 11:15:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Installing-Dynatrace-cluster-on-hardened-CIS-image-Ubuntu-22-04/m-p/200639#M2235</guid>
      <dc:creator>Ardhi</dc:creator>
      <dc:date>2023-06-19T11:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Dynatrace Cluster on Hardened CIS Image (Ubuntu 22.04)</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Installing-Dynatrace-cluster-on-hardened-CIS-image-Ubuntu-22-04/m-p/200667#M2236</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/51035"&gt;@Ardhi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You're struggling to set it up because the "443" port is a "privileged port" in Linux operating systems (pam-related issues)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;(source: &lt;A href="https://www.w3.org/Daemon/User/Installation/PrivilegedPorts.html" target="_blank"&gt;https://www.w3.org/Daemon/User/Installation/PrivilegedPorts.html&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that's needed, then:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;setcap 'cap_net_bind_service=+ep' /path/to/dynatrace-managed
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And then anytime&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;dynatrace-managed&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is executed thereafter, it will have the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;CAP_NET_BIND_SERVICE&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;capability.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;setcap&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Is in the Debian package&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;libcap2-bin&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;Now for the caveats - You'll need at least a 2.6.24 kernel&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Resources:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://www.kernel.org/doc/man-pages/online/pages/man7/capabilities.7.html" rel="noreferrer" target="_blank"&gt;capabilities(7) man page&lt;/A&gt;. 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.&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://man7.org/linux/man-pages/man8/setcap.8.html" rel="noreferrer" target="_blank"&gt;setcap man page&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://www.wensley.org.uk/info#setpcaps" rel="noreferrer" target="_blank"&gt;"Bind ports below 1024 without root on GNU/Linux"&lt;/A&gt;: The document that first pointed me towards&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;setcap&lt;/CODE&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Note:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://www.redhat.com/promo/summit/2010/presentations/summit/whats-next/wed/sgrubb-2-rhel6-security/RHEL6-Security-Overview-2010-Final.pdf" rel="noreferrer" target="_blank"&gt;RHEL first added this in v6&lt;/A&gt;. Not sure when Ubuntu has added this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 08:56:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Installing-Dynatrace-cluster-on-hardened-CIS-image-Ubuntu-22-04/m-p/200667#M2236</guid>
      <dc:creator>Radoslaw_Szulgo</dc:creator>
      <dc:date>2022-12-16T08:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Dynatrace Cluster on Hardened CIS Image (Ubuntu 22.04)</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Installing-Dynatrace-cluster-on-hardened-CIS-image-Ubuntu-22-04/m-p/200726#M2237</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-12-19 at 10.34.34.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/9067iF92B610081C49036/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-12-19 at 10.34.34.png" alt="Screenshot 2022-12-19 at 10.34.34.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/25371"&gt;@Radoslaw_Szulgo&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thank you for the answer,&lt;BR /&gt;I put the setcap command and reinstalled but still not listening to 443 ...&lt;BR /&gt;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.&lt;/P&gt;&lt;P&gt;EDIT: can connect to outgoing mcsvc.dynatrace.com, so this is not an issue&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 06:19:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Installing-Dynatrace-cluster-on-hardened-CIS-image-Ubuntu-22-04/m-p/200726#M2237</guid>
      <dc:creator>Ardhi</dc:creator>
      <dc:date>2022-12-19T06:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Dynatrace Cluster on Hardened CIS Image (Ubuntu 22.04)</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Installing-Dynatrace-cluster-on-hardened-CIS-image-Ubuntu-22-04/m-p/200730#M2238</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/51035"&gt;@Ardhi&lt;/a&gt;&amp;nbsp;The NGINX does not listen on the 443/tcp for the reasons above, but there is iptables redirect for that purpose:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# ss -alt '( sport = 443 )'
State                 Recv-Q                 Send-Q                                 Local Address:Port                                 Peer Address:Port                 Process                 

# ss -alpt '( sport = :8022 )'
State                  Recv-Q                 Send-Q                                 Local Address:Port                                 Peer Address:Port                Process                 
LISTEN                 0                      511                                          0.0.0.0:8022                                      0.0.0.0:*                    users:(("nginx",pid=1510320,fd=7),("nginx",pid=1510319,fd=7),("nginx",pid=1510318,fd=7),("nginx",pid=1510317,fd=7),("nginx",pid=1510316,fd=7))

# iptables -t nat -L PREROUTING
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination         
REDIRECT   tcp  --  anywhere             anywhere             ADDRTYPE match dst-type LOCAL tcp dpt:https redir ports 8022&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 07:27:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Installing-Dynatrace-cluster-on-hardened-CIS-image-Ubuntu-22-04/m-p/200730#M2238</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2022-12-19T07:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Dynatrace Cluster on Hardened CIS Image (Ubuntu 22.04)</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Installing-Dynatrace-cluster-on-hardened-CIS-image-Ubuntu-22-04/m-p/200733#M2239</link>
      <description>&lt;P&gt;sorry can you elaborate? are you implying we don't have to listen to port 443?&lt;BR /&gt;here's attached&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-12-19 at 14.55.28.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/9068i990E7CEC8060191C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-12-19 at 14.55.28.png" alt="Screenshot 2022-12-19 at 14.55.28.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P data-unlink="true"&gt;my ports&lt;BR /&gt;Because I cannot open https://&amp;lt;IP &amp;nbsp;address&amp;gt; / port 443 of the server in the browser&lt;BR /&gt;&lt;BR /&gt;EDIT: now I can access after stopping nftables (checking from CIS list), not sure if this is related&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 11:48:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Installing-Dynatrace-cluster-on-hardened-CIS-image-Ubuntu-22-04/m-p/200733#M2239</guid>
      <dc:creator>Ardhi</dc:creator>
      <dc:date>2025-03-19T11:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Dynatrace Cluster on Hardened CIS Image (Ubuntu 22.04)</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Installing-Dynatrace-cluster-on-hardened-CIS-image-Ubuntu-22-04/m-p/200737#M2240</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/51035"&gt;@Ardhi&lt;/a&gt;&amp;nbsp;yes, in your case it seems perfectly fine.&lt;BR /&gt;&lt;BR /&gt;First you should check if you can connect locally to the cluster on the node:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# curl -v https://localhost -k&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;If this works, then most likely there is a firewall or something else between your browser and the cluster node preventing connections.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 08:34:17 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Installing-Dynatrace-cluster-on-hardened-CIS-image-Ubuntu-22-04/m-p/200737#M2240</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2022-12-19T08:34:17Z</dc:date>
    </item>
  </channel>
</rss>

