Установка ABillS на Debian. Для работы системы нужны модули. Меняем в конфиге радиуса: 5/6. Установка ABillS на Debian.


Чтобы посмотреть этот PDF файл с форматированием и разметкой, скачайте его и откройте на своем компьютере.
2018/04/03 09:00
1/6
�#AB0=2:0
ABillS
=0
Debian
Advanced Billing Solution - http://abills.net.ua/wiki/
�#AB0=2:0
ABillS
=0
Debian
�AE4=0O:
Debian 7.8.0-i386. \\
Debian 8.1 \\
�@8 CAB0=2:5, ?0@05B@K:
Standart system utilities
0AB@08205 8=B5@D59AK 8
DNS
#AB0=02;8205
SSH:
# apt-get install ssh
�0;LH5 @01B05 G5@57
SSH,
�����&#x=0;Zµ&#xG:;�?MBC A5@25@ 6= ?5@5=5AB8 2 C:@=5 5AB5G:.
�/ 8A?;L7CN :;85=B
Putty
.
!:0G8205
abills:
�0 5=B =0?8A0=8O AB0BL8 0:BC0;L=0O 25@A8O
0.57
� (!E48B5
AN40
8
�?@25@LB5).
# cd /usr
# wget http://heanet.dl.sourceforge.net/project/abills/abills/0.57/abills-0.57.tgz
# tar zxvf abills-0.57.tgz
# cp /usr/abills/libexec/config.pl.default /usr/abills/libexec/config.pl
&#x :;�&#x :;�75=O5 :=D83C@0F8==K9 D09;
/usr/abills/libexec/cong.pl
#DB configuration
$conf{dbhost}='localhost';
$conf{dbname}='abills';
$conf{dbuser}='abills';
$conf{dbpasswd}='sqlpassword';
$conf{ADMIN_MAIL}='info@your.domain';
$conf{USERS_MAIL_DOMAIN}="your.domain";
���&#x8=;Š&#xB@;�&#x8=;Š&#xB@;�&#x8=;Š&#xB@;�&#x8=;Š&#xB@;�# 8A?;L7C5BAO 4;O H8D@20=8O ?0@;59 048=8AB@0B@2 8 ?;L720B5;59.
$conf{secretkey}="test12345678901234567890"; \\
@8 875=5=88 7=0G5=8O 2
$conf{secretkey}
�&#x5=;&#xO9;µ&#x 5;0?5=O9B5 53 B0:65 2 D09;5
/usr/abills/db/abills.sql
���0AB@9:0 A?CBAB2CNI53 
MySQL
# apt-get install mysql-server
Last update:
2015/12/05
15:52
abills:docs:manual:install_debian:ru
http://abills.net.ua/wiki/doku.php/abills:docs:manual:install_debian:ru?rev=1446645227
http://abills.net.ua/wiki/
Printed on 2018/04/03 09:00
Debian 8.xx
# apt-get install mariadb-server
�&#x ?;�&#x ?;�!740Q ?;L720B5;O 8 107C.
# mysql --default-character-set=utf8 -u root -p
�� :=A;8
mysql
45;05 :
use mysql;
GRANT ALL ON abills.* TO `abills`@localhost IDENTIFIED BY "sqlpassword";
CREATE DATABASE abills DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
flush privileges;
quit;
03@C605 B01;8FK 2 107C.
# cd /usr/abills/db/
# mysql --default-character-set=utf8 -D abills abills.sql -p
Web Server
Apache
�#AB0=2:0
Apache
# apt-get install apache2
�!740Q A5@B8D8:0BK.
# /usr/abills/misc/certs_create.sh apache
�&#x 3;�&#x 3;�&#x 3;�?8@C5 3B2K9 :=D83
Apache
�2 ?0?:C 2=5H=8E :=D83C@0F89
apache
Apache 2.2
# cp /usr/abills/misc/apache/abills_httpd.conf /etc/apache2/Includes/
Apache 2.4
# cp /usr/abills/misc/apache/abills_httpd.conf /etc/apache2/sites-enabled/
�:;NG05 4C;8 4;O 0?0G0:
a2enmod ssl
a2enmod rewrite
a2enmod suexec
2018/04/03 09:00
3/6
�#AB0=2:0
ABillS
=0
Debian
Advanced Billing Solution - http://abills.net.ua/wiki/
a2enmod include
a2enmod cgid
�&#x D;	&#x; ;&#x;0;&#x D;	&#x; ;&#x;0;&#x D;	&#x; ;&#x;0;!7405 D09; ;30 H81:
Abills
# mkdir /var/log/httpd
# touch /var/log/httpd/abills-error.log
# service apache2 restart
Perl modules
��;O @01BK A8AB5K =C6=K 4C;8.
DBI
# apt-get install libdbi-perl
DBD-mysql
# apt-get install libdbd-mysql-perl
Digest-MD5
4;O
Chap
�02B@870F88
# apt-get install libdigest-md5-le-perl
Digest-SHA1
4;O
MS-ChapV2
�02B@870F88
# apt-get install libdigest-sha-perl
libnet
���C65= B;L: ?@8 02B@870F88 87
UNIX passwd
# apt-get install libnet1
Time-HiRes
�������C65= B;L: 4;O B5AB8@20=8O A:@AB8 2K?;=5=8O 02B@870F88, 0::0C=B8=30, 8 AB@0=8F
251-8=B5@D59A0
Radius
=AB0;OF8O:
# apt-get install libperl-dev gcc make
# wget ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-2.2.7.tar.gz
# tar zxvf freeradius-server-2.2.7.tar.gz
# cd freeradius-server-2.2.7
# ./configure --prefix=/usr/local/freeradius --with-rlm-perl-lib-dir=/usr/lib/ --with-openssl=no
# make
# make install
�0AB@9:0
cp /usr/abills/misc/freeradius/v2/radiusd.conf /usr/local/freeradius/etc/raddb/radiusd.conf
rm /usr/local/freeradius/etc/raddb/sites-enabled/*
cp /usr/abills/misc/freeradius/v2/users_perl /usr/local/freeradius/etc/raddb/users
cp /usr/abills/misc/freeradius/v2/default_rlm_perl /usr/local/freeradius/etc/raddb/sites-
enabled/abills_default
cp /usr/abills/misc/freeradius/v2/perl /usr/local/freeradius/etc/raddb/modules/
ln -s /usr/local/freeradius/sbin/radiusd /usr/sbin/radiusd
��&#x 2;&#x =;S�$09; 4;O 02B70?CA:0 ,- A7405 8 2AB02;O5 2 =53 A;54CNI89 B5:AB
nano /etc/init.d/freeradius
Last update:
2015/12/05
15:52
abills:docs:manual:install_debian:ru
http://abills.net.ua/wiki/doku.php/abills:docs:manual:install_debian:ru?rev=1446645227
http://abills.net.ua/wiki/
Printed on 2018/04/03 09:00
#!/bin/sh
# Start/stop the FreeRADIUS daemon.
### BEGIN INIT INFO
# Provides: freeradius
# Required-Start: $remote_fs $network $syslog
# Should-Start: $time mysql slapd postgresql samba krb5-kdc
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Radius Daemon
# Description: Extensible, configurable radius daemon
### END INIT INFO
set -e
. /lib/lsb/init-functions
PROG="freeradius"
PROGRAM="/usr/sbin/radiusd"
PIDFILE="/var/run/radiusd/radiusd.pid"
DESCR="FreeRADIUS daemon"
test -f $PROGRAM || exit 0
# /var/run may be a tmpfs
if [ ! -d /var/run/radiusd ]; then
mkdir -p /var/run/radiusd
chown freerad:freerad /var/run/radiusd
fi
export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
ret=0
case "$1" in
start)
log_daemon_msg "Starting $DESCR" "$PROG"
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $PROGRAM || ret=$?
log_end_msg $ret
exit $ret
;;
stop)
log_daemon_msg "Stopping $DESCR" "$PROG"
if [ -f "$PIDFILE" ] ; then
start-stop-daemon --stop --retry=TERM/30/KILL/5 --quiet --pidfile $PIDFILE || ret=$?
log_end_msg $ret
else
log_action_cont_msg "$PIDFILE not found"
log_end_msg 0
fi
;;
restart|force-reload)
$0 stop
$0 start
;;
*)
echo "Usage: $0 start|stop|restart|force-reload"
exit 1
;;
esac
exit 0
chmod +x /etc/init.d/freeradius
update-rc.d freeradius defaults
2018/04/03 09:00
5/6
�#AB0=2:0
ABillS
=0
Debian
Advanced Billing Solution - http://abills.net.ua/wiki/
&#x 2;&#x :;�5=O5 2 :=D835 @048CA0:
#nano /usr/local/freeradius/etc/raddb/radiusd.conf
prefix = /usr/local/freeradius
user = freerad
group = freerad
 D09;5
/usr/local/freeradius/etc/raddb/clients.conf
C40;8BL 2AQ
8 2?8A0BL:
client 127.0.0.1 {
secret = secretpass
shortname = shorrname
}
�!740=85
user
8
group
5A;8
freeradius
����@0=55 =5 1K; CAB0=2;5= B 157 MB3 =5 AB0@BC5B
# groupadd freerad
# useradd -g freerad -s /bash/bash freerad
# chown -R freerad:freerad /usr/local/freeradius/etc/raddb
0?CA:
radius
&#x5 ;�2 @5685 B;04:8
# /usr/local/freeradius/sbin/radiusd -X
8;8
# service radiusd -X
�0 2AO:89 A;CG09 AB02;N 745AL:
�����065BAO =0AB@8;, = =8:B =5 65B ?4:;NG8BLAO
ABillS -
�0AB@9:0
�=A8 2
/etc/crontab
�� ?5@848G5A:85 ?@F5AAK
billd -
��:=B@;5@ 0:B82=KE A5AA89
periodic -
Z&#xOG;&#x=K;&#x5 ;&#x?5;&#x@8;�Z&#xOG;&#x=K;&#x5 ;&#x?5;&#x@8;�4=52=K5 8 5AOG=K5 ?5@848G5A:85 ?@F5AAK
*/5 * * * * root /usr/abills/libexec/billd -all
1 0 * * * root /usr/abills/libexec/periodic daily
1 1 * * * root /usr/abills/libexec/periodic monthly
��&#x 4;&#x;O;&#x D;	&#x;0;#AB0=28BL ?@020 =0 GB5=85 8 70?8AL 251-A5@25@ 4;O D09;2 251 8=B5@D59A0
# mkdir /usr/abills/var/ /usr/abills/var/log /usr/abills/backup
# touch /usr/abills/var/log/abills.log
# chown -Rf www-data /usr/abills/cgi-bin
# chown -Rf www-data /usr/abills/Abills/templates
# chown -Rf www-data /usr/abills/backup
Last update:
2015/12/05
15:52
abills:docs:manual:install_debian:ru
http://abills.net.ua/wiki/doku.php/abills:docs:manual:install_debian:ru?rev=1446645227
http://abills.net.ua/wiki/
Printed on 2018/04/03 09:00
&#x8=;Š&#xB@;�51 8=B5@D59A 048=8AB@0B@0:
https://your.host:9443/admin/
�&#x8=;Š&#xB@;�&#x8=;Š&#xB@;��38= 048=8AB@0B@0 ? C;G0=8N
abills
� ?0@;L
abills
��51 8=B5@D59A 4;O ?;L720B5;59:
https://your.host:9443/
�@25@:0
����;O ?@25@:8 ?@028;L= ;8 =0AB@5= A5@28A =C6= 70?CAB8BL CB8;8BC
radtest
�����C:0702 ;38= 8 ?0@;L ACI5AB2CNI53 ?;L720B5;O.
��&#x5 ;¬&#xI5;«,[&#x ?;�&#x5 ;¬&#xI5;«,[&#x ?;�&#x5 ;¬&#xI5;«,[&#x ?;�A;5 CAB0=2:8, 2 A8AB55 ACI5AB2C5B ?;L720B5;L :0: @07 =0 B0:9 A;CG09.
�38=:
test
� 0@;L:
123456
# /usr/local/freeradius/bin/radtest test 123456 127.0.0.1:1812 0 secretpass 0 127.0.0.1
�����A;8 2AQ ?@028;L= =0AB@5=, 2 6C@=0;5 H81:
/BGQB
/Internet/
H81:0/
� 4;6=0
��?O28BLAO AB@:0
2005-02-23 12:55:55 LOG_INFO: AUTH [test] NAS: 1 (xxx.xxx.xxx.xxx) GT: 0.03799
��A;8 K C2848B5 4@C385 H81:8 AB@8B5 2
���A?8A: H81:
��. A;8 6C@=0; H81: ?CAB
����7=0G8B =5?@028;L= =0AB@5= 2708459AB285 A
RADIUS
��A5@25@, AB@8B5
FAQ
.
From:
http://abills.net.ua/wiki/
-
Advanced Billing Solution
Permanent link:
http://abills.net.ua/wiki/doku.php/abills:docs:manual:install_debian:ru?rev=1446645227
Last update:
2015/12/05 15:52

Приложенные файлы

  • pdf 7783718
    Размер файла: 73 kB Загрузок: 0

Добавить комментарий