Install everything you need:
sudo apt-get install wireshark tshark libcap2-bin
According to
/usr/share/doc/wireshark/README.Debian you have to add your user to the group wireshark
cat /etc/group | grep wireshark
sudo groupadd wireshark
sudo usermod -a -G wireshark `whoami`
groups `whoami`
cat /etc/group | grep wireshark
newgrp wireshark
Then lets add capture privileges
http://wiki.wireshark.org/CaptureSetup/CapturePrivileges :
sudo chgrp wireshark /usr/bin/dumpcap
sudo chmod 754 /usr/bin/dumpcap
sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap
getcap /usr/bin/dumpcap
You shoud be able run tshark without sudo:
tshark -R 'ip.addr==178.159.244.20'
tshark -i lo tcp port 5672
No comments:
Post a Comment