OPNsense Forum

English Forums => General Discussion => Topic started by: Wwworm on November 08, 2017, 10:07:35 am

Title: Limit speed by 1 user many devices Captive Portal
Post by: Wwworm on November 08, 2017, 10:07:35 am
Hello. I need help with setup opnsense, captive portal and traffic shaper.

I need set speed limit for 1 user in captive portal, but user can login in captive for few devices at one time.
For example one user (one login-pass) can login captive portal 3 phones (3 ip address), and I need set up speed limit for 3 phones to 3 Mbit/s. Bot for user 2 and his connected devices I need set up speed limit to 5 Mbit/s... and etc...

Count of user connected devices - random, I need speed limit by user-password. Can I do this?

In docs I see that I can setup speed limit for 1 ip or mask, but not for captive user...
Title: Re: Limit speed by 1 user many devices Captive Portal
Post by: Wwworm on November 08, 2017, 03:58:13 pm
My problem not solved, but I try to use FreeRADIUS for auth users and set in RADIUS "Enable WISPr attributes" and "Enable ChilliSpot attributes". After this, add users with Bandwith limits (set WISPr and ChilliSpot settings) to FreeRADIUS. Restart server, but this limits not work, speed not reduse:(

I read that I must enable speed reduse in Captive Portal, but I don't see this option in captive portal settings:(


I need set speed limit for 1 login-pass in captive portal, but not for 1 device...
User "admin" have limit 10Mbit/s, admin login with laptop, phone and tablet pc in one time. Speed by 3 devices =10Mbit/s for all devices, not for one device. admin connect another phone and speed by 4 devices =10Mbit/s for all devices.

Sorry 4 my English....
Title: Re: Limit speed by 1 user many devices Captive Portal
Post by: mimbanis on November 12, 2017, 02:38:40 am
I'm interested in being able to do this as well, I haven't had a chance to do much testing but my understanding of how the traffic shaping works in the back ground I am not sure it is possible as it is looking at the traffic type / IP addressing rather than the auth source.
If there is someone out there that has tried something similar suggestions would be appreciated even if it is just a confirmation of if it is possible or not.

Regards
Simon
Title: Re: Limit speed by 1 user many devices Captive Portal
Post by: mimugmail on November 12, 2017, 06:28:58 am
Sadly you cannot achieve this with OPNsense right now.
What you can do is set a QoS rule globally by soure, so every device in CP net get's max X bandwith, or you make static dhcp settings and do this on you own in the Traffic Shaper.

The attributes are there for other devices supporting this, but it's not bundled with the CP.