-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Uisp suspend #360
base: develop
Are you sure you want to change the base?
Uisp suspend #360
Conversation
…o make things easier to read
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good except lines 212 and 220 of LibreQoS.py. With those changed back to if a < 1:
we should be set.
Hey sorry for the delay. I thought this over and had two concerns:
|
For #1, I agree. I thought I had included that but I see that I did not. I will get that worked out and included. As far as #2, at least in the case of UISP, the customer should get an email from UISP that their service has been suspended. This is similar to how Preseem handles suspension and has worked well for me in other environments. That said, I'm open to other ideas. I suppose it might be fairly trivial to have LibreQoS host a basic service suspension page or something like that. Personally I generally prefer a more all-in-one solution, vs having to stand up some other system to handle this via NAT or other redirect. So if there's a way to do the redirect within LibreQoS itself that would be slick. |
On my slightly hacked-up version of the UISP integration, we simply don't add suspended users to I have some temporary code in the I added a On a philosophical level, I'm wondering if the UISP integration is the right integration point for suspension, since other integrations probably have a similar concept. As for whether LibreQoS should handle suspension? That's a good question. Preseem lets you set a config key for the speed to give suspended customers (ours defaulted to full speed, not sure if thats normal). We played with it a bit, and and it was useful mostly because UISP responds to speed queries for suspended customers with "all of it" - so it gave a safety net for surprise suspend (which was a problem in early versions of UISP). It's not a great way to handle suspension, because the customer can't tell the difference between a service problem and a non-payment - and may well go on NextDoor (etc.) and whine about your service before they get around to submitting a ticket or calling you. On the other hand, that's an ISP policy issue. It's pretty easy to setup a Mikrotik suspension redirect. Should LibreQoS redirect? I'm personally inclined to say "no" - because now we're adding another layer of checks on the way through that might branch into sending customers elsewhere. It probably wouldn't be that hard to write, I'm just not sure it's worth the overhead - when it really should be a router task. |
Add ability to shape clients down to a specified upload and download speed when account is not in an "active" state. Cleaned up a bunch of formatting and convered comments to docstrings to help with automated documentation down the road.
To do:
[] Unit testing
Wanted to get this open for comment.