ich möchte an einem bestimmten Port den Datentransfer messen und danach möchte ich wissen wie viel MB verbraucht wurden.
Mit
Code: Select all
tcpdump -i eth0 port 80
Code: Select all
tcpdump -i eth0 port 80
Code: Select all
iptables -N rein
iptables -N raus
iptables -A INPUT -p tcp --dport 80 -j rein
iptables -A OUTPUT -p tcp --sport 80 -j raus
Code: Select all
iptables -vxnL
Code: Select all
iptables -Z