Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I know how REJECT and DROP chain works. But, as I read here REJECT vs DROP when using iptables, user Dagelf said that the server still replies with TCP SYN/ACK.

Does the scanner knows that a packet is dropped when the firewall is using DROP?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

If you reject the packet, you reply to the incoming SYN with a RST packet, so the scanner knows the port is closed (via reject, or because no service is running on that port).

If you drop the packets, the scanner waits, and after some time (timeout), it assumes the packets have been dropped (although, they may be lost in transit, or the machine on the far end could be down, or anything else could happen, that would trigger a no-reply scenario).

share|improve this answer
    
Basically, if there is no open port, the scanner would not make a difference between a server that is offline and a server that is using DROP on all ports? –  machineaddict Apr 16 at 11:33
    
Exactly (if all ports were "closed" by DROPping the packets). That's why some scanners (eg. nmap), first do a ping test (if not disabled with -P0) –  mulaz Apr 16 at 11:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.