#615231 Consider inspecting IPsec packages

Package:
ngrep
Source:
ngrep
Description:
grep for network traffic
Submitter:
Mats Erik Andersson
Date:
2011-12-18 13:57:07 UTC
Severity:
wishlist
#615231#5
Date:
2011-02-26 13:23:09 UTC
From:
To:
Let me propose a patch that enables Ngrep to inspect packages
of protocol type AH and ESP, originating with IPsec. This ability
comes handy for me in porting ipsec-tools to GNU/kFreeBSD.

The patch depends, as given here, on the patch variation I submitted
in the recent report #615138, without which the present changes are
only able to detect IPsec under IPv4, not in IPv6.

The present patch has been tested on payloads

   ICMP, UDP, TCP, ESP:   IPv4 and ah/tunnel, ah/transport

   any:                   IPv4 and esp/tunnel, esp/transport

   ICMPv6, UDP, TCP:      IPv6 and ah/transport, ah/tunnel


Best regards,
  Mats Erik Andersson, DM

#615231#10
Date:
2011-02-26 22:19:15 UTC
From:
To:
Thanks for the patch, but I'm not convinced it's useful. With ESP
the payload is encrypted so ngrep cannot match anything, and there
are better tools (like tcpdump) to see the SA parameters. It makes
more sense with AH, but in the real world nobody uses AH.