Strip GRE only for a list of prefixes, count the rest by outer header
xxxxxx
We run FNM Advanced on a mirror port with af_packet_extract_tunnel_traffic: true.
Our GRE traffic is two kinds:
- GRE delivery to our own prefixes (28%): stripping is right here.
- Customers' own GRE/VPN tunnels (72%): inner IPs are private or random internet addresses.
With extraction on, the second kind is counted only by inner IPs. So ~500 Mbps ends up in "Other", the tunnel endpoint shows 0, and an attack through the tunnel doesn't hit the customer's thresholds. It also makes "Other" useless for spotting prefixes we forgot to add: less than 0.1% of it is really unlisted. We can't turn extraction off because of the first kind.
As Pavel suggested: a list of prefixes where GRE gets stripped. If the outer IP is in the list, strip it like today. If not, count the packet by its outer header, so it goes to the tunnel endpoint host. An empty list = today's behaviour.
Our delivery tunnels are just a few endpoints, so the list would be tiny. Happy to test a beta.