Phillip Remaker
07-25-2004, 01:40 AM
"John Lynch" <john_p_lynch@yahoo.com> wrote in message
news:f5b507b6.0403110049.41dca4f7@posting.google.com...
> Since I control both ends of the VPN and have the shared secret, I
> should be able to decrypt the packets.
Nope, that's not how IPSEC works. The shared secret is used only to
authenticate the peers. After the peers are authenticated, a unique session
key is created to encrypt and decrypt the packets. This session key is also
periodically changed, to prevent brute force attacks on data streams. You
cannot decrypt IPSEC packets in flight unless you have the current session
key for the active security association. This key, as you might guess,
cannot be retreived from the router. Would sort of defeat the whole purpose
of security.
Your problems seems like more of a mapping or access-list problem. Packet
decoding, algorithmically, is pretty trivial. It is unlikely that your
problem lies there.
news:f5b507b6.0403110049.41dca4f7@posting.google.com...
> Since I control both ends of the VPN and have the shared secret, I
> should be able to decrypt the packets.
Nope, that's not how IPSEC works. The shared secret is used only to
authenticate the peers. After the peers are authenticated, a unique session
key is created to encrypt and decrypt the packets. This session key is also
periodically changed, to prevent brute force attacks on data streams. You
cannot decrypt IPSEC packets in flight unless you have the current session
key for the active security association. This key, as you might guess,
cannot be retreived from the router. Would sort of defeat the whole purpose
of security.
Your problems seems like more of a mapping or access-list problem. Packet
decoding, algorithmically, is pretty trivial. It is unlikely that your
problem lies there.