I'm trying to find a way to block all internet access (and local network access) to a Raspberry Pi 2 for a limited time while an important task is running.
The problem is, my Pi is doing a video recording and starts producing errors when other users connect while a recording is in progress. So my failsafe idea is to watch the schedule for recordings and take the Pi into local-only mode while it's busy with that.
I'd monitor the schedule in Python, so a Python solution is preferred, but any scriptable commands will do.
A perfect solution would allow blocking local network access and remote access independently... I'm using the current Raspbian distribution.
Any tips on how to achieve that?