Начало Вход/Регистрация Помощ Tazi stranica s latinski bukwi
Области
 Новини
 Актуална тема
 Linux портали
 Какво е Линукс?
 Въпроси-отговори
 Форуми
   •Трудова борса
   •Конкурс
 Статии
 Дистрибуции
   •Поръчка на CD
 Made In BG
 Файлове
 Връзки
 Галерия
 Конференции
Настройки
 Външен вид
 Предложения
 Направи си сам
И още ...
 За нас
 Линукс за българи ЕООД
 Линк към нас
 Предложения

Подкрепяно от:
TelePoint - Място за хора със свободни идеи

SiteGround

initLab

Adsys Group

SAP Bulgaria

Въпроси отговори
Въпрос: netacct-mysql question
[Търси: ]

ВНИМАНИЕ: Използвайте форумите на сайта за дa зададете вашите въпроси.

Към началото |Добави въпрос |Отговори
 
Въпрос
От: Dundi Дата: 06/11/2003
Zdraveite na vsichki!  
 Chetoh preporykite za traffic count i se sprqh na reshenieto
 
netacct-mysql za koeto spomenava  Niki Antonov. 
Pusnah mysql-a,prekarah edin den v chetene kak da go 
podkaram tozi mysql :)) ,vsichko trygna,installnah i 
netacct-mysql,pusnah go i nego samo che nishto ne se 
 updatva v tablicite na mysql-a,inache si ima database
netacct 
 s tablica traffic no vsichko e prazno.Ideqta mi e da go
probvam 
 pyrvo localno za moita mashina i sled tova shte go sloja na

 GW.IP=192.168.168.250/255.255.255.0.Prilagam i naccttab file

za da vidite dali ne sym sgreshil neshto 
 
 
sniff 1				# 0 = not setting PROMISC mode 
				# 1 = put interface in PROMISC mode 
 
database mysql			# must be mysql for now 
				 
mysql_user acct			# usually you don't need to 
change this 
 
mysql_password acct_password	# change this to your 
password 
 
mysql_host localhost		# sometimes you need to change 
this to 
				# 127.0.0.1 instead of localhost 
 
mysql_port 0			# mysql port, 0 if you are using a 
socket 
 
mysql_database netacct		# usually you don't need to 
change this 
 
pidfile  /var/run/nacctd.pid	# set pid file 
				# tis will help if you want to 
				# two (or more) nacctd on same 
machine 
 
compactnet 192.168.168.250 255.255.255.0 
compactnet 62.73.77.0 255.255.255.0 
compactnet 192.168.1.0 255.255.255.0 
 
 				# log traffic only for these networks  
				# all other packets are NOT logged 
				 
ournet 62.73.77.0 255.255.255.0 
 
				# Ours IP nets for diferenciation of 
				# peering traffic types 
 
direct_peer 217.75.132.0 255.255.255.0 
direct_peer 62.176.90.0 255.255.255.0 
direct_peer 62.73.86.0 255.255.255.0 
direct_peer 62.73.87.0 255.255.255.0 
direct_peer 194.12.226.80 255.255.255.240 
direct_peer 194.12.233.96 255.255.255.224 
direct_peer 194.12.233.160 255.255.255.224 
 
				# log traffic between 2 or more regional 
ISP-s 
 
flush 300                       # flush every 5 minutes 
				# this gives the interval in seconds 
				# when the accumulated data is flushed 
				# to the output file 
 
fdelay 60			# this defines after how many seconds 
				# of inactivity a certain record of 
				# traffic information may be written out 
				# this helps making the logfiles smaller 
				# since only one output record will be 
				# generated for related traffic 
 
notdev eth1			# Dont log entries for this device 
                                 # Use this on routers that
you dont 
                                 # log forwarded packets
twice. 
 
 device eth0                     # device to put into
promiscous 
mode 
				# you can specify as many as you 
want 
				# and you don't have to specify one 
				# (e.g. if this runs on your router) 
				# 
				# if you plan to use it on some *BSD 
				# system put here apropriate device 
				# i.e. - device ep0 
 
# iflimit eth0			# on machines with multiple 
interfaces, 
				# log only packets on this interface 
				# mutually exclusive with hostlimit 
 
# ignoremask 255.255.255.0        # Ignore traffic on same 
class C net 
				# This means traffic that is on 
				# your local LAN is not counted. 
				# This is useful for NFS etc. 
				# Not giving this option causes 
everything 
				# to be counted. 
				# This can degrade performance 
seriously! 
 
ignorenet 127.0.0.0 255.0.0.0   # ignore loopback net 
				# You can define as many ignorenets 
as 
				# you want. Ignoring a net with 
				# ignorenet is not as efficient as 
				# ignoremask. Thus you should exclude 
				# your local network with ignoremask, 
				# not with ignorenet (although this is 
				# is possible). 
 
debug 0                         # set debugging level 
debugfile /tmp/nacctd.debug	# where to put debugging info 
 
# Device configuration 
 # Defines where the real data starts for each type of
interface 
 # First give the name prefix, then the offset in bytes to
the start 
 # of the real data, then the offset of the type field in
bytes. If  
# there is no type field, just give a 0. 
# Don't specify SLIP or PPP devices here, otherwise 
association of 
# dynamic ip-addresses with usernames won't work 
# Put device types with more traffic last. 
 
headers	tr	40	38 
headers	lo	14	12 
headers	isdn	4	0 
# headers isdn	14	0	# for hdlc/trans/cisco and 
hdlc/trans/raw 
headers	eth	14	12 
headers	plip	14	12 
 
# hostlimit 12.34.56.78		# log only packets to/from this 
host 
# hostlimit 34.56.78.12         # and this one too 
				# this option is mutually exclusive with 
iflimit 


Отговор #1
От: devane Дата: 06/12/2003
compactnet 192.168.168.0 255.255.255.0
ournet 192.168.168.0 255.255.255.0
zadavash mreji ne hostove :)
drugite compactnet i ournet gi mahni
drug vapros kakva distro izpolzvash i dali sluchaino tia 
ne varvi po default s niakakyv mysql instaliran i ti da si
slojil oshte edin samo che na drugo miasto .. dali mysql-a
ti slusha na port ili samo prez socket .. procheti docs-a
 napisal sam go na balgarski :) sashto taka vij dali ne dava
niakakva greshka v /var/log/syslog ili messages



<< NAT + Netmeeting (1 ) | Usr i Samba (4 ) >>

 
© 2011-... Асоциация "Линукс за българи"
© 2007-2010 Линукс за българи ЕООД
© 1999-2006 Slavej Karadjov
Ако искате да препечатате или цитирате информация от този сайт прочетете първо това
Външния вид е направен от MOMCHE
Code Version: 1.0.8 H (Revision: 23-09-2011)
 
Изпълнението отне: 0 wallclock secs ( 0.07 usr + 0.00 sys = 0.07 CPU)