hello,
I have slack (kern 2.0.33):
Files:
rc.M:
....
# Start IP accounting.
if [ -x /etc/rc.d/rc.ipfwadm ]; then
  . /etc/rc.d/rc.ipfwadm
fi

rc.ipfwadm:
#!/bin/sh
#Flush old all rules
/sbin/ipfwadm -Af
#traffic from 194.102.58.0 to host
/sbin/ipfwadm -Aa -W eth4 -P all -S 194.102.58.0/24 -D 193.231.44.1/32
#traffic to 194.102.58.0 from host
/sbin/ipfwadm -Aa -W eth4 -P all -D 194.102.58.0/24 -S 193.231.44.1/32
#traffic from 194.102.59.0 to host
/sbin/ipfwadm -Aa -W eth4 -P all -S 194.102.59.0/24 -D 193.231.44.1/32
#traffic to 194.102.59.0 from host
/sbin/ipfwadm -Aa -W eth4 -P all -D 194.102.59.0/24 -S 193.231.44.1/32
#traffic from 194.102.60.0 to host
/sbin/ipfwadm -Aa -W eth4 -P all -S 194.102.60.0/24 -D 193.231.44.1/32
#traffic to 194.102.60.0 from host
/sbin/ipfwadm -Aa -W eth4 -P all -D 194.102.60.0/24 -S 193.231.44.1/32
#traffic from 194.102.38.128 to host
/sbin/ipfwadm -Aa -W eth4 -P all -S 194.102.38.128/255.255.255.192 -D
193.231.44.1.32
#traffic to 194.102.38.128 from host
/sbin/ipfwadm -Aa -W eth4 -P all -D 194.102.38.128/255.255.255.192 -S
193.231.44.1/32
#trafic to 193.231.157.0 from host
/sbin/ipfwadm -Aa -W eth4 -P all -D 193.231.157.0/24 -S 193.231.44.1/32
#traffic from 193.231.157.0 to host
/sbin/ipfwadm -Aa -W eth4 -P all -S 193.231.157.0/24 -D 193.231.44.1/32
#traffic to 193.231.44.0 from host
/sbin/ipfwadm -Aa -P all -D 193.231.44.0/24 -S 193.231.44.1/32
#traffic from 193.231.44.0 to host
/sbin/ipfwadm -Aa -P all -S 193.231.44.0/24 -D 193.231.44.1/32
# traffic from world to host
/sbin/ipfwadm -Aa -P all -S 0/0 -D 193.231.44.1/32
#traffic to world from host
/sbin/ipfwadm -Aa -P all -D 0/0 -S 193.231.44.1/32

How can I write accounting in a file (/var/log/traffic)?
I must put something in my cron file to extract these information from
kernel but I do not how to do this.

TIA.
                               \\\___///
                              \\  - -  //
                               (  @ @  )
-----------------------------oOOo-(_)-oOOo--------------------------------
*Bubulac Angela Tatiana - National Institute for R&D of Materials Physics*
* (System Administrator)  Bucuresti - Magurele P.O.B. MG-7               *
*                         Romania                                        *
*e-mail: [EMAIL PROTECTED]      |   phone :401-7806925/126           *
*        [EMAIL PROTECTED]       |                                    *
*                                   |                                    *
*                                   |   fax   :401-4231700               *
--------------------------------------Oooo--------------------------------
                              oooO   (   )
                             (   )    ) /
                              \ (    (_/
                               \_)

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to