Имеем:
Шлюз (все установлено на одной машине)
linux
utm5.2.1-006
ndsad 1.32.1
внутренний интерфейс 172.16.0.0/14 eth2
внешний интерфейс 123.123.123.123 eth1
iptables -t nat -A POSTROUTING -s 172.16.0.0/14 -o eth1 -j SNAT --to-source 123.123.123.123
Два класса трафика
Входящий: из 0.0.0.0 в 123.123.123.123
Исходящий: из 123.123.123.123 в 0.0.0.0
Биллинг вдруг перестал считать трафик. Причем пакеты netflow ловит, при детализации в админке видно что UTM различает входящий и исходящий трафик, но не привязывает его к конкретному пользователю.
ndsad.cfg
Код: Выделить всё
ip 127.0.0.1
port 9996
dummy all
force eth1
hash lo 64
hash all 32
heap 65536
log /home/netup/log/ndsad.log
Код: Выделить всё
ndsad[10835]: Halting on Wed Mar 31 22:39:26 2010
ndsad[10835]: Killing scaner thread...
ndsad[10835]: Family `lo':
ndsad[10835]: Killing `lo' thread...
ndsad[10839]: Halting on Wed Mar 31 22:39:26 2010
ndsad[10839]: Killing scaner thread...
ndsad[10835]: NFC<lo> status on Wed Mar 31 22:40:26 2010
0/30 messages ready, 0 flows seen...
0/64 (0.00%) hash usage, 0 entries scaned, 0 dropped
ndsad[10835]: Family `eth':
ndsad[10835]: Killing `eth2:2' thread...
ndsad[10835]: Killing `eth2:3' thread...
ndsad[10835]: Killing `eth2:1' thread...
ndsad[10835]: Killing `eth2:0' thread...
ndsad[10835]: Killing `eth2' thread...
ndsad[10835]: Killing `eth1:0' thread...
ndsad[10835]: Killing `eth1' thread...
ndsad[10835]: NFC<eth> status on Wed Mar 31 22:40:26 2010
3/30 messages ready, 2203 flows seen...
32/32 (100.00%) hash usage, 1623 entries scaned, 1623 dropped
ndsad[10835]: Heap<1>: 1093/1092 nodes, 65580/65520 bytes
ndsad[10835]: Heap<2>: 0/-1 nodes, 0/-52 bytes
ndsad[10834]: WatchDog: child[10835]: SIGSEGV signal cought...
ndsad[10834]: WatchDog: recovering abnormal termination...
ndsad[10863]: `eth1': new device
ndsad[10865]: `eth1' thread started successfully.
ndsad[10863]: `eth1:0': new device
ndsad[10866]: `eth1:0' thread started successfully.
ndsad[10866]: `eth1:0' thread is preparing for dummy loop call
ndsad[10863]: `eth2': new device
ndsad[10867]: `eth2' thread started successfully.
ndsad[10867]: `eth2' thread is preparing for dummy loop call
ndsad[10863]: `eth2:0': new device
ndsad[10868]: `eth2:0' thread started successfully.
ndsad[10868]: `eth2:0' thread is preparing for dummy loop call
ndsad[10863]: `eth2:1': new device
ndsad[10869]: `eth2:1' thread started successfully.
ndsad[10869]: `eth2:1' thread is preparing for dummy loop call
ndsad[10863]: `eth2:3': new device
ndsad[10834]: WatchDog: child[10863] started on Wed Mar 31 22:39:26 2010
ndsad[10870]: `eth2:3' thread started successfully.
ndsad[10863]: `eth2:2': new device
ndsad[10870]: `eth2:3' thread is preparing for dummy loop call
ndsad[10871]: `eth2:2' thread started successfully.
ndsad[10871]: `eth2:2' thread is preparing for dummy loop call
ndsad[10863]: `lo': new device
ndsad[10872]: `lo' thread started successfully.
ndsad[10872]: `lo' thread is preparing for dummy loop call
ndsad[10865]: `eth1' thread is preparing for PCAP loop call
ndsad[10865]: pcap_datalink(eth1) = 1
ndsad[10865]: Set ppp offset = 4
ndsad[10863]: Halting on Wed Mar 31 22:39:27 2010
ndsad[10863]: Killing scaner thread...
ndsad[10863]: Family `lo':
ndsad[10863]: Killing `lo' thread...
ndsad[10863]: NFC<lo> status on Wed Mar 31 22:40:27 2010
0/30 messages ready, 0 flows seen...
0/64 (0.00%) hash usage, 0 entries scaned, 0 dropped
ndsad[10863]: Family `eth':
ndsad[10863]: Killing `eth2:2' thread...
ndsad[10866]: Halting on Wed Mar 31 22:39:27 2010
ndsad[10866]: Killing scaner thread...
ndsad[10863]: Killing `eth2:3' thread...
ndsad[10863]: Killing `eth2:1' thread...
ndsad[10863]: Killing `eth2:0' thread...
ndsad[10863]: Killing `eth2' thread...
ndsad[10863]: Killing `eth1:0' thread...
ndsad[10863]: Killing `eth1' thread...
ndsad[10863]: NFC<eth> status on Wed Mar 31 22:40:27 2010
9/30 messages ready, 294 flows seen...
32/32 (100.00%) hash usage, 279 entries scaned, 279 dropped
ndsad[10863]: Heap<1>: 279/1092 nodes, 16740/65520 bytes
ndsad[10863]: Heap<2>: 0/-1 nodes, 0/-52 bytes
ndsad[10834]: WatchDog: child[10863]: SIGSEGV signal cought...
ndsad[10834]: WatchDog: recovering abnormal termination...
ndsad[10876]: `eth1': new device
ndsad[10878]: `eth1' thread started successfully.
ndsad[10834]: WatchDog: child[10876] started on Wed Mar 31 22:39:27 2010
ndsad[10876]: `eth1:0': new device
ndsad[10876]: `eth2': new device
ndsad[10879]: `eth1:0' thread started successfully.
ndsad[10879]: `eth1:0' thread is preparing for dummy loop call
ndsad[10880]: `eth2' thread started successfully.
ndsad[10880]: `eth2' thread is preparing for dummy loop call
ndsad[10876]: `eth2:0': new device
ndsad[10876]: `eth2:1': new device
ndsad[10881]: `eth2:0' thread started successfully.
ndsad[10881]: `eth2:0' thread is preparing for dummy loop call
ndsad[10882]: `eth2:1' thread started successfully.
ndsad[10882]: `eth2:1' thread is preparing for dummy loop call
ndsad[10876]: `eth2:3': new device
ndsad[10876]: `eth2:2': new device
ndsad[10883]: `eth2:3' thread started successfully.
ndsad[10883]: `eth2:3' thread is preparing for dummy loop call
ndsad[10876]: `lo': new device
ndsad[10884]: `eth2:2' thread started successfully.
ndsad[10884]: `eth2:2' thread is preparing for dummy loop call
ndsad[10885]: `lo' thread started successfully.
ndsad[10885]: `lo' thread is preparing for dummy loop call
ndsad[10878]: `eth1' thread is preparing for PCAP loop call
ndsad[10878]: pcap_datalink(eth1) = 1
ndsad[10878]: Set ppp offset = 4
ndsad[10879]: Halting on Wed Mar 31 22:39:28 2010
ndsad[10876]: Halting on Wed Mar 31 22:39:28 2010
ndsad[10878]: Halting on Wed Mar 31 22:39:28 2010
ndsad[10880]: Halting on Wed Mar 31 22:39:28 2010
ndsad[10880]: Killing scaner thread...
ndsad[10880]: Family `lo':
ndsad[10880]: Killing `lo' thread...
ndsad[10879]: Killing scaner thread...
ndsad[10882]: Halting on Wed Mar 31 22:39:28 2010
ndsad[10882]: Killing scaner thread...
ndsad[10881]: Halting on Wed Mar 31 22:39:28 2010
ndsad[10881]: Killing scaner thread...
ndsad[10880]: NFC<lo> status on Wed Mar 31 22:40:28 2010
0/30 messages ready, 0 flows seen...
0/64 (0.00%) hash usage, 0 entries scaned, 0 dropped
ndsad[10880]: Family `eth':
ndsad[10880]: Killing `eth2:2' thread...
ndsad[10883]: Halting on Wed Mar 31 22:39:28 2010
ndsad[10883]: Killing scaner thread...
ndsad[10880]: Killing `eth2:3' thread...
ndsad[10880]: Killing `eth2:1' thread...
ndsad[10880]: Killing `eth2:0' thread...
ndsad[10880]: Killing `eth2' thread...
ndsad[10878]: Killing scaner thread...
ndsad[10876]: Killing scaner thread...
ndsad[10897]: Session opened on Wed Mar 31 22:39:33 2010
ndsad[10897]: binary version `1.32.1'
ndsad[10897]: WatchDog: Dog waken...
ndsad[10897]: WatchDog: child[10898] started on Wed Mar 31 22:39:33 2010
ndsad[10898]: Pid file found:
ndsad[10898]: /var/run/ndsad.pid
ndsad[10898]: Check, if other instance is running
ndsad[10897]: WatchDog: child[10898]: 255 return code...
ndsad[10897]: WatchDog: terminating...
ndsad[10897]: Unable to unlink pid file of another process
ndsad[10897]: Session closed on Wed Mar 31 22:39:33 2010
ndsad[5248]: Session opened on Wed Mar 31 22:44:49 2010
ndsad[5248]: binary version `1.32.1'
ndsad[5248]: WatchDog: Dog waken...
ndsad[5251]: `eth1': new device
ndsad[5253]: `eth1' thread started successfully.
ndsad[5248]: WatchDog: child[5251] started on Wed Mar 31 22:44:49 2010
ndsad[5251]: `eth1:0': new device
ndsad[5251]: `eth2': new device
ndsad[5254]: `eth1:0' thread started successfully.
ndsad[5254]: `eth1:0' thread is preparing for dummy loop call
ndsad[5255]: `eth2' thread started successfully.
ndsad[5255]: `eth2' thread is preparing for dummy loop call
ndsad[5251]: `eth2:0': new device
ndsad[5251]: `eth2:1': new device
ndsad[5257]: `eth2:1' thread started successfully.
ndsad[5257]: `eth2:1' thread is preparing for dummy loop call
ndsad[5256]: `eth2:0' thread started successfully.
ndsad[5256]: `eth2:0' thread is preparing for dummy loop call
ndsad[5251]: `eth2:2': new device
ndsad[5251]: `lo': new device
ndsad[5258]: `eth2:2' thread started successfully.
ndsad[5258]: `eth2:2' thread is preparing for dummy loop call
ndsad[5259]: `lo' thread started successfully.
ndsad[5259]: `lo' thread is preparing for dummy loop call
ndsad[5253]: `eth1' thread is preparing for PCAP loop call
ndsad[5253]: pcap_datalink(eth1) = 1
ndsad[5253]: Set ppp offset = 4
ndsad[5260]: `eth2:3': new device
ndsad[5300]: `eth2:3' thread started successfully.
ndsad[5300]: `eth2:3' thread is preparing for dummy loop call