Commit 0bce3d4
committed
test(nat): Add tests for static NAT + {masquerade, port forwarding}
Add unit tests to validate the use in a pipeline of static NAT +
masquerade, or static NAT + port forwarding, on opposite sides of a
peering.
We set up a pipeline, create a packet, process it, and check for its
output; then we create a fake reply, process it, check as well; at last,
we re-process the original packet, to make sure that the connection
still works after the flow table entry has been created.
Signed-off-by: Quentin Monnet <qmo@qmon.net>1 parent 2267593 commit 0bce3d4
3 files changed
Lines changed: 638 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
60 | 70 | | |
61 | 71 | | |
62 | 72 | | |
| |||
0 commit comments