Can now handle IPv6 packets, documentation update

This commit is contained in:
2025-03-21 01:06:06 +01:00
parent 05abe850c0
commit 575db5fd62
2 changed files with 50 additions and 13 deletions

View File

@@ -8,21 +8,23 @@ pcapmirror is a command-line tool for capturing network traffic and mirroring it
pcapmirror [options]
```
Options:
###Options:
-i <interface>: Specify the capture interface (e.g., eth0).
-f <filter>: Specify the capture filter in BPF syntax (e.g., tcp port 80).
-r <ip_address>: Specify the destination IP address (required).
-p <port>: Specify the destination port (default: 37008).
-v: Enable verbose mode (prints packet information).
-h: Show this help message.
Example:
###Example:
To capture traffic on the eth0 interface, filter for TCP port 80, and send it to the destination, use the following command:
```bash
sudo pcapmirror -i eth0 -f "tcp port 80" -v
sudo pcapmirror -i eth0 -f "tcp port 80" -r 192.168.1.100 -p 47008 -v
```
Note: Running pcapmirror typically requires root privileges due to the use of libpcap for capturing network traffic.
*Note*: Running pcapmirror typically requires root privileges due to the use of libpcap for capturing network traffic.
## Compile and Install