sstp-server icon indicating copy to clipboard operation
sstp-server copied to clipboard

feature request : pass user IP to ppp

Open shuangzhijinghua opened this issue 4 years ago • 6 comments

like pptpd.conf set pass peer = yes, then set ipparam pptpd to get user IP and accounting with calling-station-id. current version do not pass the user IP to pppd, so radius only record with strings like pptpd behind param ipparam.

shuangzhijinghua avatar Oct 15 '19 23:10 shuangzhijinghua

Do you mean pass user's IP address as ipparam options in pppd? Something like ipparam 192.0.2.123 when start the pppd.

sorz avatar Oct 16 '19 02:10 sorz

yes.

shuangzhijinghua avatar Oct 16 '19 07:10 shuangzhijinghua

Just recalled that the user's IP address has already passed as remotenumber since #8. Is it insufficient for your use case?

sorz avatar Oct 16 '19 07:10 sorz

my options.sstpd set as below :

plugin radius.so
plugin radattr.so
radius-config-file /path/to/radiusclient.conf
avpair attribute=value
name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
ms-dns 8.8.8.8
proxyarp
nodefaultroute
lock
nobsdcomp
ipparam pptpd ipv6 ,

I want to set ipparam then radius can be able to get Calling-Station-Id with user IP, this settings is usable in xl2tpd / pptpd, but now radius plugin only get the strings behind ipparam like pptpd in my example, then radius accounting the Calling-Station-Id with string pptpd, not user IP.

shuangzhijinghua avatar Oct 16 '19 10:10 shuangzhijinghua

According to pppd's manual, ipparam pptpd ipv6 , merely set a string pptpd ipv6 ,, I don't understand how it related to the user's IP. In the xl2tpd / pptpd cases you mentioned, who read the string pptpd ipv6 ,? Is pppd, pptpd, or the pppd-radius plugin? Can you provide the document or code about this behavior so I can follow? Thanks.

sorz avatar Oct 17 '19 02:10 sorz

You may check the log of RADIUS as I doubt remotenumber already sent to it but on some attribute other than Calling-Station-Id. Maybe Caller-ID? I'm not sure.

sorz avatar Oct 17 '19 03:10 sorz