How to restrict internet access to a PC/Laptop?

Rickster

EVGA Fanatic
Joined
Jul 31, 2012
Messages
23,317
Reaction score
5,607
Location
Joe'berg
Ive got a Laptop that im busy reinstalling windows on, I would like to connect it to my network/pc but want it to no have internet access.

Im sure i know how but ive just hit a blank, ive changed the DNS settings to some random figures, will this work?

Also I dont have a fancy router that can do this and I dont feel like using a direct connection to/from the PC's.


Thanks.
 
Option #1 (Windows Firewall rules)

You could create a firewall rule to block these connections. Follow these steps:

Change the default firewall behavior to block outbound network connections:

Enter "firewall" from the Start search and open "Windows Firewall with Advanced Security".
Notice which firewall profile is active. It says "... is active" in the overview list.
Click on Windows Firewall Properties
Change state for Outbound connections for the active profile to Block.
Click OK to apply.
Create a firewall rule to allow local network outbound connections:

Go to Outbound Rules and select New Rule... from the Actions in the right pane.
Rule type should be Custom:
Go to the Scope step and for the remote IP address, select these IP addresses, then Add.., then Predefined set of computers and finally Local Subnet.
Go to Name step, enter name of "Allow local Subnet" and click Finish.
You're done configuring it!

Control via script

To block all outbound Internet traffic:

netsh advfirewall set currentprofile firewallpolicy blockinbound,blockoutbound
To allow all outbound Internet traffic

netsh advfirewall set currentprofile firewallpolicy blockinbound,allowoutbound
Option #2 (Specialized software)
https://superuser.com/questions/345...ly-use-the-local-subnet-but-block-the-interne

GIYF
 
Top
Sign up to the MyBroadband newsletter
X