Diego thank you so much! I will try your suggestions in a POC to show the 
capability to my customer.


Luca



________________________________
Da: Diego Garcia del Rio via PacketFence-users 
<[email protected]>
Inviato: venerdì 8 settembre 2017 18:00
A: [email protected]
Cc: Diego Garcia del Rio
Oggetto: Re: [PacketFence-users] Bandwidth limit

You can also do it directly without filters. I don't have access to my system 
right now, but there was an option to map a user's profile to a device profile. 
At least on the latest version of PF, the Aruba plugin has support for 
"returnRoleAttribute" and it is specified in the radius VSA 
called"Aruba-User-Role"

If you have roles (where you assign a bandwidth cap) on your aruba controller, 
you can then map the PF role to an arbitrary string for each of the Roles in 
packetfence.

Go to the "switches"  section in PF, then click on the Aruba Controller and go 
into the "Roles" Tab. There you can assign different VLANs to the different 
roles - if you're using vlans for registration vs general use or want to assign 
different vlans to different users, do it there. Then scroll down to "Role 
Mapping by Switch Role"  and enable the checkbox. Then for each role in PF, 
type the corresponding group / role / whatever-aruba-calls-it so that it will 
match the name you configured in the Aruba controller.

I use it with a Ruckus controller with no issues, but you might need to enable 
something like RBAC on the Aruba (Role-Based access control) or something 
similar for your controller.

for example, in my case, I have some roles (in the wireless controller, not in 
PF) called "1mb", "5mb" , "10mb", etc.. My pf roles are "students" "teachers" 
"admins" and "violation"

students get 5mb
teahers 10mb
admins 10mb
violation 1mb

and in case of bandwitdth violation, I put them down to the "violation"  role

See here for more details on the aruba use
http://www.arubanetworks.com/techdocs/ArubaOS_63_Web_Help/Content/ArubaFrameStyles/Firewall_Roles/User_Role_Assignments.htm

http://www.arubanetworks.com/techdocs/ArubaOS_63_Web_Help/Content/ArubaFrameStyles/AAA_Servers/Server_Groups.htm#aaa_servers_3503549366_1051297

good luck!


On Fri, Sep 8, 2017 at 10:26 AM, Antoine Amacher via PacketFence-users 
<[email protected]<mailto:[email protected]>>
 wrote:

Hello Lucas,


To send a specific RADIUS attribute in answer you will need to work with the 
RADIUS filter.


>From there you can choose a condition for example an SSID or the device role 
>in PacketFence, then custom what RADIUS answer you send. For instance 
>Filter-Id => 10,

You have examples in the file conf/radius_filter.conf.example


Thanks

On 09/08/2017 08:52 AM, luca comes via PacketFence-users wrote:

Ok Diego,

I will try but it's not so clear to me how to proceed. I understand that I 
should create a new connection profile similar to the one I use in normal 
operation and assign role on the violation? How can I send vsa back to the 
controller?


Luca



________________________________
Da: Diego Garcia del Rio <[email protected]><mailto:[email protected]>
Inviato: venerdì 8 settembre 2017 14:29
A: luca comes
Cc: 
[email protected]<mailto:[email protected]>
Oggetto: Re: [PacketFence-users] Bandwidth limit

Ciao Luca. I would imagine Aruba  can do rate limits on the AP. You need to 
find which radius vsa to send so that it can apply a profile to the user and do 
the rate limit.

On Sep 8, 2017 07:02, "luca comes" 
<[email protected]<mailto:[email protected]>> wrote:

Hi Diego,

It's an Aruba appliance.


Luca


Inviato da Outlook<http://aka.ms/weboutlook>


________________________________
Da: Diego Garcia del Rio <[email protected]<mailto:[email protected]>>
Inviato: giovedì 7 settembre 2017 17:04
A: 
[email protected]<mailto:[email protected]>
Cc: luca comes
Oggetto: Re: [PacketFence-users] Bandwidth limit

Hi Luca,

I don't have experience with the "inline mode" of PF. I haven't seen any 
options to do bandwidth limiting in the UI though, so I would not keep my hopes 
up.

What controller do you have?


On Thu, Sep 7, 2017 at 3:37 AM, luca comes via PacketFence-users 
<[email protected]<mailto:[email protected]>>
 wrote:
Hi Diego,
thank you for your answer. What about if I put PF inline in front of the WiFi 
controller? Could it perform rate limit after user authentication when the IP 
assigned is known without working on the controller?

Luca


________________________________
Da: Diego Garcia del Rio <[email protected]<mailto:[email protected]>>
Inviato: lunedì 4 settembre 2017 20:23
A: 
[email protected]<mailto:[email protected]>
Cc: luca comes
Oggetto: Re: [PacketFence-users] Bandwidth limit

You can do this by assinging a new profile to the user as the action of the 
bandwidth violation. Of course the capability to rate limit will depend on the 
device doing the access. If its a fairly advanced wifi, you could do it, but 
might be impossible or hard on wired switches (especially lower end)



On Mon, Sep 4, 2017 at 5:41 AM, luca comes via PacketFence-users 
<[email protected]<mailto:[email protected]>>
 wrote:

Dear all,

I have a customer who need to restrict bandwidth to IP/user when they exceed 
the limit. Is there the possibility using PF? Can you drive me to documentation 
or some example to understand the possibilities?


Thanks


Luca



Inviato da Outlook<http://aka.ms/weboutlook>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/packetfence-users



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/packetfence-users





------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot



_______________________________________________
PacketFence-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/packetfence-users



--
Antoine Amacher
[email protected]<mailto:[email protected]>  ::  
www.inverse.ca<http://www.inverse.ca>
+1.514.447.4918 x130  :: +1 (866) 353-6153 x130
Inverse inc. :: Leaders behind SOGo (www.sogo.nu<http://www.sogo.nu>) and 
PacketFence (www.packetfence.org<http://www.packetfence.org>)

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/packetfence-users


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to