|
# tcp,reg14=0x3,vlan_tci=0x0000,dl_src=fa:16:3e:17:eb:cf,dl_dst=fa:16:3e:c8:44:cc,nw_src=192.168.17.150,nw_dst=8.8.8.8,nw_tos=0,nw_ecn=0,nw_ttl=255,tp_src=12345,tp_dst=22,tcp_flags=0 |
|
ingress(dp="net0", inport="10045a") { |
|
next; |
|
next; |
|
reg0[0] = 1; |
|
next; |
|
ct_next; |
|
ct_next(ct_state=est|trk /* default (use --ct to customize) */) { |
|
next; |
|
outport = "3ef0bd"; |
|
output; |
|
egress(dp="net0", inport="10045a", outport="3ef0bd") { |
|
next; |
|
output; |
|
/* output to "3ef0bd", type "patch" */; |
|
ingress(dp="router0", inport="lrp-3ef0bd") { |
|
next; |
|
reg9[5] = 1; |
|
next; |
|
next; |
|
ip.ttl--; |
|
reg0 = 10.1.0.1; |
|
reg1 = 10.1.0.204; |
|
eth.src = fa:16:3e:58:b3:27; |
|
outport = "lrp-b92e75"; |
|
flags.loopback = 1; |
|
next; |
|
get_arp(outport, reg0); |
|
/* MAC binding to 46:b9:7b:44:4a:7e. */ |
|
next; |
|
next; |
|
output; |
|
egress(dp="router0", inport="lrp-3ef0bd", outport="lrp-b92e75") { |
|
eth.src = fa:16:3e:3b:d3:81; |
|
ct_dnat; |
|
ct_dnat /* assuming no un-dnat entry, so no change */ { |
|
ct_snat(10.1.0.204); |
|
ct_snat(ip4.src=10.1.0.204) { |
|
output; |
|
/* output to "lrp-b92e75", type "patch" */; |
|
ingress(dp="public", inport="b92e75") { |
|
next; |
|
outport = "_MC_unknown"; |
|
output; |
|
multicast(dp="public", mcgroup="_MC_unknown") { |
|
egress(dp="public", inport="b92e75", outport="5d53ba") { |
|
output; |
|
/* output to "5d53ba", type "localport" */; |
|
}; |
|
egress(dp="public", inport="b92e75", outport="provnet-bc6cec") { |
|
output; |
|
/* output to "provnet-bc6cec", type "localnet" */; |
|
}; |
|
}; |
|
}; |
|
}; |
|
}; |
|
}; |
|
}; |
|
}; |
|
}; |
|
}; |