diff options
author | Ido Schimmel <idosch@nvidia.com> | 2021-04-14 11:20:32 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-04-18 22:04:16 +0200 |
commit | 812fa71f0d967dea7616810f27e98135d410b27e (patch) | |
tree | 5c7385ce12cf10921f289c7e65ca809904208f99 /scripts/file-size.sh | |
parent | 783003f3bb8a565326e89d18bbd948ad8ffc816a (diff) |
netfilter: Dissect flow after packet mangling
Netfilter tries to reroute mangled packets as a different route might
need to be used following the mangling. When this happens, netfilter
does not populate the IP protocol, the source port and the destination
port in the flow key. Therefore, FIB rules that match on these fields
are ignored and packets can be misrouted.
Solve this by dissecting the outer flow and populating the flow key
before rerouting the packet. Note that flow dissection only happens when
FIB rules that match on these fields are installed, so in the common
case there should not be a penalty.
Reported-by: Michal Soltys <msoltyspl@yandex.pl>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'scripts/file-size.sh')
0 files changed, 0 insertions, 0 deletions