How to log into file all udp packets (in and out) from port N in readable format (capture packet type (time stamp, name of error if one happens or message type, data size, data))?


To capture traffic, use tcpdump(1) (it has a very extensive set of filtering options to define exactly what to capture, and can save the captured traffic to a file). To read the file, you can use the same tcpdump or the graphical wireshark(1).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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