Skip to content
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

Provide mechanism to activate filewall rules for devices of users who are over their time limit #169

Closed
marcus67 opened this issue Feb 27, 2022 · 1 comment
Labels
enhancement New feature or request in progress

Comments

@marcus67
Copy link
Owner

In case LittleBrother is setup to monitor extra devices it would come in handy to setup firewall rules to deactivate the network connection of all those devices to the outside world. This would represent at least some impact of being "over time limit" since LittleBrother cannot directly influence the extra devices.

The simplest approach would be using iptables. When a user is over budged all devices that are linked to him would be blocked by issuing commands such as

iptables -I FORWARD -s SOME.MONITORED.DEVICE.IP  -j DROP

The state could be verified using

iptables -n -L  FORWARD --line-numbers

When the user is permitted to use the computer again the rule identified in the list above could be deleted using

iptables -D FORWARD RULE_NUMBER
@marcus67 marcus67 added the enhancement New feature or request label Feb 27, 2022
@marcus67 marcus67 pinned this issue Feb 27, 2022
@marcus67
Copy link
Owner Author

marcus67 commented Jul 2, 2022

Closed in eaae776

@marcus67 marcus67 closed this as completed Jul 2, 2022
@marcus67 marcus67 unpinned this issue Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request in progress
Projects
None yet
Development

No branches or pull requests

1 participant