Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there any way to capture packets all through internal ports

for ex: A packets from 192.168.2.79 4000 to 192.168.2.79 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
1  
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

1 Answer 1

You should read this: http://wiki.wireshark.org/CaptureSetup/Loopback (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

 
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.