aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/netfilter/conntrack_icmp_related.sh (follow)
AgeCommit message (Collapse)AuthorFilesLines
2019-04-13selftests: netfilter: check icmp pkttoobig errors are set as relatedFlorian Westphal1-0/+283
When an icmp error such as pkttoobig is received, conntrack checks if the "inner" header (header of packet that did not fit link mtu) is matches an existing connection, and, if so, sets that packet as being related to the conntrack entry it found. It was recently reported that this "related" setting also works if the inner header is from another, different connection (i.e., artificial/forged icmp error). Add a test, followup patch will add additional "inner dst matches outer dst in reverse direction" check before setting related state. Link: https://www.synacktiv.com/posts/systems/icmp-reachable.html Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>