mirror of
https://git.freestone.net/cramer/pcapmirror.git
synced 2026-03-01 09:39:25 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 580009f48a | |||
| 140c8a6962 |
3
Makefile
3
Makefile
@@ -52,7 +52,8 @@ clean:
|
|||||||
|
|
||||||
# Install the executable
|
# Install the executable
|
||||||
install: $(TARGET)
|
install: $(TARGET)
|
||||||
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
mkdir -p $(BINDIR)
|
||||||
|
mkdir -p $(MANDIR)/man8
|
||||||
install -s $(TARGET) $(BINDIR)/$(TARGET)
|
install -s $(TARGET) $(BINDIR)/$(TARGET)
|
||||||
install $(TARGET).8 $(MANDIR)/man8/$(TARGET).8
|
install $(TARGET).8 $(MANDIR)/man8/$(TARGET).8
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ pcapmirror [options]
|
|||||||
To capture traffic on the eth0 interface, filter for TCP port 80, and send it to the destination, use the following command:
|
To capture traffic on the eth0 interface, filter for TCP port 80, and send it to the destination, use the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo pcapmirror -i eth0 -f "tcp port 80" -r 192.168.1.100 -p 47008 -v
|
sudo pcapmirror -i eth0 -f "tcp port 80" -r 192.168.1.100 -p 37008 -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.
|
||||||
|
|
||||||
@@ -49,6 +49,12 @@ To avoid capturing traffic from your own monitoring machine, configure Wireshark
|
|||||||
|
|
||||||
On the original download location you will also find several prebuilt packages.
|
On the original download location you will also find several prebuilt packages.
|
||||||
|
|
||||||
|
# Install via Homebrew (macos, linux)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
brew install pcapmirror
|
||||||
|
```
|
||||||
|
|
||||||
## Compile and Install
|
## Compile and Install
|
||||||
|
|
||||||
### Supported Operating Systems
|
### Supported Operating Systems
|
||||||
|
|||||||
Reference in New Issue
Block a user