There are a couple of options:
Take the interface down:
/sbin/ifconfig eth0 down /sbin/ifconfig wlan0 down
and to bring it back up:
/sbin/ifconfig eth0 up
/sbin/ifconfig wlan0 up
You could add a rule to your firewall using either UFW or iptables directly. UFW will block most incoming traffic by default.
-
If using EthernetYou will need to install UFW first:
sudo apt-get install ufw
then enable it:
sudo ufw enable
then to block a specific port:
sudo ufw deny 53
you could pull the cable, or if using an external WiFi donglecan remove it.thepreceeding rule with this command:
ufw delete deny 53
you may also need to restart UFW after changing the rules:
sudo service ufw restart
More information on using UFW can be found here
- If using Ethernet you could pull the cable, or if using an external WiFi dongle remove it.
The first is probably easier, but the second will allow you to allow/disallow traffic by IP address, port, protocol etc.
You don't mention what model Pi you are using, but a better long term solution may be to get a second Pi that you can dedicate to just the video, or a model 3B, which may provide better performance because of its upgraded processor - compared to other models.