Is there a way to bind ip address and mac to an user

PPPoE related questions
Post Reply
psr
Posts: 31
Joined: 07 Dec 2014, 06:37

Is there a way to bind ip address and mac to an user

Post by psr »

Hi ,
I am using only chap-secrets( no radius).
Is there a way to bind mac address to an user is for example.
chap secrets file
*****************************
user0 * user0 <ip_address>
*****************************
let us say mac address for user0 is 00:21:9b:d5:10:dc,
if some body else who knows this username and password with some other mac should not be authenticated by accel-ppp.
Is there a way for this.

Thanks for the help.
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: Is there a way to bind ip address and mac to an user

Post by Dmitry »

no, there is no way to achieve this with current implementation
you can user ip-pre-up script for this
psr
Posts: 31
Joined: 07 Dec 2014, 06:37

Re: Is there a way to bind ip address and mac to an user

Post by psr »

does that mean ip-pre-up get executed for before every user gets ip/authenticated.

Thanks for help.
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: Is there a way to bind ip address and mac to an user

Post by Dmitry »

it is executed before bring up interface
if ip-pre-up returns with non zero exit code then session will be terminated immediately
psr
Posts: 31
Joined: 07 Dec 2014, 06:37

Re: Is there a way to bind ip address and mac to an user

Post by psr »

thanks for the help
Post Reply