Доброго времени ВСЕМ линуксовод и создателям Altlinux Server 5.0 Ковчег
Спасибо за то что одобрили мою кандидатуру и регистрацию на форуме
Я системный админ небольшого предприятия (50-60 компов + Вай-Фай на каждом этаже)
на сегодняшний день сеть управляется шлюзом Ideco ICS 4.0
авторизация IP+MAC/
штука хорошая, удобная, легкая в освоении, один недостаток платная и дорогая.
В итоге каждые 30 дней (по выходным) приходится перебивать БД (шлюз триальный)
Хозяева на это дело тратить деньги не будут, хотя уламывал.
Встал вопрос, что идеку надо менять на што-то более или менее похожее.
выбор пал на Альт линукс сервер.
В первом посте как системная база используется
Альтлинукс Сервер 5.0 Ковчег настроеный как софтроутер
в составе сервера есть DCHP который который раздает IP
один недостаток все юзеры подключеные к серверу будут шлюзится на полной скорости в Интенет.
оговорка: проксю юзать не хочу многомесячная практика показала СКВИД виснет при большой нагрузке.
на Идеке есть билинг, и есть мониторинги - за время пользования уже привык к таким вещам.
Значит к шлюзу (АльтЛинукс сервер 5.0 ковчег) нада прикрутить билинг.
Этим самым билингом стал Старгейзер
юзер подвесился к серверу
сервер выдал Ip
Билинг проверил может ли этот юзер работать за пределами сети или нет, и если может работать то на какой скорости и в какое время.
на сегодняшний день пока сервак сам по себе а билинг сам.
а хотелось бы как-то согласовать их работу,
у меня очень маленький опыт работы с линуксом, я виндузятник
но виндовые сервера и програмное обеспечение, типо трафик инспектор, штуки не дешевые.
вот приходится учится.
на основе этой темы хочу забацать мануал (если получится).
Заранее спасибо за понимание.
Помогите плиз поставить СтарГейзер на Линукс Серевр 5.0 Ковчег.
как основу испльзую дистрибутив
http://mirror.yandex.ru/altlinux/p5/iso/ark/altlinux-5.0.0-ark-server-i586-ru-install-cd.isoэто готовий Софтроутер (програмный шлюз) который поддерживает NAT.
записываю на диск и ставлю
на НР Vectra VL 400 VL
(рабочая станция Пентиум 3-1000, ОЗУ 512 МБ, HHD 80 Гиг., две сетевые платы)
Уcтанавливаю на рабочую станцию. -
http://docs.altlinux.org/archive/p5/office-server/прописываю репозитарий -
http://forum.altlinux.org/index.php/topic,5569.msg79280.html#msg79280Открываю доступ ROOT через SSL
Если входите рутом- то не пустит, будет переспрашивать пароль без конца.
Либо входите под пользователем, а потом получайте права root, либо раскомментируйте строчку в конфиге /etc/openssh/sshd.config
Цитировать
PermitRootLogin without-password
и придайте ей вид
Цитировать
PermitRootLogin yes
после чего перезапустите сервер
Цитировать
service sshd restart
Обновляю
Mysqlapt-get install mysql
apt-get install libMySQL-devel
# ldconfig -p | grep libmysqlclient_r.so
libmysqlclient_r.so.15 (libc6) => /usr/lib/libmysqlclient_r.so.15
libmysqlclient_r.so (libc6) => /usr/lib/libmysqlclient_r.so
# mysql_config --libs
-rdynamic -L/usr/lib/mysql -lmysqlclient -L/usr/lib -lssl -lcrypto
# mysql_config --libs_r
-rdynamic -L/usr/lib/mysql -lmysqlclient_r -L/usr/lib -lssl -lcrypto
Устанавливаю модуль
Макеapt-get install make
Устанавливаю модуль
gccapt-get install gcc4.4
Устанавливаю модуль
g++apt-get install gcc4.4-c++
Устанавливаю модуль
LibExpat./configure
make install
# ldconfig -p | grep libexpat.so
libexpat.so.1 (libc6) => /usr/lib/libexpat.so.1
libexpat.so.0 (libc6) => /usr/lib/libexpat.so.0
Устанвливаю Stargazer 4.07 (
http://stg.dp.ua/download/server/2.407/stg-2.407.tar.gz)
./build
make install
на мой взгляд компиляция и установка проходит вроде успешно.
логи в прикрепленых файлах
скрипт ./build - > build-log.txt
скрипт make install - > make-log.txt
stargazer.conf
################################################################################
# Stargazer Configuration file #
################################################################################
# LOG file name
# Parameter: required
# Value: file path
# Default: /var/log/stargazer.log
LogFile = /var/log/stargazer.log
# PID file name
# Parameter: optional
# Value: file path
# Default: /var/run/stargazer.pid
PIDFile = /var/run/stargazer.pid
# Traffic classification rules
# Parameter: required
# Value: file path
# Default: /etc/stargazer/rules
Rules = /etc/stargazer/rules
# The time interval between writing detailed user's statistics into the database
# Note: With a large number of users this value should be increased,
# since writting into the database can take a long time.
# Parameter: required
# Values: 1 (hourly), 1/2 (every half hour), 1/4 (every 15 m), 1/6 (every 10 m)
# Default: 1/2
DetailStatWritePeriod = 1/2
# The time interval between writing summary user's statistics into the database
# Parameter: optional
# Value: 1 ... 1440 (minutes)
# Default: 10
StatWritePeriod = 10
# Day of charging fee
# Note: 0 - The last day of the month
# Parameter: required
# Value: 0 ... 31
# Default: 1
DayFee = 1
# Fee charged at the last (yes) or first (no) day of tariffication period.
# Defines how the fee will be charged in the transition to the new tariff.
# User has tariff A with fee 100. Changing it to tariff B with fee 200
# will result in charging user's account at 100 if DayFeeIsLastDay = yes
# and at 200, if DayFeeIsLastDay = no
# Parameter: required
# Values: yes, no
# Default: no
DayFeeIsLastDay = no
# Day of changing delayed tariffs and resetting summary user's statistics.
# Defines the edge of the tariffication period.
# Parameter: required
# Value: 0 ... 31. 0 - The last day of the month
# Default: 1
DayResetTraff = 1
# Defines whether to charge fee daily (yes) or monthly (no)
# Parameter: required
# Values: yes, no
# Default: no
SpreadFee = no
# Defines whether the user can access the internet if it has no cash,
# but remained prepaid traffic
# Parameter: required
# Values: yes, no
# Default: no
FreeMbAllowInet = no
# Defines what will be written in the traffic cost in detail_stat.
# If user still has the prepaid traffic and WriteFreeMbTraffCost = no,
# then the traffic cost willn't be written in detail_stat.
# If user doestn't have prepaid traffic and WriteFreeMbTraffCost = no,
# then the traffic cost will be written in detail_stat.
# When WriteFreeMbTraffCost = yes the traffic cost will be recorded in any case.
# Parameter: required
# Values: yes, no
# Default: yes
WriteFreeMbTraffCost = yes
# Charge a full monthly fee even if user was "frozen" a part
# of the tariffication period
# Parameter: optional
# Values: yes, no
# Default: no
FullFee = yes
# Allow user to see and use a full cash (yes) or hide a part of it (no)
# for the next fee charge
# Parameter: optional
# Values: yes, no
# Default: yes
# ShowFeeInCash=yes
# The names of directions. Direction without names will not appear in
# authorizer and configurator.
# Note: Names consisting of several words should be quoted
# Parameter: optional
# Values:
<DirNames>
DirName0 = Internet
DirName1 =
DirName2 =
DirName3 =
DirName4 =
DirName5 =
DirName6 =
DirName7 =
DirName8 =
DirName9 =
</DirNames>
# Amount of stg-exec processes.
# These processes are responsible for the execution of scripts OnConnect,
# OnDisconnect, etc.
# Amount of processes means how many scripts can be executed simultaneously.
# Recommend to leave 1 to avoid errors when executing scripts
# Parameter: optional
# Value: 1 ... 1024
# Default: 1
ExecutersNum = 1
# Message queue identifier for the script executer.
# It may be changed if there're a needs to run multiple copies of stargazer.
# Warning: If you do not understand it, do not touch this setting!
# Parameter: optional
# Value: 0 ... 2 ^ 32
# Default: 5555
# ExecMsgKey = 5555
# The path to directory with server modules
# Parameter: required
# Value: directory path
# Default: /usr/lib/stg
ModulesPath = /usr/lib/stg
# Directory where the "monitor" files are located.
# A blank files will be created in this directory. The modification time of such
# files will be changed about once a minute. If server crashes or some of server
# component hang, the files will stop refreshing, and on this basis we can define
# the failure of the server and if necessary restart.
# If option is omitted or blank, the monitoring is not performed.
# Parameter: optional
# Value: file path
# Default: /var/stargazer/monitor
#MonitorDir=/var/stargazer/monitor
# Defines message maximum lifetime
# Note: 0 — unlimited
# Parameter: optional
# Value: any numeric
# Default: 0 (day)
# MessagesTimeout = 0
################################################################################
# Store module
# Configure the module that works with the database server
# Warning: Only one store module could be used at the same time!
#<IncludeFile "conf-enabled.d/store_*.conf">
#</IncludeFile>
[color="#FF0000"]<StoreModule store_mysql>
# Database server address
# Parameter: required
# Value: IP address or DNS name
# Default: localhost
dbhost = localhost
# Database name
# Parameter: required
# Value: any, supported by database
# Default: stg
dbname = stg
# Database username
# Parameter: required
# Value: any, supported by database
# Default: stg
dbuser = stg
# Database password
# Parameter: required
# Value: any, supported by database
# Default: 123456
rootdbpass = 123456
</StoreModule>[/color]
################################################################################
# Other modules
<Modules>
<IncludeFile "conf-enabled.d/mod_*.conf">
</IncludeFile>
</Modules>
################################################################################
это лог создания базы данных MySQL
[root@host-20 stargazer]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.0.89 ALT Linux MySQL RPM
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> [color="#006400"]CREATE DATABASE `stg`;[/color]
Query OK, 1 row affected (0.00 sec)
mysql> [color="#006400"]GRANT ALL ON `stg` . * TO 'stg'@'localhost' IDENTIFIED BY '123456';[/color]
Query OK, 0 rows affected (0.05 sec)
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| stg |
+--------------------+
3 rows in set (0.01 sec)
вроде все сделал
запускаю
# stargazer
/var/log/strgazer.log
2011-05-16 19:58:39 -- ---------------------------------------------
2011-05-16 20:31:14 -- Stg v. 2.407
2011-05-16 20:31:14 -- Message queue created successfully. msgKey=5555 msgID=0
2011-05-16 20:31:14 -- Timer thread started successfully.
2011-05-16 20:31:14 -- Storage plugin: mysql_store v.0.67. Loading successfull.
2011-05-16 20:31:14 -- Users started successfully.
2011-05-16 20:31:14 -- Traffcounter started successfully.
2011-05-16 20:31:14 -- Module: 'Ether_cap v.1.2'. Start successfull.
2011-05-16 20:31:14 -- Module: 'InetAccess authorization plugin v.1.4'. Start successfull.
2011-05-16 20:31:14 -- Module: 'Always Online authorizator v.1.0'. Start successfull.
2011-05-16 20:31:14 -- Module: 'Pinger v.1.01'. Start successfull.
2011-05-16 20:31:14 -- Module: 'Stg configurator v.0.08'. Start successfull.
2011-05-16 20:31:14 -- Stg started successfully.
2011-05-16 20:31:14 -- +++++++++++++++++++++++++++++++++++++++++++++
Две недели бьюсь и никакого прогресса.
Помогите ПЛИЗ!
здесь находится диструбутив билига и мануал разроботчика -
http://local.com.ua/forum/topic/27198-stg-2407/облазил весь форум но решить проблему не получается
Так же хочу прикрутить это -
http://stargazer.net.ua/billing_setup.pdf