[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



> I'm confused.  My man iptables says "DROP means to drop the packet on 
&gt; the floor.&quot; <a  rel="nofollow" href="http://www.gophernet.org/articles/iptables.html";>http://www.gophernet.org/articles/iptables.html</a> has a more 
&gt; verbose explanation.  REJECT actually returns something, doesn't it? 

That's the whole point -- you have to return something if you want it to 
look &quot;normal&quot;

If you connect to a normal, unfiltered port with nothing listening on it, 
a compliant TCP/IP stack does not drop your connecting packet on the 
floor. Instead, it returns a response that lets you know there's no 
service listening on that port:

* for TCP, it returns a TCP reset

* for UDP, it returns an ICMP port unreachable

By using the &quot;-p tcp -j REJECT --reject-with tcp-reset&quot; or &quot;-p udp -j 
REJECT&quot;, your filter response is the same as an unfiltered, unbound port's 
response

That's not to say an &quot;iptables -p tcp -j REJECT --reject-with tcp-reset&quot; 
is undetectable, just that it's a lot less obvious than an &quot;iptables -p 
tcp -j DROP&quot;. Whether that's good or bad is situation-dependent and 
opinion-dependent ;-)

later,
chris


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00214" href="msg00214.html">[ale] Nmap + filtered ports</a></strong>
<ul><li><em>From:</em> nym.bnm at gmail.com (Brian MacLeod)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00076" href="msg00076.html">[ale] Nmap + filtered ports</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Christopher Fowler)</li></ul></li>
<li><strong><a name="00077" href="msg00077.html">[ale] Nmap + filtered ports</a></strong>
<ul><li><em>From:</em> jkinney at localnetsolutions.com (James P. Kinney III)</li></ul></li>
<li><strong><a name="00195" href="msg00195.html">[ale] Nmap + filtered ports</a></strong>
<ul><li><em>From:</em> transam at verysecurelinux.com (Bob Toxen)</li></ul></li>
<li><strong><a name="00206" href="msg00206.html">[ale] Nmap + filtered ports</a></strong>
<ul><li><em>From:</em> jasonday at worldnet.att.net (Jason Day)</li></ul></li>
<li><strong><a name="00207" href="msg00207.html">[ale] Nmap + filtered ports</a></strong>
<ul><li><em>From:</em> hbbs at comcast.net (Jeff Hubbs)</li></ul></li>
<li><strong><a name="00210" href="msg00210.html">[ale] Nmap + filtered ports</a></strong>
<ul><li><em>From:</em> jason.day at gmail.com (Jason Day)</li></ul></li>
<li><strong><a name="00212" href="msg00212.html">[ale] Nmap + filtered ports</a></strong>
<ul><li><em>From:</em> hbbs at comcast.net (Jeff Hubbs)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00212.html">[ale] Nmap + filtered ports</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00214.html">[ale] Nmap + filtered ports</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00212.html">[ale] Nmap + filtered ports</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00214.html">[ale] Nmap + filtered ports</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00213"><strong>Date</strong></a></li>
<li><a href="threads.html#00213"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>