radtest的含义

执行 radtest test test localhost 0 testing123后出现:

Sending Access-Request of id 121 to 127.0.0.1 port 1812
    User-Name = "test"
    User-Password = "test"
    NAS-IP-Address = 192.168.168.7
    NAS-Port = 0
    Message-Authenticator = 0x00000000000000000000000000000000
rad_recv: Access-Reject packet from host 127.0.0.1 port 1812, id=121, length=20

这其中各部分的含义是什么:

(1)  命令行中的 testing123  就是:

FreeRADIUS和NAS的共享密钥,client.conf中有定义,就是secret……
(2)  NAS-IP-Address:

NAS-IP-Address = 221.7.59.90  出现这个现象的,是你的软件版本有后门的!你把WAN断开后重启,NAS-IP地址就指向了127.0.0.1了。

未完待续。

下面是转自:http://www.dialogic.com/webhelp/BorderNet2020/1.0.0/WebHelp/radatt_nas_ipaddress.htm

RADIUS Attribute - NAS-IP-Address

As Per RFC2865:

This Attribute indicates the identifying IP Address of the NAS which is requesting authentication of the user, and SHOULD be unique to the NAS within the scope of the RADIUS server. NAS-IP-Address is only used in Access-Request packets.  Either NAS-IP-Address or NAS-Identifier MUST be present in an Access-Request packet.

Note: The NAS-IP-Address MUST NOT be used to select the shared secret used to authenticate the request. The source IP address of the Access-Request packet MUST be used to select the shared secret.

 

A summary of the NAS-IP-Address Attribute format is shown below.  The fields are transmitted from left to right.

SC_RadiusGenAttr_NAS_IP_Address.png

 

Type (IETF Attribute Number) = 4 for NAS-IP-Address.
Length = 6
Address = The Address field is four octets.

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值