Re: How to change request attribute based on NAS IP address

2013-04-24 Thread Mehdi Ravanbakhsh
Dear Giuseppe Marocchio it works :) thanks. On Wed, Apr 24, 2013 at 11:15 AM, Giuseppe Marocchio wrote: > Hello, is simple & stupid. > > > if (Cisco-AVpair =~ /^client-mac-address=([a-f0-9]** > [a-f0-9])([a-f0-9][a-f0-9]).([**a-f0-9][a-f0-9])([a-f0-9][a-** > f0-9]).([a-f0-9][a-f0-

Re: How to change request attribute based on NAS IP address

2013-04-23 Thread Giuseppe Marocchio
Hello, is simple & stupid. if (Cisco-AVpair =~ /^client-mac-address=([a-f0-9][a-f0-9])([a-f0-9][a-f0-9]).([a-f0-9][a-f0-9])([a-f0-9][a-f0-9]).([a-f0-9][a-f0-9])([a-f0-9][a-f0-9])$/) { if (!Calling-Station-Id) { update request {

How to change request attribute based on NAS IP address

2013-04-23 Thread Mehdi Ravanbakhsh
Hi All i use Cisco and mikrotik as Access server in my network and i need to limit user access by MAC address. in this case i can use Calling-Station-Id , it works for mikrotik : AUTH Detail Packet-Type = Access-Request Service-Type = Framed-User Framed-Protocol = PPP