capturing vpn connection request packets

Apr 12, 2011 at 6:51 PM


How can i capture VPN connection requests, but also verify if it's a l2tp vpn, or IpSec vpn?

I just want to have the request for connection packet so that i can take the ip and other necessary info, and by using another library, to connect to the vpn server.

I tried modifying the "InterpretingThePackets" example project, but i don't know what to write in the PacketHandler class

Can someone help me?

Apr 16, 2011 at 7:00 PM

Hi icecreamman,

It seems that what you need is to parse the packets.

Currently you can parse Ethernet, IPv4, TCP and other protocols use Pcap.Net.

If you need something else you can parse the payloads of the supported protocols.

Another approach would be to write a Pcap.Net Datagram and Layer and add that code to Pcap.Net. See the developers guide for more details.

The final option is to open a feature request in the Issue Tracket for each unsupported protocol.


I hope this helps,