Re: iptables traversing read

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Hi
>
> Is there a program which allow me to see how "my" traffic goes through my
> iptables rules? Which accept it, which deny?
> Right now my router has a little bit of traffic and its hard to see only
> mine traffic.
>
> --
> Mi³ego Dnia
> Krystian Antoni
> _______________________________________________
> LARTC mailing list
> LARTC@xxxxxxxxxxxxxxx
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
>
The program you will want to use is iptables -nvxL
It will show you byte and packet counters for each rule you have on the
system.
With a little bit of shell programming sill, you can get MRTG to work on
it and get a visual representation of your traffic, rather than boring
text.
This can be done with a script that does a "iptables -nvxL", gets the
output, greps for the rule you want to graph, cuts away right to the
packet and byte counter, and then returns it.
This script can gbe added as a target in mrtg.conf...mrtg added to
crond.conf...and all the graphics are ready!

Google for mrtg...it will be easy!

_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux