Commit 5fc46f9
Revert "Fix XFRM-I support for nested ESP tunnels"
This reverts commit b0355db.
The reverted commit clears the secpath on packets received via xfrm interfaces
to support nested IPsec tunnels. This breaks Netfilter policy matching using
xt_policy in the FORWARD chain, as the secpath is missing during forwarding.
Additionally, Benedict Wong reports that it breaks Transport-in-Tunnel mode.
Fix this regression by reverting the commit until we have a better approach
for nested IPsec tunnels.
Fixes: b0355db ("Fix XFRM-I support for nested ESP tunnels")
Link: https://lore.kernel.org/netdev/20230412085615.124791-1-martin@strongswan.org/
Signed-off-by: Martin Willi <martin@strongswan.org>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>1 parent ec8f32a commit 5fc46f9
2 files changed
Lines changed: 4 additions & 53 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | 313 | | |
360 | 314 | | |
361 | 315 | | |
| |||
991 | 945 | | |
992 | 946 | | |
993 | 947 | | |
994 | | - | |
995 | | - | |
| 948 | + | |
| 949 | + | |
996 | 950 | | |
997 | 951 | | |
998 | 952 | | |
| |||
1042 | 996 | | |
1043 | 997 | | |
1044 | 998 | | |
1045 | | - | |
1046 | | - | |
| 999 | + | |
| 1000 | + | |
1047 | 1001 | | |
1048 | 1002 | | |
1049 | 1003 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3739 | 3739 | | |
3740 | 3740 | | |
3741 | 3741 | | |
3742 | | - | |
3743 | | - | |
3744 | | - | |
3745 | 3742 | | |
3746 | 3743 | | |
3747 | 3744 | | |
| |||
0 commit comments