[Debian] IPAC-NG Foutmelding

Pagina: 1
Acties:

  • NaLiN
  • Registratie: Maart 2001
  • Niet online

NaLiN

Muziek moet ragge

Topicstarter
Ik heb de laatste versie van ipac-ng is gedownload om is verkeer te gaan monitoren. Ik heb ipac-ng-1.31 geinstalleerd zonder problemen. Via de search en google kon ik hier geen goed antwoord opvinden.... :'(

Zo snel ik fetchipac -Sv doe krijg ik het volgende:
code:
1
2
3
4
5
6
7
8
Flushing accounting chains..
Reading and parsing rules file "/etc/ipac-ng/ipac-rules.conf"
Setting up acc chains..
Setup tables..
Setting up accounting rules..
Reading and parsing rules file "/etc/ipac-ng/ipac-rules.conf"
 calloc failed
: Cannot allocate memory


Mijn ipac-rules.conf:
code:
1
2
incoming from internet|ipac~o|eth0|all||||
outgoing to internet|ipac~i|eth0|all||||


Mijn ipac.conf:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This is the main ipac-ng configuration file.  It contains the
# configuration directives that give the ipac-ng its instructions.

## mode of operations: operate only like old ipac or not
#
#classic mode =  yes

## specify access agent.
#       supported are: files, postg. files works with classic mode only
#
access agent = files

## accouting agent.
#       iptables and ipchains are only options
#       (ipchains is not recommended)
#
account agent = iptables

## storage. gdbm, postgre and plain-file supported.
#       (plain-file is not recommended)
#
storage = gdbm

## rules file for classic mode
#
rules file = /etc/ipac-ng/ipac-rules.conf

## login all users at startup
# (specific only for nonclassic mode - only those who has enough cash!)
#
#login at start = yes

## support for traffic passing to\from auth host
#       (specific only for nonclassic mode)
## name or ip of the auth host
## disable support if not specified,
##auth host = sibinet.com

# dont store lines containing only zeroes - speedup processing and save space
#
drop zero lines = yes


Mijn geheugen:
code:
1
2
3
4
             total       used       free     shared    buffers     cached
Mem:        515936     504204      11732          0      68580     180212
-/+ buffers/cache:     255412     260524
Swap:      1108444      46720    1061724


Mijn kernel 2.6.12-1-686-smp

hallo


  • Wirehead
  • Registratie: December 2000
  • Laatst online: 22-11-2025
Zelfde probleem hier, heb er ook niet direct een oplossing voor.

Echter, ik ben momenteel vnstat aan het proberen en het ziet er redelijk goed uit + is geen "echte" daemon.

Que accuraatheid zal ik je het antwoord nog verschuldigd moeten zijn, ben het nog aan het testen. Zit ook in de Apt-repository's, ter info.

Denon AVR-X2800H, Quadral Amun Mk.III, Technics SL-7, DIY PhonoPre, AT-152LP / 4.225kW Heckert Solar / SMA 3.0-1AV-41 / Kia e-Niro 64kWh First Edition


  • cool_zero
  • Registratie: Juni 2001
  • Laatst online: 25-10-2022
Mijn ipac-rules.conf heeft wat minder rechte strepen aan het eind nodig, maar dat kan misschien komen omdat ik stable draai en dus een wat oudere versie van ipac-ng gebruik, zo ziet die er bij mij uit:
code:
1
2
incoming from internet|ipac~o|eth0|all||
outgoing to internet|ipac~i|eth0|all||


De niet zo nette calloc fout krijg je waarschijnlijk door een misconfiguratie in je ipac.conf, daar staat namelijk het volgende in de comments:
code:
1
2
3
4
## specify access agent.
#       supported are: files, postg. ---> files works with classic mode only <----
#
access agent = files

En dan moet je dus classic mode aan zetten:
code:
1
2
3
## mode of operations: operate only like old ipac or not
#
classic mode =  yes