Re: iptables + port traffic



Rufman wrote:
how can i make iptables dump the amount of traffic going through
specific ports into a file, so that a prog like iam (http://
www.intevation.de/iam/) can parse the contents and display the port
traffic.

or

does anyone know a better way to measure port traffic?

I dump select netfilter traffic into a special syslog log file (for
participation in DShield) with the following syslog.conf line.

kern.debug;kern.!info /var/log/dshield

Then in iptables I define custom log targets like

-A logaccept -j LOG --log-level debug --log-prefix "iptables ACPT: "
-A logaccept -j ACCEPT

There are debug messages from the kernel other than netfilter/iptables,
so I still have to filter the log file before I send it through
DShield's parser. You'll probably have to do the same.
.



Relevant Pages

  • Re: CUPS, Sarge/Debian/GNU/Linux and Mac OS X
    ... blocking port 631 on your linux box? ... # This is the CUPS configuration file. ... the access log file; if this does not start with a leading / ... determines whether the scheduler will allow new printers ...
    (Debian-User)
  • Re: FTP Send Port doesnt transmit messages!
    ... < 230 User TestSFTP logged in. ... retransmitted after the retry interval specified for this Send Port. ... The "FTP" adapter is suspending an outbound message going to destination ... The log file shows only the above text repeated three times!!! ...
    (microsoft.public.biztalk.general)
  • Re: IIS 6 - post problem at port 80
    ... Are you sure that your ISP/network-environment is not blocking port 80 ... Please check your W3SVC log file to see if the POST request is in the log ...
    (microsoft.public.windows.server.security)
  • Re: krdc error when trying to connect
    ... The log file may be in the ... I'm using guarddog too. ... Port 427 is used by the SLP and SLP is used by krdc ... I have enabled port 427 in every zone and yet I still get the error message. ...
    (comp.windows.x.kde)
  • Re: Directly Passing Variables
    ... Just use TCP/IP or UDP to open a port - it works on the local machine, ... I have also tried and it does work - to write to the Log File. ... Currently my solution is that the 1 exe writes a text file and the other ... Perhaps you could create a pipe or message queue? ...
    (microsoft.public.dotnet.languages.vb)