Table of Contents

Биллинговая система NetAMS

http://www.netams.com/

Установка системы

FreeBSD

[server:~] # pkg_add -r netams

[server:~] # cd /usr/local/etc/

[server:/usr/local/etc] # cp netams.conf.sample netams.conf

Ubuntu

root@server:~# apt-get install netams

root@server:~# cd /etc/netams/

CentOS/SL

http://nagg.ru/2011/03/ustanovka-netams-3-4-5-pod-centos-nastroyka-i-tyuning/

Настройка системы

FreeBSD/Ubuntu

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
...

Запуск системы

FreeBSD

[server:~] # /usr/local/etc/rc.d/netams rcvar

[server:~] # /usr/local/etc/rc.d/netams start
Starting netams.

Ubuntu

root@server# cat /etc/default/netams
...
RUN="yes"
...
root@server# /etc/init.d/netams start
 * Starting NeTAMS daemon netams                                         [fail]

FreeBSD/Ubuntu

# 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

Web интерфейс

Firefox → Вид → Стиль страницы → Без стиля

Сервис HTTP

FreeBSD

[server:~] # cp /usr/local/share/netams/netams-apache-freebsd.conf /usr/local/etc/apache22/Includes/

[server:~] # /usr/local/etc/rc.d/apache22 restart

http://server.corpX.un/netams/stat

Ubuntu

root@server:~# cat /etc/apache2/apache2.conf
...
Include /etc/netams/apache.conf
root@server:~# /etc/init.d/apache2 restart

http://server.corpX.un/netams/stat/