# Inject Packet

## 捕包

``` shell
/opt/tsg/mrzcpd/bin/mrpdump -- --pdump "dev_name=nf_0_fw,queue=*" --bpf-rule="host 192.0.2.110 and port 80" --dumpfile-path=/home/admin/fw.pcap
tcpdump -i virtio_dign_c host 192.0.2.110 and port 80 -n -v -w virtio_dign_c.pcap
tcpdump -i virtio_dign_s host 192.0.2.110 and port 80 -n -v -w virtio_dign_s.pcap
```

## 拨测

``` shell
kubectl -n tsg-os-system exec -it dign-client-9h8rm -c dign-client sh
curl -v http://http.badssl.selftest.gdnt-cloud.website --resolve "http.badssl.selftest.gdnt-cloud.website:80:192.0.2.110"
```

## 结果

| type        | dir  | pkts | note                         | result      |
| ----------- | ---- | ---- | ---------------------------- | ----------- |
| TCP-RST     | C2S  | 1    | After recv SYN               | Failed      |
| TCP-RST     | S2C  | 1    | After recv SYN-ACK           | Success     |
| TCP-RST     | C2S  | 2    | After recv Sub-ACK           | Success     |
| TCP-RST     | C2S  | 3    | After recv C2S First-Payload | Success     |
| TCP-RST     | S2C  | 3    | After recv S2C First-payload | Success     |
| TCP-PAYLOAD | C2S  | 3    | After recv C2S First-Payload | Success     |
| TCP-PAYLOAD | S2C  | 3    | After recv S2C First-payload | Success     |