T
T
Thug2016-05-11 13:38:27
iptables
Thug, 2016-05-11 13:38:27

How to find out how much traffic is transferred on the port?

How to find out how much traffic is transferred on the port? Not the number of packets, but megabytes?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Karabanov, 2016-05-11
@Thug

Add a rule at the very beginning:
Let's look at the counters:

[email protected]:~$ sudo iptables -L -v -n -x
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts      bytes target     prot opt in     out     source               destination         
   32     2554 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:8080

As you can see, 2554 bytes passed through port 8080.

T
Thug, 2016-05-11
@Thug

Ohhh thanks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question