I'm writing an IPsec implementation for a microcontroller and I want to test it using a standard Linux box running Debian Lenny. Both devices should secure the communication between them using IPsec ESP in tunnel mode. The keys are setup manually using setkey
. There's no (or at least should be no) user space program involved in processing an IPsec packet. Now I want to see how my created packets are processed by the Linux kernel. To see the raw packets I capture them using tcpdump
and analyze them using wireshark
.
- What's the best way to obtain debug information about IPsec processing?
- How can I figure out whether the packet is accepted by the kernel?
- How can I view the reason for a packet to be dropped?