Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request : pass user IP to ppp #28

Open
shuangzhijinghua opened this issue Oct 15, 2019 · 6 comments
Open

feature request : pass user IP to ppp #28

shuangzhijinghua opened this issue Oct 15, 2019 · 6 comments

Comments

@shuangzhijinghua
Copy link

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.

@sorz
Copy link
Owner

sorz commented Oct 16, 2019

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

@shuangzhijinghua
Copy link
Author

yes.

@sorz
Copy link
Owner

sorz commented Oct 16, 2019

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

@shuangzhijinghua
Copy link
Author

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.

@sorz
Copy link
Owner

sorz commented Oct 17, 2019

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
Copy link
Owner

sorz commented Oct 17, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants