blob: 87fd699ee5102403b8ae2be9c0099dcbb920a092 [file] [log] [blame]
Matus Fabian475f0552016-10-19 06:17:52 -07001packet-generator new {
2 name f1
3 limit 1000000
4 node ip4-input
5 size 64-64
6 no-recycle
7 worker 0
8 data {
9 UDP: 10.0.0.3 -> 172.16.1.2
10 UDP: 3000 -> 3001
11 length 128 checksum 0 incrementing 1
12 }
13}
14
15
16packet-generator new {
17 name f2
18 limit 1000000
19 node ip4-input
20 size 64-64
21 no-recycle
22 worker 1
23 data {
24 UDP: 10.0.0.3 -> 172.16.1.2
25 UDP: 3005 -> 3006
26 length 128 checksum 0 incrementing 1
27 }
28}
29
30snat add address 172.16.1.3
31ip route 172.16.1.2/32 via drop
32set int ip address pg0 10.0.0.1/24
33set int snat in pg0
34trace add pg-input 10