Jump to content

purestg2


Recommended Posts

Оба из под root. проблема мистическим образом решилась после пересборки. даже не знаю на что грешить можно.

Link to post
Share on other sites
  • Replies 396
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Релиз 2.4: https://github.com/lion-simba/purestg2/releases/tag/2.4   PS. Проект переехал на github.

Вот это не имеет отношения к биллингу. Думаю гугл сможет подсказать, от чего это и как с этим бороться.     git на то и git, что из него можно взять любую версию. Вот здесь: https://github.com/l

Предположительно пофиксил. В git.   И начал пилить доставку calling number'а (MAC-адреса) в старгейзер, а также аутентификацию по нему.

кто подскажет в чем дело stg-2.407-rc3, purestg2-2.2, стг собрался и работает без проблем а purestg при ./configure --prefix=/usr/include/stg/

 

checking for cstdlib... yes

checking algorithm usability... yes

checking algorithm presence... yes

checking for algorithm... yes

checking pppd.h usability... no

checking pppd.h presence... no

checking for pppd.h... no

configure: error: header not found or not useable

Link to post
Share on other sites

Во-первых, в 2.407-rc3 заголовочные файлы не устанавливаются. Во-вторых, --prefix это совсем не путь к заголовочным файлам. В-третьих, почему бы не использовать stg-2.407-p1 которая как раз и предназначена для работы с этой версией purestg2?

Link to post
Share on other sites

тяжело в учебе легко в бою, но пока к учебе, установил stg-2.407-p1 без проблем, распаковал purestg2-2.2 захожу в папку запускаю ./configure --with-stg-headers=/usr/include/stg/ и ответ в конце-

checking for algorithm... yes

checking pppd.h usability... no

checking pppd.h presence... no

checking for pppd.h... no

configure: error: header not found or not useable

 

показую заголовки

ls /usr/include/stg/

admin_conf.h blowfish.h ia_packets.h notifer.h resetable.h tariff_conf.h user_ips.h version.h

admin_conf.inc.h common.h locker.h os_int.h rs_packets.h tariff.h user_property.h

admin.h conffiles.h logger.h pinger.h scriptexecuter.h tariffs.h users.h

admins.h const.h message.h plugin.h service_conf.h traffcounter.h user_stat.h

ag_md5.h corp_conf.h module_settings.h rad_packets.h settings.h user_conf.h user_traff.h

auth.h dotconfpp.h noncopyable.h raw_ip_packet.h store.h user.h utime.h

пппое установлено, так на всякий случай операционка сквиз.64

Link to post
Share on other sites

ок спасибо все собралось, а как быть с pppd как его надо настраивать запускать?

интересует именно pppoe

 

2011-12-08 18:55:29 -- Stg v. 2.407-p1

2011-12-08 18:55:29 -- Message queue created successfully. msgKey=5555 msgID=32768

2011-12-08 18:55:29 -- Timer thread started successfully.

2011-12-08 18:55:29 -- Storage plugin: file_store v.1.04. Loading successfull.

2011-12-08 18:55:29 -- purestg2: Debug output enabled.

2011-12-08 18:55:29 -- Users started successfully.

2011-12-08 18:55:29 -- Traffcounter started successfully.

2011-12-08 18:55:29 -- Module: 'Always Online authorizator v.1.0'. Start successfull.

2011-12-08 18:55:29 -- purestg2: listening for incoming auth connections on /var/run/purestg2.sock

2011-12-08 18:55:29 -- Module: 'PPPD Authorizator (purestg2 2.2)'. Start successfull.

2011-12-08 18:55:29 -- Stg started successfully.

Link to post
Share on other sites

ок спасибо все собралось, а как быть с pppd как его надо настраивать запускать?

интересует именно pppoe

Запускать pppd должен какой-нибудь pppoe сервер (в убунте он так и называется - pppoe-server).

Настройка pppd сводится к указанию в конфиге pppd информации о том, что требуется загрузить плагин purestg2 и его параметрах. Пример конфига с описанием параметров приведен в файле README.

Link to post
Share on other sites

поднял pppoe все гуд проблемы начались в другом не могу теперь по шейпить трафик

 

tc qdisc del dev eth0 root handle 1: htb

tc class add dev eth0 parent 1: classid 1:1 htb rate 100mbit ceil 100mbit

tc class add dev eth0 parent 1:1 classid 1:36 htb rate 2048kbit ceil 2048kbit

tc filter add dev eth0 protocol ip parent 1:0 prio 2 handle 36 fw classid 1:36

iptables -t mangle -A POSTROUTING -d 10.10.119.118 -j MARK --set-mark 36

пез pppoe прет без проблем

Link to post
Share on other sites
  • 4 weeks later...

2012-01-11 01:14:31 -- purestg2: Accepted new client connection (socket=10)

2012-01-11 01:14:31 -- purestg2: request(socket=10): type=5, login=

2012-01-11 01:14:31 -- purestg2: reply: type=5, login=, result=1

2012-01-11 01:14:34 -- purestg2: request(socket=10): type=7, login=01day

2012-01-11 01:14:34 -- purestg2: Got ipparam: "10.0.45.130"

2012-01-11 01:14:34 -- purestg2: reply: type=7, login=01day, result=1

