mirror of
https://github.com/aramperes/onetun.git
synced 2025-09-09 06:58:31 -04:00
Add tcpdump example
This commit is contained in:
parent
45962f4356
commit
648154b5ee
1 changed files with 6 additions and 0 deletions
|
@ -144,6 +144,12 @@ INFO onetun::pcap > Capturing WireGuard IP packets to wg.pcap
|
||||||
INFO onetun::tunnel > Tunneling TCP [127.0.0.1:8080]->[192.168.4.2:8080] (via [140.30.3.182:51820] as peer 192.168.4.3)
|
INFO onetun::tunnel > Tunneling TCP [127.0.0.1:8080]->[192.168.4.2:8080] (via [140.30.3.182:51820] as peer 192.168.4.3)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To capture packets sent to and from the onetun local port, you must use an external tool like `tcpdump` with root access:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ sudo tcpdump -i lo -w local.pcap 'dst 127.0.0.1 && port 8443'
|
||||||
|
```
|
||||||
|
|
||||||
## Download
|
## Download
|
||||||
|
|
||||||
Normally I would publish `onetun` to crates.io. However, it depends on some features
|
Normally I would publish `onetun` to crates.io. However, it depends on some features
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue