Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a firewall with these simple rules:

iptables -A INPUT -p tcp -s --dport 6000 -j ACCEPT
iptables -A INPUT -p tcp -s --dport 6000 -j ACCEPT
iptables -A INPUT -p tcp --dport 6000 -j REJECT

Now, suppose I am using TCPDUMP like this:

tcpdump port 6000

And I have host trying to connect to port 6000.

Will/should tcpdump output some packets coming from

share|improve this question

1 Answer 1

up vote 8 down vote accepted

tcpdump uses libpcap and libpcap processes packets before they get processed by the firewall, so the answer is "yes".

share|improve this answer

Your Answer


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.