<?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>question Issue with iptables and SCM Agent in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-with-iptables-and-SCM-Agent/m-p/2449#M405</link>
    <description>&lt;P&gt;Alright, here's the deal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a 15 machine cluster running CDH4.4 using CM 4.6.3 on CentOS 6.2.&lt;/P&gt;&lt;P&gt;2 "master" servers running namenode and such (nn01 and nn02)&lt;/P&gt;&lt;P&gt;12 "slave" servers running datanode and such (dn01 to dn12)&lt;/P&gt;&lt;P&gt;1 manager machine running CM. (dmg01)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything has been running flawlessly for the past couple of weeks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now we need to secure the machines using the firewall. &amp;nbsp;The 2 masters and 12 slaves have this config. &amp;nbsp;The manager machine does not run the firewall.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my iptables file (replaced the actual IPs by **)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;*filter
:INPUT ACCEPT [3989:259610]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [47999:9127516]
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT&lt;BR /&gt;&lt;BR /&gt;-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT &amp;nbsp;-m comment --comment "***my machine***"&lt;BR /&gt;-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "nn01"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "nn02"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn01"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn02"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn03"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn04"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn05"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn06"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn07"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn08"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn09"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn10"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn11"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn12"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dmg01"
-A INPUT -j DROP
COMMIT&lt;/PRE&gt;&lt;P&gt;The second I start the IPTables service, all the hosts turn to RED in CM and the "last heartbeat" column is getting bigger and bigger.&lt;/P&gt;&lt;P&gt;The actual services are up and running fine but it looks like the agent is having difficulties connecting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, the machine running the CM server is not firewalled, only the datanodes and namenodes and on those, all nodes, including the CM machine, are there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no clue what's going on here, any idea? &amp;nbsp;Any specific config needed for CM Agent to run?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 08:49:16 GMT</pubDate>
    <dc:creator>AceWinner</dc:creator>
    <dc:date>2022-09-16T08:49:16Z</dc:date>
    <item>
      <title>Issue with iptables and SCM Agent</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-with-iptables-and-SCM-Agent/m-p/2449#M405</link>
      <description>&lt;P&gt;Alright, here's the deal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a 15 machine cluster running CDH4.4 using CM 4.6.3 on CentOS 6.2.&lt;/P&gt;&lt;P&gt;2 "master" servers running namenode and such (nn01 and nn02)&lt;/P&gt;&lt;P&gt;12 "slave" servers running datanode and such (dn01 to dn12)&lt;/P&gt;&lt;P&gt;1 manager machine running CM. (dmg01)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything has been running flawlessly for the past couple of weeks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now we need to secure the machines using the firewall. &amp;nbsp;The 2 masters and 12 slaves have this config. &amp;nbsp;The manager machine does not run the firewall.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my iptables file (replaced the actual IPs by **)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;*filter
:INPUT ACCEPT [3989:259610]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [47999:9127516]
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT&lt;BR /&gt;&lt;BR /&gt;-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT &amp;nbsp;-m comment --comment "***my machine***"&lt;BR /&gt;-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "nn01"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "nn02"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn01"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn02"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn03"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn04"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn05"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn06"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn07"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn08"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn09"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn10"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn11"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dn12"
-A INPUT -s **/32 -m conntrack --ctstate NEW -j ACCEPT  -m comment --comment "dmg01"
-A INPUT -j DROP
COMMIT&lt;/PRE&gt;&lt;P&gt;The second I start the IPTables service, all the hosts turn to RED in CM and the "last heartbeat" column is getting bigger and bigger.&lt;/P&gt;&lt;P&gt;The actual services are up and running fine but it looks like the agent is having difficulties connecting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, the machine running the CM server is not firewalled, only the datanodes and namenodes and on those, all nodes, including the CM machine, are there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no clue what's going on here, any idea? &amp;nbsp;Any specific config needed for CM Agent to run?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:49:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-with-iptables-and-SCM-Agent/m-p/2449#M405</guid>
      <dc:creator>AceWinner</dc:creator>
      <dc:date>2022-09-16T08:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with iptables and SCM Agent</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-with-iptables-and-SCM-Agent/m-p/2479#M406</link>
      <description>&lt;P&gt;Found the problem, turns out that the agent uses the localhost connection to do its stuff.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added a simple rule :&lt;/P&gt;&lt;P&gt;-A INPUT -s 127.0.0.1/32 -m conntrack --ctstate NEW -j ACCEPT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And it fixed the problem.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2013 15:07:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-with-iptables-and-SCM-Agent/m-p/2479#M406</guid>
      <dc:creator>AceWinner</dc:creator>
      <dc:date>2013-10-21T15:07:02Z</dc:date>
    </item>
  </channel>
</rss>

