Страница 1 из 1

Прошу помоши. Непонятка с выдачей ip.

Добавлено: Вс окт 15, 2006 7:22 pm
Damage

Код: Выделить всё

Listening on authentication *:1812
Listening on accounting *:1813
Ready to process requests.
rad_recv: Access-Request packet from host 127.0.0.1:2051, id=211, length=90
        Service-Type = Framed-User
        Framed-Protocol = PPP
        User-Name = "mega"
        CHAP-Challenge = 0x03d20601e5c2b7956bc73e8fbe7b581ad3e4c4
        CHAP-Password = 0x2b6b1f0fd1817ecc17abf5816e13a1ace4
        NAS-IP-Address = 192.168.1.250
        NAS-Port = 0
  Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 0
radius_xlat:  '/usr/abills/libexec/rauth.pl pre_auth'
Exec-Program: /usr/abills/libexec/rauth.pl pre_auth
Exec-Program output: Auth-Type := Accept
Exec-Program-Wait: value-pairs: Auth-Type := Accept
Exec-Program: returned: 0
  modcall[authorize]: module "pre_auth" returns ok for request 0
  modcall[authorize]: module "preprocess" returns ok for request 0
  modcall[authorize]: module "mschap" returns noop for request 0
    rlm_realm: No '@' in User-Name = "mega", skipping NULL due to config.
  modcall[authorize]: module "suffix" returns noop for request 0
    users: Matched entry DEFAULT at line 1
  modcall[authorize]: module "files" returns ok for request 0
modcall: leaving group authorize (returns ok) for request 0
  rad_check_password:  Found Auth-Type Accept
  rad_check_password: Auth-Type = Accept, accepting the user
radius_xlat:  '/usr/abills/libexec/rauth.pl'
Exec-Program: /usr/abills/libexec/rauth.pl
Exec-Program output: Session-Timeout = 2505, PPPD-Upstream-Speed-Limit = 0, Octets-Direction = 1, Framed-IP-Address = 10.10.0.6, Session-Octets-Limit = 555000000, Framed-IP-Netmask = 255.255.255.255, PPPD-Downstream-Speed-Limit = 0,
Exec-Program-Wait: plaintext: Session-Timeout = 2505, PPPD-Upstream-Speed-Limit = 0, Octets-Direction = 1, Framed-IP-Address = 10.10.0.6, Session-Octets-Limit = 555000000, Framed-IP-Netmask = 255.255.255.255, PPPD-Downstream-Speed-Limit = 0,
Exec-Program: returned: 0
Здесь видно что присвоен адрес 10.10.0.6. Далее он почему-то становится 192.168.1.1

Код: Выделить всё

Sending Access-Accept of id 211 to 127.0.0.1 port 2051
Finished request 0
Going to the next request
--- Walking the entire request list ---
Waking up in 6 seconds...
rad_recv: Accounting-Request packet from host 127.0.0.1:2051, id=212, length=96
        Acct-Session-Id = "45328977211600"
        User-Name = "mega"
        Acct-Status-Type = Start
        Service-Type = Framed-User
        Framed-Protocol = PPP
        Acct-Authentic = RADIUS
        NAS-Port-Type = Async
        Framed-IP-Address = 192.168.1.1
        NAS-IP-Address = 192.168.1.250
        NAS-Port = 0
        Acct-Delay-Time = 0
  Processing the preacct section of radiusd.conf
modcall: entering group preacct for request 1
  modcall[preacct]: module "preprocess" returns noop for request 1
rlm_acct_unique: Hashing 'NAS-Port = 0,Client-IP-Address = 127.0.0.1,NAS-IP-Address = 192.168.1.250,Acct-Session-Id = "45328977211600",User-Name = "mega"'
rlm_acct_unique: Acct-Unique-Session-ID = "6287dde13fb86c06".
  modcall[preacct]: module "acct_unique" returns ok for request 1
    rlm_realm: No '@' in User-Name = "mega", skipping NULL due to config.
  modcall[preacct]: module "suffix" returns noop for request 1
    acct_users: Matched entry DEFAULT at line 1
  modcall[preacct]: module "files" returns ok for request 1
modcall: leaving group preacct (returns ok) for request 1
  Processing the accounting section of radiusd.conf
modcall: entering group accounting for request 1
radius_xlat:  '/var/log/freeradius/radacct/127.0.0.1/detail-20061015'
rlm_detail: /var/log/freeradius/radacct/%{Client-IP-Address}/detail-%Y%m%d expands to /var/log/freeradius/radacct/127.0.0.1/detail-20061015
  modcall[accounting]: module "detail" returns ok for request 1
  modcall[accounting]: module "unix" returns ok for request 1
