Queeq Posted December 24, 2006 Posted December 24, 2006 Можно подробнее о - Переделан протокол авторизации, добавлен выбор направлений для подключения а то я не понял...
Neelix Posted December 24, 2006 Posted December 24, 2006 При подключении выбирается чек боксами нужное направление, а как же скрипты OnConnect?
stg-34 Posted December 24, 2006 Posted December 24, 2006 При подключении выбирается чек боксами нужное направление, а как же скрипты OnConnect? В скрипты передается еще один параметр вида 1101000000 Нолики и единички соотв. выбранным направлениям
Queeq Posted December 24, 2006 Posted December 24, 2006 При подключении выбирается чек боксами нужное направление, а как же скрипты OnConnect? Т.е. если выбрана, например, только Украина, всё остальное работать не будет. Так?
Neelix Posted December 24, 2006 Posted December 24, 2006 Получается так, чтобы работало другое направление, нужно включить еще флажок.
stg-34 Posted December 24, 2006 Posted December 24, 2006 в скрипт просто передается выбранные направления. что с ними делать - стг не знает
Xeddin Posted December 24, 2006 Posted December 24, 2006 т.е. нужно еще и скрипты ОнКоннект и ОнДисконнект переделать, чтобы все правильно работало. Я правильно понял?
Max Posted December 24, 2006 Posted December 24, 2006 т.е. нужно еще и скрипты ОнКоннект и ОнДисконнект переделать, чтобы все правильно работало. Я правильно понял? Да Коротко:Новый плагин, при конекте юзера шлет на роутер пакеты, что юзер подключен. В пакете информация для скрипта. При отключении пакеты перестают слаться, юзер отключается. При обрыве связи роутер отключает юзера по таймауту. Тоесть есть некая урезанная версия стг/прокся-стг которая принимает соединения от авторизатора и отправляет их в центр, а также рулит локальными правилами фаера?
_Om_ Posted December 24, 2006 Posted December 24, 2006 (edited) 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/ сам старгазер Зарание благодарен Edited December 24, 2006 by _Om_
котопес Posted December 26, 2006 Posted December 26, 2006 А что именно нужно добавить в OnConnect OnDisconnect чтоб заработал выбор направлений ?
cristal Posted December 26, 2006 Posted December 26, 2006 Скорее всего нет циклов такого рода 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 Posted December 26, 2006 Posted December 26, 2006 имхо антифлудер так работает, можешь попробовать отключить его.
bigkit Posted January 2, 2007 Posted January 2, 2007 В примере OnConnect что идёт в комплекте написано следующее #user ID ID=$4 #Selected dirs to connect DIRS=$4 Направления всё-таки пятый параметр ? И ещё. Если авторизатор старой версии - подразумевается, что DIRS=1111111111 или 00000000 ? ======= Отбой. Поспешил написать. Всё уже выяснил сам.
cristal Posted January 2, 2007 Posted January 2, 2007 всем привет ! столкнулся с траблой - не могу собрать 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 Posted January 3, 2007 Posted January 3, 2007 expat-devel-1.95.8-6.i386.rpm - ищи что-то похожее
egor2fsys Posted January 3, 2007 Author Posted January 3, 2007 Вдогонку напомню что expat должна быть установлена строго в /usr
cristal Posted January 4, 2007 Posted January 4, 2007 Не хватает библиотеки expat, читай внимательно. спасибо !
stg-34 Posted January 6, 2007 Posted January 6, 2007 Исправления ошибок в последнем пре-релизе. Изменения - исправления ошибок в удаленном вызове скриптов. Надеюсь завтра напишу как использовать удаленный вызов скриптов и как использовать выбор направлений. http://stg.dp.ua/download/other/stg-2.4-20...06-15.46.32.tgz
Antibiotic86 Posted January 10, 2007 Posted January 10, 2007 Люди подскажите, не могу поставить старгейзер после запуска ./build останавливается на строчке /bin/sh: g++: command not found linux Fedora 4 В линуксе новичок поэтому подскажите пожалуйста что делать... подозреваю что не стоит g++ но негде не могу его найти на Федору.
Neelix Posted January 10, 2007 Posted January 10, 2007 Возьми свой дистрибутив, там и надешь, кроме него еще другие пакеты прийдется ставить
Antibiotic86 Posted January 10, 2007 Posted January 10, 2007 Дык а называется то он как, g++? вот gcc есть, я его поставил... А что еще надо будет поставить? Может RPM есть?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now