Commit f108c0c
committed
ipsec: Simplify XFRM IN policies
Our XFRM IN policies currently look as follows (including the change
from the previous commit). The last two are for Encrypted Overlay. The
second and fourth are for proxy traffic.
src 0.0.0.0/0 dst 10.242.1.0/24
dir in priority 0
mark 0xd00/0xf00
tmpl src 10.242.0.95 dst 10.242.1.62
proto esp spi 0x00000000 reqid 1 mode tunnel
src 0.0.0.0/0 dst 10.242.1.0/24
dir in priority 0
mark 0x200/0xf00
tmpl src 0.0.0.0 dst 0.0.0.0
proto esp spi 0x00000000 reqid 0 mode tunnel
level use
src 172.18.0.2/32 dst 172.18.0.5/32
dir in priority 0
mark 0xd00/0xf00
tmpl src 172.18.0.2 dst 172.18.0.5
proto esp spi 0x00000000 reqid 2 mode tunnel
src 172.18.0.2/32 dst 172.18.0.5/32
dir in priority 0
mark 0x200/0xf00
tmpl src 0.0.0.0 dst 0.0.0.0
proto esp spi 0x00000000 reqid 0 mode tunnel
level use
This commit changes them into a single IN policy to allow everything
through:
src 0.0.0.0/0 dst 0.0.0.0/0
dir in priority 0
tmpl src 0.0.0.0 dst 0.0.0.0
proto esp spi 0x00000000 reqid 0 mode tunnel
level use
We've always written our XFRM IN policies to try and match every
possible traffic, so this is clearly the easiest way to do that.
Signed-off-by: Paul Chaignon <[email protected]>1 parent 224195a commit f108c0c
3 files changed
Lines changed: 17 additions & 97 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
275 | 274 | | |
276 | 275 | | |
277 | 276 | | |
| |||
312 | 311 | | |
313 | 312 | | |
314 | 313 | | |
315 | | - | |
| 314 | + | |
316 | 315 | | |
317 | 316 | | |
318 | 317 | | |
| |||
483 | 482 | | |
484 | 483 | | |
485 | 484 | | |
486 | | - | |
| 485 | + | |
487 | 486 | | |
488 | 487 | | |
489 | 488 | | |
| |||
520 | 519 | | |
521 | 520 | | |
522 | 521 | | |
523 | | - | |
524 | 522 | | |
525 | 523 | | |
526 | 524 | | |
| |||
564 | 562 | | |
565 | 563 | | |
566 | 564 | | |
567 | | - | |
| 565 | + | |
568 | 566 | | |
569 | 567 | | |
570 | 568 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
558 | | - | |
559 | | - | |
| 558 | + | |
560 | 559 | | |
561 | 560 | | |
562 | 561 | | |
| |||
566 | 565 | | |
567 | 566 | | |
568 | 567 | | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
590 | 572 | | |
591 | 573 | | |
592 | 574 | | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | 575 | | |
601 | 576 | | |
602 | 577 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
529 | 525 | | |
530 | 526 | | |
531 | 527 | | |
532 | 528 | | |
533 | 529 | | |
534 | 530 | | |
535 | | - | |
536 | | - | |
| 531 | + | |
| 532 | + | |
537 | 533 | | |
538 | | - | |
539 | | - | |
| 534 | + | |
| 535 | + | |
540 | 536 | | |
541 | 537 | | |
542 | | - | |
543 | | - | |
| 538 | + | |
544 | 539 | | |
545 | 540 | | |
546 | 541 | | |
547 | 542 | | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | 543 | | |
597 | 544 | | |
598 | 545 | | |
| |||
0 commit comments