+7 (916) 741 5495
support@netams.com

                         english   

 

NeTAMS PC-


PC- : , , . () . , .

, MySQL, Apache, , . , ( ) . NeTAMS , , , .

, eth1 192.168.0.1, 255.255.255.0. 192.168.0.2 192.168.0.254, .10, .11 .12.

, , HTTP-.
/etc/netams.cfg :
debug none
user name admin real-name Vasya_Pupkin 
	password aaa email root permit all
schedule time daily action "send report 
	to admin on LAN on NETWORK+"

service server 0
login local
listen 20001
max-conn 6

service processor 0
lookup-delay 20
flow-lifetime 120
policy name ip target proto ip
policy name www target proto tcp ports 80 
policy name rus target file /etc/ru-networks.txt
restrict all drop local pass
unit group name NETWORK acct-policy ip tcp !rus
unit net name LAN ip 192.168.0.0 mask 255.255.255.0 
	no-local-pass acct-policy ip tcp !rus
unit host name server ip 192.168.0.1 parent NETWORK 
	acct-policy ip tcp !rus
unit user name petya ip 192.168.0.10 parent NETWORK password abc 
	acct-policy ip tcp !rus
unit user name fedya ip 192.168.0.11 parent NETWORK password def 
	acct-policy ip tcp !rus
unit user name masha ip 192.168.0.12 parent NETWORK password ghi 
	acct-policy ip tcp !rus
storage 1 all

service storage 1
type mysql

service data-source 1
type libpcap
source eth1
rule 11 "ip"

service alerter 0
report oid 06100 name rep1 type traffic period day detail simple
smtp-server 127.0.0.1

service html 0
path /var/www/traffic
language en
run 5min
htaccess yes
client-pages all
.

1	debug none
2	user name admin real-name Vasya_Pupkin password 
	aaa email root permit all
3	schedule time daily action "send report to admin on LAN on NETWORK+"
main, "service main" . - -. , NeTAMS, (permit all). "aaa" . "root" . admin root@, LAN NETWORK ( ).

4 ( main server)

5	service server 0
6	login local
7	listen 20001
8	max-conn 6
server, NeTAMS telnet. 127.0.0.1, 20001, . , "admin" "aaa" - .

9
, server processor .

10	service processor 0
11	lookup-delay 20
12	flow-lifetime 120
13	policy name ip target proto ip
14	policy name www target proto tcp ports 80 
15	policy name rus target file /etc/ru-networks.txt
16	restrict all drop local pass
- processor. 10 11 , . . , . "ip" IP-, "www" - , TCP 80, "rus" - , , /etc/ru-networks.txt. NeTAMS, addon/. , 16- , , ( ) - . , , . , .. "" .

17	unit group name NETWORK acct-policy ip tcp !rus
18	unit net name LAN ip 192.168.0.0 mask 255.255.255.0 
	no-local-pass acct-policy ip tcp !rus
19	unit host name server ip 192.168.0.1 parent NETWORK 
	acct-policy ip tcp !rus
20	unit user name petya ip 192.168.0.10 parent NETWORK 
	password abc acct-policy ip tcp !rus
21	unit user name fedya ip 192.168.0.11 parent NETWORK 
	password def acct-policy ip tcp !rus
22	unit user name masha ip 192.168.0.12 parent NETWORK 
	password ghi acct-policy ip tcp !rus
, . , . , . , , . , inverse, "!", "rus". LAN no-local-pass, - , , - " ". , HTML-.

23	storage 1 all
processor , storage 1. - raw summary.

25	service storage 1
26	type mysql
. - MySQL, : root, , SQL- ( unix socket). - netams.

27	service data-source 1
28	type libpcap
29	source eth1
30	rule 11 "ip"
, NeTAMS. eth1 ( ), IP-, ( libpcap, , , tcpdump). , "11", .

32	service alerter 0
33	report oid 06100 name rep1 type traffic period day detail simple
34	smtp-server 127.0.0.1
, alerter , smtp- ( , NeTAMS). , sendmail/postfix/exim/etc. , 33 .

36	service html 0
37	path /var/www/traffic
38	language en
39	run 5min
40	htaccess yes
41	client-pages all
html HTML- . netams 5 /var/www/traffic. ( ). , . ( admin:aaa, -). :
ServerName www.company.ru
<Directory /var/www/traffic>
	Options FollowSymLinks ExecCGI Indexes
	AllowOverride All
</Directory>
Alias /stat/ /var/www/traffic/
http://www.company.ru/stat/ , http://www.company.ru/stat/clients/fedya/ ( -)

[an error occurred while processing this directive]