radius_xlat:  '/var/log/freeradius/radutmp'
radius_xlat:  'mega'
  modcall[accounting]: module "radutmp" returns ok for request 1
modcall: leaving group accounting (returns ok) for request 1
radius_xlat:  '/usr/abills/libexec/racct.pl'
Exec-Program: /usr/abills/libexec/racct.pl
Sending Accounting-Response of id 212 to 127.0.0.1 port 2051
Finished request 1
Going to the next request
--- Walking the entire request list ---
Waking up in 5 seconds...
--- Walking the entire request list ---
Cleaning up request 0 ID 211 with timestamp 45328976
Waking up in 1 seconds...
--- Walking the entire request list ---
Cleaning up request 1 ID 212 with timestamp 45328977
Nothing to do.  Sleeping until we see a request.
Почему так происходит?

Re: Прошу помоши. Непонятка с выдачей ip.

Добавлено: Вс окт 15, 2006 8:10 pm
skylark
+1
да, интересно будет услышать, с чем это связанно
такая же проблема, добавлю только, что айпи, который я привязывал к клиентам в их профилях, выдается не всем, а только давно созданным пользователям, примерно первым 10-ти

Добавлено: Пн окт 16, 2006 9:18 am
~AsmodeuS~
не подключон словарь

и поэтому все что после атрибута PPPD-Upstream-Speed-Limit радиус не видит и не передаёт

Добавлено: Пн окт 16, 2006 1:28 pm
Гость
Где поглядеть остальные атрибуты? Словарь не подключен в сам радиус иль радиусклиент?

В dictionary радиуса дописал вот это:

Код: Выделить всё

#       Experimental, implementation specific attributes
#
# Limit session traffic
ATTRIBUTE	Session-Octets-Limit	227	integer
# What to assume as limit - 0 in+out, 1 in, 2 out, 3 max(in,out)
ATTRIBUTE	Octets-Direction	228	integer

#       Octets-Direction
VALUE		Octets-Direction        Sum			0
VALUE		Octets-Direction        Input			1
VALUE		Octets-Direction        Output			2
VALUE		Octets-Direction        MaxOveral		3
VALUE		Octets-Direction        MaxSession		4
В радиусклиенте прикрутил dictionary.microsoft взяв его из cake.

Плюс ко всему этому, в мониторинге не отображается кол-во выработанного траффика и соответственно при его окончании соединение не рвется.

Добавлено: Пн окт 16, 2006 1:32 pm
Damage
Забыл войти. Где список тех атрибутов передаваемых абиллс радиусу весь поглядеть?

Добавлено: Пн окт 16, 2006 1:33 pm
~AsmodeuS~
алайвы не приходят

Добавлено: Пн окт 16, 2006 1:49 pm
Damage
Можно кусок недостающего? rfc2866 - оно?

Добавлено: Ср окт 18, 2006 6:25 pm
Damage
Уважаемый, Asmodeus! Какие алайвы не проходят? Параметры радиус не понимает и режет, Вы говорите, эти:
# Accounting Status Types

VALUE Acct-Status-Type Start 1
VALUE Acct-Status-Type Stop 2
VALUE Acct-Status-Type Alive 3 # dup
VALUE Acct-Status-Type Interim-Update 3
VALUE Acct-Status-Type Accounting-On 7
VALUE Acct-Status-Type Accounting-Off 8
VALUE Acct-Status-Type Failed 15

??

Дайте таки список атрибутов все передает абиллс иль словарь если он особенный какой-то.

Добавлено: Чт окт 19, 2006 7:57 am
~AsmodeuS~
Радиус если не имеет какихто параметров в словаре то все следующие за неизвесным не передаются

те которые передаются **радиксом** идут после

Exec-Program: returned: 0
Sending Access-Accept of id 180 to 192.168.202.13 port 58220
MS-CHAP2-Success = 0x01533d354431334338443234423441383142464430413530463
Exec-Program: returned: 0
MS-MPPE-Recv-Key = 0x888eb69eadd0eef19c05517e82d00678
MS-MPPE-Send-Key = 0x49e8f9e254d8cf35424ef65dc7533a60
MS-MPPE-Encryption-Policy = 0x00000002
MS-MPPE-Encryption-Types = 0x00000006
Session-Timeout = 1087454
Framed-IP-Address = 10.15.15.2
Framed-IP-Netmask = 255.255.255.254


те которые передают **РАДИУСУ** идут после
Exec-Program-Wait: value-pairs

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

Добавлено: Сб окт 21, 2006 8:49 am
axl
Допишите в словари:

Код: Выделить всё

ATTRIBUTE       PPPD-Upstream-Speed-Limit       230     integer
ATTRIBUTE       PPPD-Downstream-Speed-Limit     231     integer
и прочтите http://abills.asmodeus.com.ua/wiki/doku ... radattr:ru