Queeq Опубліковано: December 24, 2006 at 17:00 Опубліковано: December 24, 2006 at 17:00 Можно подробнее о - Переделан протокол авторизации, добавлен выбор направлений для подключения а то я не понял...
stg-34 Опубліковано: December 24, 2006 at 17:01 Опубліковано: December 24, 2006 at 17:01 Старый авторизатор будет же работать? Да
Neelix Опубліковано: December 24, 2006 at 17:09 Опубліковано: December 24, 2006 at 17:09 При подключении выбирается чек боксами нужное направление, а как же скрипты OnConnect?
stg-34 Опубліковано: December 24, 2006 at 17:11 Опубліковано: December 24, 2006 at 17:11 При подключении выбирается чек боксами нужное направление, а как же скрипты OnConnect? В скрипты передается еще один параметр вида 1101000000 Нолики и единички соотв. выбранным направлениям
Queeq Опубліковано: December 24, 2006 at 17:34 Опубліковано: December 24, 2006 at 17:34 При подключении выбирается чек боксами нужное направление, а как же скрипты OnConnect? Т.е. если выбрана, например, только Украина, всё остальное работать не будет. Так?
Neelix Опубліковано: December 24, 2006 at 17:47 Опубліковано: December 24, 2006 at 17:47 Получается так, чтобы работало другое направление, нужно включить еще флажок.
Queeq Опубліковано: December 24, 2006 at 17:50 Опубліковано: December 24, 2006 at 17:50 Удобно. Спасибо.
stg-34 Опубліковано: December 24, 2006 at 18:04 Опубліковано: December 24, 2006 at 18:04 в скрипт просто передается выбранные направления. что с ними делать - стг не знает
Xeddin Опубліковано: December 24, 2006 at 18:06 Опубліковано: December 24, 2006 at 18:06 т.е. нужно еще и скрипты ОнКоннект и ОнДисконнект переделать, чтобы все правильно работало. Я правильно понял?
Max Опубліковано: December 24, 2006 at 18:57 Опубліковано: December 24, 2006 at 18:57 т.е. нужно еще и скрипты ОнКоннект и ОнДисконнект переделать, чтобы все правильно работало. Я правильно понял? Да Коротко:Новый плагин, при конекте юзера шлет на роутер пакеты, что юзер подключен. В пакете информация для скрипта. При отключении пакеты перестают слаться, юзер отключается. При обрыве связи роутер отключает юзера по таймауту. Тоесть есть некая урезанная версия стг/прокся-стг которая принимает соединения от авторизатора и отправляет их в центр, а также рулит локальными правилами фаера?
_Om_ Опубліковано: December 24, 2006 at 19:11 Опубліковано: December 24, 2006 at 19:11 (відредаговано) 2006-12-24 20:48:33 -- Stg v. Stg 2.401 2006-12-24 20:48:33 -- Message queue created successfully. msgKey=5555 msgID=491520 2006-12-24 20:48:33 -- Timer thread started successfully. 2006-12-24 20:48:33 -- Storage plugin: file_store v.1.02. Loading successfull. 2006-12-24 20:48:33 -- Error: Plugin loading failed. /usr/lib/stg/mod_auth_ao.so: undefined symbol: _ZN4USER9AuthorizeEjRKSsjPK9BASE_AUTH 2006-12-24 20:48:33 -- Traffcounter: Stop successfull. 2006-12-24 20:48:33 -- Users: Stop successfull. 2006-12-24 20:48:36 -- Queue removed successfully. 2006-12-24 20:48:36 -- StgTimer: Stop successfull. 2006-12-24 20:48:36 -- Stg stopped successfully. если старый модуль копирую то в логе 2006-12-24 20:52:29 -- Stg v. Stg 2.401 2006-12-24 20:52:29 -- Message queue created successfully. msgKey=5555 msgID=524288 2006-12-24 20:52:29 -- Timer thread started successfully. 2006-12-24 20:52:29 -- Storage plugin: file_store v.1.02. Loading successfull. OS ALTLinux 3.0 но сервер не стартует нескажите куда копать ? все нашел в чем грабля просто не скорировался в /sbin/ сам старгазер Зарание благодарен Відредаговано December 24, 2006 at 20:25 _Om_
котопес Опубліковано: December 26, 2006 at 19:32 Опубліковано: December 26, 2006 at 19:32 А что именно нужно добавить в OnConnect OnDisconnect чтоб заработал выбор направлений ?
cristal Опубліковано: December 26, 2006 at 20:14 Опубліковано: December 26, 2006 at 20:14 Скорее всего нет циклов такого рода OnDisconnect: iptables -t filter -D INPUT -s $ip -j ACCEPT while [ $? -eq 0 ] do iptables -t filter -D INPUT -s $ip -j ACCEPT done есть такое ! цикл убивает все правила при правильном отключении !
Neelix Опубліковано: December 26, 2006 at 20:44 Опубліковано: December 26, 2006 at 20:44 имхо антифлудер так работает, можешь попробовать отключить его.
bigkit Опубліковано: January 2, 2007 at 09:53 Опубліковано: January 2, 2007 at 09:53 В примере OnConnect что идёт в комплекте написано следующее #user ID ID=$4 #Selected dirs to connect DIRS=$4 Направления всё-таки пятый параметр ? И ещё. Если авторизатор старой версии - подразумевается, что DIRS=1111111111 или 00000000 ? ======= Отбой. Поспешил написать. Всё уже выяснил сам.
cristal Опубліковано: January 2, 2007 at 22:03 Опубліковано: January 2, 2007 at 22:03 всем привет ! столкнулся с траблой - не могу собрать stargazer 2.4. точно уверен что проблемма в нехватке каких то пакетов (типа g++ и т д) , но каких именно разрулить не удалось вот лог сборки ../Makefile.in:74: deps: Нет такого файла или каталога ../Makefile.in:74: deps: Нет такого файла или каталога ../Makefile.in:74: deps: Нет такого файла или каталога ../Makefile.in:74: deps: Нет такого файла или каталога ../Makefile.in:74: deps: Нет такого файла или каталога ../Makefile.in:74: deps: Нет такого файла или каталога ../Makefile.in:74: deps: Нет такого файла или каталога Makefile:95: deps: Нет такого файла или каталога ../../include/base_store.h:25: warning: 'class BASE_STORE' has virtual functions but non-virtual destructor ../../include/base_store.h:25: warning: 'class BASE_STORE' has virtual functions but non-virtual destructor ../../include/base_store.h:25: warning: 'class BASE_STORE' has virtual functions but non-virtual destructor ../../include/base_plugin.h:30: warning: 'class BASE_PLUGIN' has virtual functions but non-virtual destructor ../../include/base_auth.h:19: warning: 'class BASE_AUTH' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<int>': user.h:81: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<int>' has virtual functions but non-virtual destructor user.h:82: warning: 'class CHG_PASSIVE_NOTIFIER' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >': user.h:91: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >' has virtual funcuser.h:92: warning: 'class CHG_TARIFF_NOTIFIER' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<double>': user.h:101: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<double>' has virtual functions but non-virtual destructor user.h:102: warning: 'class CHG_CASH_NOTIFIER' has virtual functions but non-virtual destructor ../../include/notifer.h: In ig++ -c curr_ip.cpp -g3 -Wall -I ../../include -DLINUX g++ -c settings.cpp -g3 -Wall -I ../../include -DLINUX g++ -c stg_timer.cpp -g3 -Wall -I ../../include -DLINUX g++ -c tariff2.cpp -g3 -Wall -I ../../include -DLINUX g++ -c traffcounter.cpp -g3 -Wall -I ../../include -DLINUX g++ -c user.cpp -g3 -Wall -I ../../include -DLINUX g++ -c user_property.cpp -g3 -Wall -I ../../include -DLINUX g++ -c users.cpp -g3 -Wall -I ../../include -DLINUX g++ -c plugin_runner.cpp -g3 -Wall -I ../../include -DLINUX g++ -c script_executer.cpp -g3 -Wall -I ../../include -DLINUX class TRF_IP_AFTER' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'NOTIFIER_BASE<std::_List_iterator<USER> >': traffcounter.h:129: instantiated from here ../../include/notifer.h:19: warning: 'class NOTIFIER_BASE<std::_List_iterator<USER> >' has virtual functions but non-virtual destructor ../../include/base_store.h:25: warning: 'class BASE_STORE' has virtual functions but non-virtual destructor ../../include/base_plugin.h:30: warning: 'class BASE_PLUGIN' has virtual functions but non-virtual destructor ../../include/base_auth.h:19: warning: 'class BASE_AUTH' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<int>': user.h:81: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<int>' has virtual functions but non-virtual destructor user.h:82: warning: 'class CHG_PASSIVE_NOTIFIER' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >': user.h:91: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >' has virtual funcuser.h:92: warning: 'class CHG_TARIFF_NOTIFIER' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<double>': ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<double>': user.h:101: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<double>' has virtual functions but non-virtual destructor user.h:102: warning: 'class CHG_CASH_NOTIFIER' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<unsigned int>': users.h:60: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<unsigned int>' has virtual functions but non-virtual destructor users.h:61: warning: 'class PROPERTY_NOTIFER_IP_BEFORE' has virtual functions but non-virtual destructor users.h:72: warning: 'class PROPERTY_NOTIFER_IP_AFTER' has virtual functions but non-virtual destructor ../../include/base_store.h:25: warning: 'class BASE_STORE' has virtual functions but non-virtual destructor ../../include/base_plugin.h:30: warning: 'class BASE_PLUGIN' has virtual functions but non-virtual destructor ../../include/base_auth.h:19: warning: 'class BASE_AUTH' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<int>': user.h:81: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<int>' has virtual functions but non-virtual destructor user.h:82: warning: 'class CHG_PASSIVE_NOTIFIER' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >': user.h:91: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >' has virtual funcuser.h:92: warning: 'class CHG_TARIFF_NOTIFIER' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<double>': user.h:101: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<double>' has virtual functions but non-virtual destructor user.h:102: warning: 'class CHG_CASH_NOTIFIER' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<unsigned int>': users.h:60: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<unsigned int>' has virtual functions but non-virtual destructor users.h:61: warning: 'class PROPERTY_NOTIFER_IP_BEFORE' has virtual functions but non-virtual destructor users.h:72: warning: 'class PROPERTY_NOTIFER_IP_AFTER' has virtual functions but non-virtual destructor traffcounter.h:105: warning: 'class TRF_IP_BEFORE' has virtual functions but non-virtual destructor traffcounter.h:118: warning: 'class TRF_IP_AFTER' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'NOTIFIER_BASE<std::_List_iterator<USER> >': traffcounter.h:129: instantiated from here ../../include/notifer.h:19: warning: 'class NOTIFIER_BASE<std::_List_iterator<USER> >' has virtual functions but non-virtual destructor ../../include/base_store.h:25: warning: 'class BASE_STORE' has virtual functions but non-virtual destructor ../../include/base_plugin.h:30: warning: 'class BASE_PLUGIN' has virtual functions but non-virtual destructor ../../include/base_auth.h:19: warning: 'class BASE_AUTH' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<int>': user.h:81: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<int>' has virtual functions but non-virtual destructor user.h:82: warning: 'class CHG_PASSIVE_NOTIFIER' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >': user.h:91: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >' has virtual funcuser.h:92: warning: 'class CHG_TARIFF_NOTIFIER' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<double>': user.h:101: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<double>' has virtual functions but non-virtual destructor user.h:102: warning: 'class CHG_CASH_NOTIFIER' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<unsigned int>': users.h:60: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<unsigned int>' has virtual functions but non-virtual destructor users.h:61: warning: 'class PROPERTY_NOTIFER_IP_BEFORE' has virtual functions but non-virtual destructor users.h:72: warning: 'class PROPERTY_NOTIFER_IP_AFTER' has virtual functions but non-virtual destructor user.cpp: In member function 'void USER::Run()': user.cpp:715: warning: unused variable 'sec' ../../include/notifer.h: At global scope: ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<USER_IPS>': user_property.h:205: instantiated from 'USER_PROPERTY<varT>& USER_PROPERTY<varT>::operator=(const varT&) [with varT = USER_IPS]' user.cpp:130: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<USER_IPS>' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<DIR_TRAFF>': user_property.h:205: instantiated from 'USER_PROPERTY<varT>& USER_PROPERTY<varT>::operator=(const varT&) [with varT = DIR_TRAFF]' user.cpp:210: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<DIR_TRAFF>' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<long int>': user_property.h:205: instantiated from 'USER_PROPERTY<varT>& USER_PROPERTY<varT>::operator=(const varT&) [with varT = long int]' user.cpp:213: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<long int>' has virtual functions but non-virtual destructor ../../include/base_store.h:25: warning: 'class BASE_STORE' has virtual functions but non-virtual destructor ../../include/base_store.h:25: warning: 'class BASE_STORE' has virtual functions but non-virtual destructor ../../include/base_plugin.h:30: warning: 'class BASE_PLUGIN' has virtual functions but non-virtual destructor ../../include/base_auth.h:19: warning: 'class BASE_AUTH' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<int>': user.h:81: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<int>' has virtual functions but non-virtual destructor user.h:82: warning: 'class CHG_PASSIVE_NOTIFIER' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >': user.h:91: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >' has virtual funcuser.h:92: warning: 'class CHG_TARIFF_NOTIFIER' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<double>': user.h:101: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<double>' has virtual functions but non-virtual destructor user.h:102: warning: 'class CHG_CASH_NOTIFIER' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<unsigned int>': users.h:60: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<unsigned int>' has virtual functions but non-virtual destructor users.h:61: warning: 'class PROPERTY_NOTIFER_IP_BEFORE' has virtual functions but non-virtual destructor users.h:72: warning: 'class PROPERTY_NOTIFER_IP_AFTER' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'NOTIFIER_BASE<std::_List_iterator<USER> >': users.cpp:197: instantiated from here ../../include/notifer.h:19: warning: 'class NOTIFIER_BASE<std::_List_iterator<USER> >' has virtual functions but non-virtual destructor ../../include/base_plugin.h:30: warning: 'class BASE_PLUGIN' has virtual functions but non-virtual destructor ../../include/base_store.h:25: warning: 'class BASE_STORE' has virtual functions but non-virtual destructor ../../include/base_auth.h:19: warning: 'class BASE_AUTH' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<int>': user.h:81: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<int>' has virtual functions but non-virtual destructor user.h:82: warning: 'class CHG_PASSIVE_NOTIFIER' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >': user.h:91: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >' has virtual funcuser.h:92: warning: 'class CHG_TARIFF_NOTIFIER' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<double>': user.h:101: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<double>' has virtual functions but non-virtual destructor user.h:102: warning: 'class CHG_CASH_NOTIFIER' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'PROPERTY_NOTIFIER_BASE<unsigned int>': users.h:60: instantiated from here ../../include/notifer.h:12: warning: 'class PROPERTY_NOTIFIER_BASE<unsigned int>' has virtual functions but non-virtual destructor users.h:61: warning: 'class PROPERTY_NOTIFER_IP_BEFORE' has virtual functions but non-virtual destructor users.h:72: warning: 'class PROPERTY_NOTIFER_IP_AFTER' has virtual functions but non-virtual destructor traffcounter.h:105: warning: 'class TRF_IP_BEFORE' has virtual functions but non-virtual destructor traffcounter.h:118: warning: 'class TRF_IP_AFTER' has virtual functions but non-virtual destructor ../../include/notifer.h: In instantiation of 'NOTIFIER_BASE<std::_List_iterator<USER> >': traffcounter.h:129: instantiated from here ../../include/notifer.h:19: warning: 'class NOTIFIER_BASE<std::_List_iterator<USER> >' has virtual functions but non-virtual destructor gmake: *** Нет правила для сборки цели `-lexpat', требуемой для `stargazer'. Останов. может кто сталкивался ? - устал доустанавливать пакеты - еще более песально то что делается это неосмысленно !
Neelix Опубліковано: January 3, 2007 at 14:51 Опубліковано: January 3, 2007 at 14:51 Не хватает библиотеки expat, читай внимательно.
Neelix Опубліковано: January 3, 2007 at 14:55 Опубліковано: January 3, 2007 at 14:55 expat-devel-1.95.8-6.i386.rpm - ищи что-то похожее
egor2fsys Опубліковано: January 3, 2007 at 14:55 Автор Опубліковано: January 3, 2007 at 14:55 Вдогонку напомню что expat должна быть установлена строго в /usr
cristal Опубліковано: January 4, 2007 at 00:22 Опубліковано: January 4, 2007 at 00:22 Не хватает библиотеки expat, читай внимательно. спасибо !
stg-34 Опубліковано: January 6, 2007 at 14:15 Опубліковано: January 6, 2007 at 14:15 Исправления ошибок в последнем пре-релизе. Изменения - исправления ошибок в удаленном вызове скриптов. Надеюсь завтра напишу как использовать удаленный вызов скриптов и как использовать выбор направлений. http://stg.dp.ua/download/other/stg-2.4-20...06-15.46.32.tgz
Antibiotic86 Опубліковано: January 10, 2007 at 10:49 Опубліковано: January 10, 2007 at 10:49 Люди подскажите, не могу поставить старгейзер после запуска ./build останавливается на строчке /bin/sh: g++: command not found linux Fedora 4 В линуксе новичок поэтому подскажите пожалуйста что делать... подозреваю что не стоит g++ но негде не могу его найти на Федору.
Neelix Опубліковано: January 10, 2007 at 11:08 Опубліковано: January 10, 2007 at 11:08 Возьми свой дистрибутив, там и надешь, кроме него еще другие пакеты прийдется ставить
Antibiotic86 Опубліковано: January 10, 2007 at 12:21 Опубліковано: January 10, 2007 at 12:21 Дык а называется то он как, g++? вот gcc есть, я его поставил... А что еще надо будет поставить? Может RPM есть?
Рекомендованные сообщения
Создайте аккаунт или войдите в него для комментирования
Вы должны быть пользователем, чтобы оставить комментарий
Создать аккаунт
Зарегистрируйтесь для получения аккаунта. Это просто!
Зарегистрировать аккаунтВхід
Уже зарегистрированы? Войдите здесь.
Войти сейчас