Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way to capture packets all through internal ports

for ex: A packets from 4000 to 4001

In this case its a TCP connection and the packets will not flow out of the box pls tell me is there any way to capture those packets

share|improve this question
I tried with tcpdump with -i lo option and I could capture the localhost packets , but actually I did port forwarding using iptables command and I couldnt find those packets – abubacker Jan 4 '13 at 6:15
you can use wireshark to capture and inspect all packets. – WeloSefer Jan 4 '13 at 9:35
did my answer help? – Olivier Dulac Jun 28 '13 at 12:46

You should read this: (try for example the part with the route sending all localip to the defautl gateway (and read the warnings))

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.