User Tools

Site Tools


биллинговая_система_freenibs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
биллинговая_система_freenibs [2011/04/12 11:12]
val
биллинговая_система_freenibs [2013/05/22 13:50] (current)
Line 34: Line 34:
  
 [server:​local/​src/​freeradius-1.0.1] # ./configure --prefix=/​usr/​local/​freenibs [server:​local/​src/​freeradius-1.0.1] # ./configure --prefix=/​usr/​local/​freenibs
- 
-[server:​local/​src/​freeradius-1.0.1] # sed -i .old -e '​s/​rlm_x99_token//​g'​ Make.inc 
  
 [server:​local/​src/​freeradius-1.0.1] # make && make install [server:​local/​src/​freeradius-1.0.1] # make && make install
 </​code>​ </​code>​
- 
 ===== Создание базы данных FreeNIBS и добавление первого пакета и пользователя ===== ===== Создание базы данных FreeNIBS и добавление первого пакета и пользователя =====
 <​code>​ <​code>​
Line 49: Line 46:
 [server:​local/​src/​freeradius-1.0.1] # mysql < src/​modules/​rlm_nibs/​drivers/​rlm_nibs_mysql/​nibs_mysql.sql [server:​local/​src/​freeradius-1.0.1] # mysql < src/​modules/​rlm_nibs/​drivers/​rlm_nibs_mysql/​nibs_mysql.sql
  
-[server:​local/​src/​freeradius-1.0.1] # mysql +[server:​local/​src/​freeradius-1.0.1] # mysql freenibs 
-mysql> use freenibs+mysql> insert into packets (num,​packet) values (1,'pppoe_users');
-Database changed +
- +
-mysql> insert into packets (num,​packet) values (1,pppoe_users);+
 Query OK, 1 row affected (0.00 sec) Query OK, 1 row affected (0.00 sec)
  
-mysql> insert into users (user, password, crypt_method,​ gid) values (’uX’,’pX’,0,1);+mysql> insert into users (user, password, crypt_method,​ gid) values ('​user1'​,'​pfreenibs1'​,0,1);
 Query OK, 1 row affected (0.00 sec) Query OK, 1 row affected (0.00 sec)
  
 mysql> quit mysql> quit
 </​code>​ </​code>​
- 
 ===== Настройка FreeNIBS ===== ===== Настройка FreeNIBS =====
 <​code>​ <​code>​
Line 70: Line 63:
  
  
-[server:​freenibs/​etc/​raddb] # sed -i .old -e '​s/​%{NAS-Port}/​\${n_p}/​g'​ nibs.conf+[server:​freenibs/​etc/​raddb] # sed -i.old -e '​s/​%{NAS-Port}/​\${n_p}/​g'​ nibs.conf
 </​code>​ </​code>​
  
Line 77: Line 70:
 [server:~] # /​usr/​local/​freenibs/​sbin/​radiusd -xxyz [server:~] # /​usr/​local/​freenibs/​sbin/​radiusd -xxyz
  
-[server:~] # /​usr/​local/​freenibs/​bin/​radtest ​uX pX 127.0.0.1 0 testing123+[server:~] # /​usr/​local/​freenibs/​bin/​radtest ​user1 pfreenibs1 ​127.0.0.1 0 testing123
 </​code>​ </​code>​
  
Line 86: Line 79:
 [server:/​usr/​local/​src] # tar -xjf freenibs-0.0.3-bf3_freeradius-0.9.3.tar.bz2 ​ [server:/​usr/​local/​src] # tar -xjf freenibs-0.0.3-bf3_freeradius-0.9.3.tar.bz2 ​
 [server:/​usr/​local/​src] # mkdir /var/www [server:/​usr/​local/​src] # mkdir /var/www
-[server:/​usr/​local/​src] # cp -R freenibs-0.0.3-bf3_freeradius-0.9.3/​src/​modules/​rlm_nibs/​utils/​web/​ /var/www/+[server:/​usr/​local/​src] # cp -R freenibs-0.0.3-bf3_freeradius-0.9.3/​src/​modules/​rlm_nibs/​utils/​web/​/var/www/
    
 [server:~] # cat /​var/​www/​admin/​include/​defines.php [server:~] # cat /​var/​www/​admin/​include/​defines.php
Line 97: Line 90:
 define("​USE_CARDS","​0"​);​ define("​USE_CARDS","​0"​);​
 ... ...
 +
 +[server:~] # rcsdiff /​var/​www/​admin/​menu/​edit_user_menu.php
 +7c7
 +<   echo
 +---
 +>   echo "";​
 +
 [server:~] # cp /​usr/​local/​src/​freenibs-0.0.3-bf3_freeradius-0.9.3/​src/​modules/​rlm_nibs/​doc/​INSTALL /​usr/​local/​etc/​apache/​nibs.conf [server:~] # cp /​usr/​local/​src/​freenibs-0.0.3-bf3_freeradius-0.9.3/​src/​modules/​rlm_nibs/​doc/​INSTALL /​usr/​local/​etc/​apache/​nibs.conf
  
Line 108: Line 108:
   php_admin_flag register_globals On   php_admin_flag register_globals On
   ​   ​
-  ServerName admin.dX.class+  ServerName admin.corpX.un
  
   DocumentRoot /​var/​www/​admin   DocumentRoot /​var/​www/​admin
Line 127: Line 127:
   php_admin_flag register_globals On   php_admin_flag register_globals On
   ​   ​
-  ServerName stat.dX.class+  ServerName stat.corpX.un
  
   DocumentRoot /​var/​www/​stat   DocumentRoot /​var/​www/​stat
Line 147: Line 147:
 [server:~] # /​usr/​local/​etc/​rc.d/​apache restart [server:~] # /​usr/​local/​etc/​rc.d/​apache restart
  
-[server:~] # cat /​etc/​namedb/​master/​dX.class +[server:~] # cat /​etc/​namedb/​master/​corpX.un 
- +... 
-admin   ​IN ​     A       10.10.105.X +admin   ​IN ​     A       192.168.X.10 
-stat    IN      A       10.10.105.X +stat    IN      A       192.168.X.10 
-+...
  
 Настройка учета. Настройка учета.
биллинговая_система_freenibs.1302592347.txt.gz · Last modified: 2013/05/22 13:50 (external edit)