[server:~] # pkg_add -r netams [server:~] # cd /usr/local/etc/ [server:/usr/local/etc] # cp netams.conf.sample netams.conf
root@server:~# apt-get install netams root@server:~# cd /etc/netams/
server# cat netams.conf ... # unit group name CLIENTS acct-policy ip www mail unit host name gate ip 172.16.1.X acct-policy ip www mail unit host name server ip 192.168.X.10 acct-policy ip www mail # unit user name client1 ip 192.168.0.10 parent CLIENTS email client1@domain.ru acct-policy ip www mail unit net name LAN ip 192.168.X.0/24 acct-policy ip www mail ... service storage 1 type mysql # host 127.0.0.1 # user root # password password ... service data-source 1 type libpcap source INTERFACENAME ...
[server:~] # /usr/local/etc/rc.d/netams rcvar [server:~] # /usr/local/etc/rc.d/netams start Starting netams.
root@server# cat /etc/default/netams
... RUN="yes" ...
root@server# /etc/init.d/netams start * Starting NeTAMS daemon netams [fail]
# telnet localhost 20001 … Username: admin Password: aaa # show ver # show ds # show conf # conf t (config)# service html (config-html:0)# htaccess no (config-html:0)# exit (config)# exit # save # html # quit
Firefox → Вид → Стиль страницы → Без стиля
[server:~] # cp /usr/local/share/netams/netams-apache-freebsd.conf /usr/local/etc/apache22/Includes/ [server:~] # /usr/local/etc/rc.d/apache22 restart
root@server:~# cat /etc/apache2/apache2.conf
... Include /etc/netams/apache.conf
root@server:~# /etc/init.d/apache2 restart