mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
Allow the interface to be specified.
This commit is contained in:
1 parent
e12139c636
commit
0732c60bb2
1 file changed
+2
-1
@@ -1,5 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
PORT=${1:-"80"}
|
||||
IFACE=${2:-"any"}
|
||||
|
||||
sudo tcpdump -i any -s0 -l -n -q -A "tcp port ${PORT} and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)"
|
||||
sudo tcpdump -i $IFACE -s0 -l -n -q -A "tcp port ${PORT} and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)"
|
||||
Reference in new issue
Block a user