Перейти до

trinux

Сitizens
  • Всього повідомлень

    492
  • Приєднався

  • Останній візит

  • Дней в лидерах

    1

Сообщения додав trinux

  1. Так же по радиусу задам вопрос пробую rlm_stg при коннекте лог выдает такую каку...

     

    Ready to process requests.

    rad_recv: Access-Request packet from host 127.0.0.1:45172, id=135, length=148

    Service-Type = Framed-User

    Framed-Protocol = PPP

    User-Name = "admin"

    MS-CHAP-Challenge = 0xecb6b140aaf92af6181ddbb8b85e31f1

    MS-CHAP2-Response = 0xf30028daecf6febcdb0d9e4018c4b25760dc0000000000000000c8be1b5ab011b1c0d5fa793269897e00554ffbd1998f971e

    Calling-Station-Id = "192.168.0.213"

    NAS-IP-Address = 192.168.0.97

    NAS-Port = 0

    Processing the authorize section of radiusd.conf

    modcall: entering group authorize for request 0

    rlm_stg: stg_authorize()

    Segmentation fault

     

     

     

    radiusd: FreeRADIUS Version 1.1.3 Stg v. 2.406

     

     

    Конфиг радиуса

     

    prefix = /usr

    exec_prefix = /usr

    sysconfdir = /usr/local/etc/raddb

    localstatedir = /var

    sbindir = ${exec_prefix}/sbin

    logdir = /var/log/freeradius

    raddbdir = /usr/local/etc/raddb

    radacctdir = ${logdir}/radacct

    confdir = ${raddbdir}

    run_dir = ${localstatedir}/run/freeradius

    log_file = ${logdir}/radius.log

    libdir = /usr/lib/freeradius

    pidfile = ${run_dir}/freeradius.pid

     

    #user = freerad

    #group = freerad

     

    max_request_time = 30

    delete_blocked_requests = no

    cleanup_delay = 5

    max_requests = 1024

    bind_address = *

    port = 0

     

    hostname_lookups = no

    allow_core_dumps = no

    regular_expressions = yes

    extended_expressions = yes

    log_stripped_names = no

    log_auth = no

    log_auth_badpass = no

    log_auth_goodpass = no

    usercollide = no

    lower_user = no

    lower_pass = no

    nospace_user = no

    nospace_pass = no

     

    checkrad = ${sbindir}/checkrad

     

    security {

    max_attributes = 200

    reject_delay = 1

    status_server = no

    }

    proxy_requests = yes

    $INCLUDE ${confdir}/proxy.conf

     

    $INCLUDE ${confdir}/clients.conf

     

    snmp = no

    $INCLUDE ${confdir}/snmp.conf

     

    thread pool {

    start_servers = 5

    max_servers = 32

    min_spare_servers = 3

    max_spare_servers = 10

    max_requests_per_server = 0

    }

     

    #modules {

    # pap {

    # encryption_scheme = crypt

    # }

    #

    # chap {

    # authtype = CHAP

    # }

    #

    # pam {

    # pam_auth = radiusd

    # }

    #

    # unix {

    # cache = no

    # cache_reload = 600

    # radwtmp = ${logdir}/radwtmp

    # }

    modules {

    ### STG

    stg{

    local_port = 6667

    server = localhost

    port = 6666

    password = 123456

    }

    pap {

    encryption_scheme = crypt

    }

    chap {

    authtype = CHAP

    }

    mschap {

    }

    }

     

    # Instantiation

    instantiate {

    stg

    }

     

    authorize {

    stg

    chap

    mschap

    }

     

    # Authentication.

    authenticate {

    stg

    Auth-Type PAP {

    pap

    }

    Auth-Type CHAP {

    chap

    }

    Auth-Type MS-CHAP {

    mschap

    }

    }

     

    accounting {

    stg

    }

     

    session {

    }

     

    post-auth {

    stg

    }

  2. Вот такая шняга шняжная сегодня у меня приключилась

     

     

    старгейзер не стартует в логе вот что

     

    root@slackware:/etc/stargazer# dmesg

    stargazer[10270]: segfault at 8 ip b6c8e049 sp b6949100 error 4 in mod_store_mysql.so[b6c7f000+23000]

    stargazer[10296]: segfault at 8 ip b6c7d049 sp b6938100 error 4 in mod_store_mysql.so[b6c6e000+23000]

    stargazer[10320]: segfault at 8 ip b6c79049 sp b6934100 error 4 in mod_store_mysql.so[b6c6a000+23000]

    stargazer[10338]: segfault at 8 ip b6c2a049 sp b68e5100 error 4 in mod_store_mysql.so[b6c1b000+23000]

    stargazer[10419]: segfault at 55 ip b765017b sp b696f13c error 4 in libc-2.7.so[b75de000+146000]

    stargazer[10672]: segfault at 8 ip b6daa049 sp b6a65100 error 4 in mod_store_mysql.so[b6d9b000+23000]

    stargazer[10716]: segfault at 8 ip b6cbe049 sp bfae1b60 error 4 in mod_store_mysql.so[b6caf000+23000]

    stargazer[10872]: segfault at 8 ip b6c05049 sp b68c0100 error 4 in mod_store_mysql.so[b6bf6000+23000]

    stargazer[10894]: segfault at 8 ip b6d7e049 sp b6a39100 error 4 in mod_store_mysql.so[b6d6f000+23000]

    stargazer[10912]: segfault at 8 ip b6dbc049 sp b6a77100 error 4 in mod_store_mysql.so[b6dad000+23000]

    stargazer[10930]: segfault at 8 ip b6c27049 sp b68e2100 error 4 in mod_store_mysql.so[b6c18000+23000]

    stargazer[10975]: segfault at 8 ip b6cf6049 sp b69b1100 error 4 in mod_store_mysql.so[b6ce7000+23000]

     

     

     

     

    в логе биллинга

     

    2010-11-15 11:20:52 -- Stg v. 2.406

    2010-11-15 11:20:52 -- Message queue created successfully. msgKey=5555 msgID=851968

    2010-11-15 11:20:52 -- Timer thread started successfully.

    2010-11-15 11:20:53 -- Storage plugin: mysql_store v.0.67. Loading successfull.

    2010-11-15 11:20:53 -- Users started successfully.

    2010-11-15 11:20:53 -- Traffcounter started successfully.

    2010-11-15 11:20:53 -- Module: 'CAP_NF v. 0.3'. Start successfull. 0

    2010-11-15 11:20:53 -- Module: 'Ether_cap v.1.1'. Start successfull. 10

    2010-11-15 11:20:53 -- Module: 'InetAccess authorizator v.1.3'. Start successfull. 50

     

     

     

    пересобрал, не помогло.

  3. Устанавливаю пользователю отрицательный баланс в логе есть только инфо о смене баланса:

    2010-11-06 08:26:02 -- Admin 'admin', 127.0.0.1: User 'user': 'cash' parameter changed from '9' to '-91'.

     

    А при отключении действительно срабатывает Дисконнект скрипт. В логе следующее:

     

    D 2010.11.06-08.26.25 192.168.0.213 -91.000000

     

    Вопрос №1 Почему дисконнект не срабатывает при отрицательном баласе

     

    Вопрос №2 Как убить отловить ppp интерфейс отключаемого пользователя?

     

    Спасибо.

  4. Получилось обойтись без радиуса, используя модуль mod_radius . Но вот есть вопрос, когда отрицательный баланс у пользователя то после дисконнекта подключиться не может, а каким образом сделать чтоб пользователя отключало когда баланс становится отрицательный?

  5. Решил попробовать модуль радиуса, собрал его, положил в /usr/lib/stg/ , добавил его в конфиг, все красиво

     

    2010-11-05 12:52:23 -- Stg v. Stg 2.403b

    2010-11-05 12:52:23 -- Message queue created successfully. msgKey=5555 msgID=163840

    2010-11-05 12:52:23 -- Timer thread started successfully.

    2010-11-05 12:52:23 -- Storage plugin: mysql_store v.0.67 (Alf). Loading successfull.

    2010-11-05 12:52:23 -- Users started successfully.

    2010-11-05 12:52:23 -- Traffcounter started successfully.

    2010-11-05 12:52:23 -- Module: 'Ether_cap v.1.0'. Start successfull. 10

    2010-11-05 12:52:23 -- Module: 'Radius modul version 0.72alpha'. Start successfull. 18

    2010-11-05 12:52:23 -- Module: 'InetAccess authorizator v.1.1'. Start successfull. 50

    2010-11-05 12:52:23 -- Module: 'Always Online authorizator v.1.0'. Start successfull. 70

    2010-11-05 12:52:23 -- Module: 'Pinger v.1.01'. Start successfull. 100

    2010-11-05 12:52:23 -- Module: 'Stg configurator v.0.05'. Start successfull. 220

    2010-11-05 12:52:23 -- Stg started successfully.

     

     

    Добавляю пользователя , в chap-secrets не добавляется, при тесте выдает следующее

     

    root@192:/install/etc/radiusclient# radtest test test 127.0.0.1:1812 0 radsecret 0 127.0.0.1

    radclient: dict_init: /usr/share/freeradius/dictionary[216] invalid keyword "INCLUDE"

     

     

    Коментирую строку связанную с этим "INCLUDE" получается следующее:

     

    root@192:/install/etc/radiusclient# radtest test test 127.0.0.1:1812 0 radsecret 0 127.0.0.1

    radclient: XUnknown attribute "User-Password"

     

     

    Как это все настроить... прошу сильно не бить, с радиусом не сталкивался.

  6. Извиняюсь, что влезаю ;) но у меня похожий вопрос. Есть линк 3 км построенный на мыльницах типа PLANET WAP 4033 антенны Quantum Parabolic 24, расстояние 3 км, под линком лес.

    Появилась необходимость увеличить и стабилизировать канал. Не буду говорить что нужно выжать 50 мбит ;) Но было бы не плохо :D смотрю в сторону Bullet 2M HP можно конечно и МТ , но хотелось бы обойтись меньшими затратами. Будет ли стабилен такой линк?

×
×
  • Створити нове...