2012-01-11 01:14:34 -- purestg2: request(socket=10): type=3, login=01day

2012-01-11 01:14:34 -- purestg2: reply: type=3, login=01day, result=1

2012-01-11 01:14:34 -- purestg2: request(socket=10): type=4, login=01day

2012-01-11 01:14:34 -- purestg2: reply: type=4, login=01day, result=1

2012-01-11 01:14:34 -- purestg2: request(socket=10): type=2, login=01day

2012-01-11 01:14:34 -- purestg2: BUG: attempt to deactivate not activated notifier for user id 18

2012-01-11 01:14:34 -- purestg2: User 01day (socket=10) is disconnected.

2012-01-11 01:14:34 -- purestg2: reply: type=2, login=01day, result=1

 

в итоге ошибка авторизации 628 , соединение прерванно прежде чем могло быть установлено

куда копать ?

Link to post
Share on other sites

зы.

Jan 11 01:14:31 gw-kapan pptpd[26728]: CTRL: Client 10.0.45.130 control connection started

Jan 11 01:14:31 gw-kapan pptpd[26728]: CTRL: Starting call (launching pppd, opening GRE)

Jan 11 01:14:31 gw-kapan pptpd[26728]: GRE: Bad checksum from pppd.

Jan 11 01:14:34 gw-kapan pptpd[26728]: CTRL: Ignored a SET LINK INFO packet with real ACCMs!

Jan 11 01:14:35 gw-kapan pptpd[26728]: CTRL: Reaping child PPP[26730]

Jan 11 01:14:35 gw-kapan pptpd[26728]: CTRL: Client 10.0.45.130 control connection finished

зызы

стж 407

Link to post
Share on other sites

зызы

из гита вообще для 407 не собралось

purestg2.cpp: In member function ‘int AUTH_PURESTG2::hupClientConnection(int)’:

purestg2.cpp:565: error: ‘class USERS’ has no member named ‘Unauthorize’

purestg2.cpp: In member function ‘int AUTH_PURESTG2::handleClientConnection(int)’:

purestg2.cpp:642: error: ‘class USERS’ has no member named ‘Unauthorize’

purestg2.cpp:657: error: ‘class USERS’ has no member named ‘Authorize’

purestg2.cpp:701: error: ‘class USERS’ has no member named ‘Unauthorize’

purestg2.cpp: In member function ‘int AUTH_PURESTG2::clientDisconnectByStg(USER*)’:

purestg2.cpp:920: error: ‘class USERS’ has no member named ‘Unauthorize’

purestg2.cpp: In member function ‘int AUTH_PURESTG2::checkUserTimeouts()’:

purestg2.cpp:951: error: ‘class USERS’ has no member named ‘Unauthorize’

make[2]: *** [purestg2.lo] Error 1

Link to post
Share on other sites

зызы

из гита вообще для 407 не собралось

purestg2.cpp: In member function ‘int AUTH_PURESTG2::hupClientConnection(int)’:

purestg2.cpp:565: error: ‘class USERS’ has no member named ‘Unauthorize’

purestg2.cpp: In member function ‘int AUTH_PURESTG2::handleClientConnection(int)’:

purestg2.cpp:642: error: ‘class USERS’ has no member named ‘Unauthorize’

purestg2.cpp:657: error: ‘class USERS’ has no member named ‘Authorize’

purestg2.cpp:701: error: ‘class USERS’ has no member named ‘Unauthorize’

purestg2.cpp: In member function ‘int AUTH_PURESTG2::clientDisconnectByStg(USER*)’:

purestg2.cpp:920: error: ‘class USERS’ has no member named ‘Unauthorize’

purestg2.cpp: In member function ‘int AUTH_PURESTG2::checkUserTimeouts()’:

purestg2.cpp:951: error: ‘class USERS’ has no member named ‘Unauthorize’

make[2]: *** [purestg2.lo] Error 1

Оно и понятно, между 2.407 и 2.408 поменялся API плагинов.

Link to post
Share on other sites

очень хотелось бы иметь авторизацию юзара со * вместо IP

А откуда тогда будет взят IP? В случае использования атворизатора понятно - это будет IP с которого была выполнена авторизация. А как быть с PPtP/PPPoE?

Link to post
Share on other sites

тот IP который автоматом выдаст VPN/pppoe сервер

поддерживаю, чтобы айпи выдавался из диапазона что прописан в pptpd.conf

Link to post
Share on other sites

Оформил на страничке проекта три тикета:

- по поводу сборки под разные версии stg: http://code.google.c...ues/detail?id=1

- по поводу BUG'а в логе, когда для пользователя в stg не указан IP: http://code.google.c...ues/detail?id=3

- по поводу возможности получения IP от pppd: http://code.google.c...ues/detail?id=4

 

Сейчас пока времени заниматься этими вещами нет, прогноза дать не могу. Но можете подписаться на уведомления к этим тикетам, чтобы быть в курсе.

 

Осталась одна непонятка:

... не учел пару моментов ... 2) нельзя подключится одним юзером 2 раза

 

А как это вообще возможно? Насколько я понимаю, юзер может быть авторизован каждым авторизатором только по одному разу.

 

2madf:

Кстати, это интересное направление развития. Можно позволить авторизовываться с одного и того же авторизатора по нескольку раз, но с разными IP.

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...