Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Check BW usage by port
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Check BW usage by port

bijan588bijan588 Member
edited May 2012 in General

How can I check the B/W usage of a port.

Aka, port 25565 or 25566 etc

Comments

  • yomeroyomero Member
    edited May 2012

    Maybe.... do an iptables rule kinda....

    iptables -I INPUT -p tcp --dport 25565 -j ACCEPT
    iptables -I OUTPUT -p tcp --sport 25565 -j ACCEPT

    (not sure of the syntax)

    Then you can do an

    iptables -nvL

    and you can watch the counters :P

  • I need to monitor over 200 ports.

  • BluBoyBluBoy Member

    I think iptraf should do what you want as well
    (ncurses based traffic monitor based on port, destination, proto, size etc)

  • FranciscoFrancisco Top Host, Host Rep, Veteran

    @bijan588 said: I need to monitor over 200 ports.

    You could use pmacct to likely do it. pmacct uses libpcap to monitor so it won't eat too much CPU assuming you're not ripping a Gbit+ out of it.

    PMACCT supports historical data saving into an SQL table too if you like :)

    Francisco

Sign In or Register to comment.