<?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: iptables is blocking rndc in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/iptables-is-blocking-rndc/m-p/3034192#M5865</link>
    <description>&lt;BR /&gt; Hi,&lt;BR /&gt;&lt;BR /&gt;did you try: ntsysv  ??</description>
    <pubDate>Sat, 26 Jul 2003 05:12:43 GMT</pubDate>
    <dc:creator>Khalid A. Al-Tayaran</dc:creator>
    <dc:date>2003-07-26T05:12:43Z</dc:date>
    <item>
      <title>iptables is blocking rndc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-is-blocking-rndc/m-p/3034191#M5864</link>
      <description>Hi,&lt;BR /&gt;I'm having some problems configuring iptables on my name server.&lt;BR /&gt;I have bind 9.2.1 on RedHat 8 with iptables 1.2.6a.&lt;BR /&gt;&lt;BR /&gt;I recently tried to configure iptables to allow only ssh and bind to come through on the INPUT. I have destination port 22 and 53 open on both tcp and udp. I also have tcp port 953 open for rndc.&lt;BR /&gt;I then have the default policy for INPUT set to DROP.&lt;BR /&gt;I have no rules set in either OUTPUT or FORWARD and they both have a default policy of ACCEPT.&lt;BR /&gt;&lt;BR /&gt;When I try to use rndc, it tries to connect but then times out after a while.&lt;BR /&gt;If I change the default policy of INPUT to ACCEPT then everything works fine.&lt;BR /&gt;&lt;BR /&gt;Is there something I am missing? Is there another port I need to open.&lt;BR /&gt;rndc and bind is of course on the same machine.&lt;BR /&gt;&lt;BR /&gt;Also, when I have these settings in iptables and I try to ssh to the machine. It takes about 10 seconds before the login banner appears on screen.&lt;BR /&gt;But again if I set default policy for INPUT to ACCEPT, then all is well again...&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;Thanks in advance...&lt;BR /&gt;&lt;BR /&gt;-Travis</description>
      <pubDate>Sat, 26 Jul 2003 03:33:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-is-blocking-rndc/m-p/3034191#M5864</guid>
      <dc:creator>tpfraz</dc:creator>
      <dc:date>2003-07-26T03:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: iptables is blocking rndc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-is-blocking-rndc/m-p/3034192#M5865</link>
      <description>&lt;BR /&gt; Hi,&lt;BR /&gt;&lt;BR /&gt;did you try: ntsysv  ??</description>
      <pubDate>Sat, 26 Jul 2003 05:12:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-is-blocking-rndc/m-p/3034192#M5865</guid>
      <dc:creator>Khalid A. Al-Tayaran</dc:creator>
      <dc:date>2003-07-26T05:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: iptables is blocking rndc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-is-blocking-rndc/m-p/3034193#M5866</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It seems that you have given the iptables -A INPUT accept rule for rndc after you gave iptables default DROP rule.&lt;BR /&gt;&lt;BR /&gt;Order is important.&lt;BR /&gt;&lt;BR /&gt;Flush iptables input rules and give all the accept rules one by one ( iptables -A INPUT ) and atlast the default DROP rule.&lt;BR /&gt;&lt;BR /&gt;Also check whether rndc is running or not and if running confirm the exact port.&lt;BR /&gt;&lt;BR /&gt;#lsof -i | grep rndc&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar</description>
      <pubDate>Sat, 26 Jul 2003 05:52:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-is-blocking-rndc/m-p/3034193#M5866</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2003-07-26T05:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: iptables is blocking rndc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-is-blocking-rndc/m-p/3034194#M5867</link>
      <description>I added the default DROP policy last,&lt;BR /&gt;and I added it as a policy and not a normal rule.&lt;BR /&gt;&lt;BR /&gt;iptables -P INPUT DROP&lt;BR /&gt;&lt;BR /&gt;I don't think order matter as far as policies are concerned.&lt;BR /&gt;&lt;BR /&gt;-Travis</description>
      <pubDate>Sat, 26 Jul 2003 06:51:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-is-blocking-rndc/m-p/3034194#M5867</guid>
      <dc:creator>tpfraz</dc:creator>
      <dc:date>2003-07-26T06:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: iptables is blocking rndc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-is-blocking-rndc/m-p/3034195#M5868</link>
      <description>you should also add a rule to your INPUT chain the enable established sessions back to you:&lt;BR /&gt;add the folowing rule as your first rule in the INPUT chain&lt;BR /&gt;&lt;BR /&gt;iptables -A INPUT -p TCP -m state --state ESTABLISHED,RELATED -j ACCEPT&lt;BR /&gt;&lt;BR /&gt;iptables -A INPUT -p UDP -m state --state ESTABLISHED,RELATED -j ACCEPT&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;this one should do the trick ,all the already established and realted session will be eblae to continue the communication with your pc.</description>
      <pubDate>Sun, 27 Jul 2003 05:08:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-is-blocking-rndc/m-p/3034195#M5868</guid>
      <dc:creator>Avinoam</dc:creator>
      <dc:date>2003-07-27T05:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: iptables is blocking rndc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-is-blocking-rndc/m-p/3034196#M5869</link>
      <description>Avinoam,&lt;BR /&gt;Thank you, a perfect fix...&lt;BR /&gt;Those rules fixed both the rndc not working and the ssh login taking a long time.&lt;BR /&gt;Thanks again.&lt;BR /&gt;&lt;BR /&gt;-Travis</description>
      <pubDate>Sun, 27 Jul 2003 06:31:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-is-blocking-rndc/m-p/3034196#M5869</guid>
      <dc:creator>tpfraz</dc:creator>
      <dc:date>2003-07-27T06:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: iptables is blocking rndc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-is-blocking-rndc/m-p/3034197#M5870</link>
      <description>happy to hear that it helped :-)</description>
      <pubDate>Sun, 27 Jul 2003 06:57:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-is-blocking-rndc/m-p/3034197#M5870</guid>
      <dc:creator>Avinoam</dc:creator>
      <dc:date>2003-07-27T06:57:13Z</dc:date>
    </item>
  </channel>
</rss>

