Re: lug-bg: MRTG and IPCHAINS problem
- Subject: Re: lug-bg: MRTG and IPCHAINS problem
- From: mano@xxxxxxxxxxxxx (Marian Popov)
- Date: Tue, 26 Mar 2002 23:31:45 +0200 (EET)
On Tue, 26 Mar 2002, Teodor Georgiev wrote:
>
> vmesto da preotkrivash toplata voda, v "contrib" direktoriata na MRTG si ima
> gotovi scriptove za
> ipchains i iptables accounting. Rabotiat perfektno.
> Na men MRTG mi vyrshi idealna rabota, dosega ne sum imal povod da se oplacha
> ot nego.
Poglednah kakvo ima v contrib no tam imashe script koito countvashe
obshtia trafik na servera ili trafika samo na 1 ip i ne mojah da razbera
kakvi parametri da mu dam za da mi pokazva traffic na mnogo ip adresi.
Kato naprimer moia script go pravi taka
root@wireless:/home/mrtg# ./statslan 61
183535
534741
root@wireless:/home/mrtg# ./statslan 62
29787
304126
I taka natatyk kato pod tezi cifri imam predvaritelno zadadeni IP-ta i
scripta mi vzima za vsiako IP po otdelno statistika.
Problema mi e che ne mi meri pravilno samia rule v ipchains i ne znam kyde
gresha. Otchita mi samo trafik ot server-a kym dadenoto IP i obratno. A az
iskam da otchita vsichkia traffic na tova IP bez tozi ot servera demek
obratnoto na tova koeto poluchavam.
Oh chak i az se obyrkah veche ne znam dali si me razbral ama ako ne si
kaji da obiasnia po-choveshki.
mano
>
> a probva li s forward? ;)
>
> ----- Original Message -----
> From: "Marian Popov" <mano@xxxxxxxxxxxxx>
> To: <lug-bg@xxxxxxxxxxxxxxxxxx>
> Sent: Tuesday, March 26, 2002 2:01 AM
> Subject: lug-bg: MRTG and IPCHAINS problem
>
>
> > Hello, grupa.
> >
> > Sigurno na niakoi ot vas im e pisnalo ot MRTG no poneje ne mojah da
> > nameria reshenie na moia problem v tyrsachkata na site-a reshih da postvam
> > kakto se kazva.
> >
> > Ta nabyrzo estestvoto na problema.
> >
> > Imam edna mashina s niakolko LAN karti na vsiaka ot koito imam routirani
> > otdelni grupi ot ip adresi.
> >
> > Imam MRTG i s IPCHAINS se opitvam da vzimam stoinosti za IN i OUT trafik
> > za vsiako IP po otdelno.
> >
> > Problemyt m ie tam che se otchita trafika edinstveno ako dadenia ip adres
> > izteglia ili predava informacia na servera, koito mu se iaviava i GW i
> > kydeto e pusnato i MRTG-to.
> >
> > Ot druga mashina puskam ping kym tova IP i gledam stoinostite no te ne
> > pomrydvat. Kokato pusna ping obache ot tazi mashina na koiato e MRTG-to
> > sichko e pushka i stoinostite se natrupvat.
> >
> > Niamam drugi verigi na tazi mashina osven tezi za MRTG.
> >
> > Eto i nachinite po, koito se opitvam da logvam traffika.
> >
> > ipchains -A input -i eth1 -s 212.116.10.10 -d 0/0 -j ACCEPT
> > ipchains -A output -i eth1 -s 0/0 -d 212.116.10.10 -j ACCEPT
> >
> >
> > I eto i drugia metod kydeto efekta e syshtia.
> >
> > ipchains -A input -i eth1 -d 212.116.10.10 -s ! 212.116.10.10 -j ACCEPT
> > ipchains -A output -i eth1 -s 212.116.10.10 -d ! 212.116.10.10 -j ACCEPT
> >
> >
> > Pak povtariam trafika se otchita SAMO kogato dadenoto IP obmenia
> > informacia s kompiutera na koito e pusnato MRTG-to
> >
> >
> > Priemam vsiakakvi predlojenia.
> >
> >
> > =-rw-r--r--=======================
> > Pazardjik.com System Administrator
> > email: mano@xxxxxxxxxxxxx
> > icq: 9362972
> >
> >
> ===========================================================================
> > A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
> > http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara
> Zagora
>
> ===========================================================================
> A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
> http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
>
=-rw-r--r--=======================
Pazardjik.com System Administrator
email: mano@xxxxxxxxxxxxx
icq: 9362972
===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|