Capture internal ports

1

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

abubacker

Posted 2013-01-04T05:52:02.307

Reputation: 119

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 – 2013-01-04T06:15:42.987

1you can use wireshark to capture and inspect all packets. – WeloSefer – 2013-01-04T09:35:47.380

did my answer help? – Olivier Dulac – 2013-06-28T12:46:42.743

Answers

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))

Olivier Dulac

Posted 2013-01-04T05:52:02.307

Reputation: 818