pptpd radius.so NAS标识符,NAS-IP-Address和Called-Station-Id

我尝试构build一个由FreeRadius rlm_python使用的python脚本。

我的pptp服务器是基于https://lintut.com/setup-pptp-to-authenticate-off-freeradius-on-centos-6-and-ubuntu-11-10/安装的

目前它的工作很好…在非常基本的模式。 但接下来我的脚本将需要FreeRadius的NAS标识符,NAS-IP-Address和Called-Station-Id,因为我想select谁可以通过哪个pptpd服务器

不幸的是,看起来像我的PPTD没有公开所有需要的半径属性freeradius。

我在脚本中做了一个json转储的接收属性,得到:

{"NAS-IP-Address": "127.0.1.1", "Service-Type": "Framed-User", "MS-CHAP-Challenge": "0x4f693024e16280d2e5e64b981c89ea79", "Framed-Protocol": "PPP", "User-Name": "thisisme", "Event-Timestamp": "Sep 13 2017 20:56:13 WIB", "MS-CHAP2-Response": "0x97001f80411a2a67a9275895b2995ec57e2a00000000000000007f09ec1cc5aed3515cdb47e4cee8432a11e6403006c29ba9", "Calling-Station-Id": "192.168.0.200", "NAS-Port": "0"} 

问题是:

  1. NAS-IP-Address有错误的值。

  2. 在请求包中没有NAS标识符和被叫站ID。

请给我任何启发,做正确的事。

诚挚

-bino-