<?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: SNMP Traps Port unable to bind on 162 in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/SNMP-Traps-Port-unable-to-bind-on-162/m-p/255143#M5112</link>
    <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/77103"&gt;@jenny_baker211&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You have several options here:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Running ActiveGate as root. I have cases where this happens, but not the best Security option. Given you are using traps, this might have a reduced exposure, so might be an option:&lt;BR /&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/activegate-custom-installation-linux#user-service" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/activegate-custom-installation-linux#user-service&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Reroute traps to a higher port. So you don't have to change it in your network devices, redirect through port forwarding. You will have to change 162 in the Dynatrace configuration to another port, 1162 for instance:&lt;BR /&gt;sudo iptables -t nat -A PREROUTING -p udp --dport 162 -j REDIRECT --to-port 1162&lt;/LI&gt;&lt;LI&gt;You can also use setcap to permit a certain program to listen on a specific privileged port. Never tried it out with ActiveGate.&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Fri, 06 Sep 2024 11:25:44 GMT</pubDate>
    <dc:creator>AntonioSousa</dc:creator>
    <dc:date>2024-09-06T11:25:44Z</dc:date>
    <item>
      <title>SNMP Traps Port unable to bind on 162</title>
      <link>https://community.dynatrace.com/t5/Extensions/SNMP-Traps-Port-unable-to-bind-on-162/m-p/255134#M5108</link>
      <description>&lt;P&gt;I have tried setting up SNMP traps on port 162.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see the traps are hitting the Activegate instance as these are displaying in TCP dump.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The extension for SNMP traps is repeatedly displaying an error in the logs:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Failed to start listen on port::&lt;/SPAN&gt;&lt;SPAN class=""&gt;162&lt;/SPAN&gt;&lt;SPAN&gt; err: listen udp :&lt;/SPAN&gt;&lt;SPAN class=""&gt;162&lt;/SPAN&gt;&lt;SPAN&gt;: bind: permission denied&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do we need to open up port 162 on the activegate instance?&lt;/P&gt;&lt;P&gt;Can this be done in custom.properties?&lt;/P&gt;&lt;P&gt;Or is there a permissions issue using ports under 1024?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone has a workaround for this please let me know&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 10:19:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/SNMP-Traps-Port-unable-to-bind-on-162/m-p/255134#M5108</guid>
      <dc:creator>jenny_baker211</dc:creator>
      <dc:date>2024-09-06T10:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: SNMP Traps Port unable to bind on 162</title>
      <link>https://community.dynatrace.com/t5/Extensions/SNMP-Traps-Port-unable-to-bind-on-162/m-p/255135#M5109</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/77103"&gt;@jenny_baker211&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;To listen on port 162, you have to have root permission. There are some ways to escaping that, and I believe&amp;nbsp; the standard way ActiveGate is installed doesn't require additional configuration.&lt;/P&gt;&lt;P&gt;Additionally, there might be another program already listening on port 162. Run the following command to find out if that is the case:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;netstat -anp | grep 162&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 06 Sep 2024 10:42:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/SNMP-Traps-Port-unable-to-bind-on-162/m-p/255135#M5109</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2024-09-06T10:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: SNMP Traps Port unable to bind on 162</title>
      <link>https://community.dynatrace.com/t5/Extensions/SNMP-Traps-Port-unable-to-bind-on-162/m-p/255140#M5110</link>
      <description>&lt;P&gt;Hi Antonio,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply - I have tried a netstat and nothing else appears to be using this port.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like we have a specific user running activegate - is it possible to give this user permissions for port 162 - or would I need to pick a new port &amp;gt; 1024 to allow SNMP traps to be handled?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 11:04:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/SNMP-Traps-Port-unable-to-bind-on-162/m-p/255140#M5110</guid>
      <dc:creator>jenny_baker211</dc:creator>
      <dc:date>2024-09-06T11:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: SNMP Traps Port unable to bind on 162</title>
      <link>https://community.dynatrace.com/t5/Extensions/SNMP-Traps-Port-unable-to-bind-on-162/m-p/255143#M5112</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/77103"&gt;@jenny_baker211&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You have several options here:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Running ActiveGate as root. I have cases where this happens, but not the best Security option. Given you are using traps, this might have a reduced exposure, so might be an option:&lt;BR /&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/activegate-custom-installation-linux#user-service" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/activegate-custom-installation-linux#user-service&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Reroute traps to a higher port. So you don't have to change it in your network devices, redirect through port forwarding. You will have to change 162 in the Dynatrace configuration to another port, 1162 for instance:&lt;BR /&gt;sudo iptables -t nat -A PREROUTING -p udp --dport 162 -j REDIRECT --to-port 1162&lt;/LI&gt;&lt;LI&gt;You can also use setcap to permit a certain program to listen on a specific privileged port. Never tried it out with ActiveGate.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 06 Sep 2024 11:25:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/SNMP-Traps-Port-unable-to-bind-on-162/m-p/255143#M5112</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2024-09-06T11:25:44Z</dc:date>
    </item>
  </channel>
</rss>

