14
9
I want to block all internet connections to and from my windows 7 machine, but allow it to access everything on the local network. The local network is behind an Apple Airport Extreme.
What is the easiest way to do this?
14
9
I want to block all internet connections to and from my windows 7 machine, but allow it to access everything on the local network. The local network is behind an Apple Airport Extreme.
What is the easiest way to do this?
12
You could create a firewall rule to block these connections. Follow these steps:
Windows Firewall Properties
Block
.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!
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
If you are trying to block Internet access as a result of excessive Internet usage, there is specialized software that can block all Internet access when monthly or daily Internet traffic exceeds pre-defined maximum. Local network access is still allowed, though. One such program is DU Meter, which also has many other bells and whistles related to Internet bandwidth management on Windows computer.
Disclaimer: I'm the author of DU Meter.
Does this work on win8? – Ave Maleficum – 2014-10-14T12:21:05.107
Should work, I haven't tested, though. – haimg – 2014-10-14T14:38:33.040
@Jairo Jamyang Pawo Moreno: If you suggest an edit and it is rejected (by a unanimous vote!), please do not resubmit (essentially) the exact same edit. If you believe that you have a better way to do it, post a separate answer. If you believe that the answer is currently wrong, post a comment explaining why. Yeah, I know that you don’t have the privilege to comment yet.
– G-Man Says 'Reinstate Monica' – 2019-05-20T23:32:35.0907
If you disable DHCP then set an IP address and subnet mask but leave default gateway blank, then your computer will be unable to access outside the local network.
If someone is an administrator over the local machine, they would be able to reverse this if they were trying, but if that isn't a concern then this should work.
This is brilliant! LAN works and no internet at all. I put my router IP DNS in so that I can still use LAN DNS names for devices. SO simple! Thanks +1 – Piotr Kula – 2015-10-15T16:57:44.883
+1: Make sure that the IP address you pick isn't part of the DHCP scope. – afrazier – 2011-10-12T14:19:06.777
1
If you're working through the GUI in Windows 8.x:
select "Internet" under the list of "Predefined set of computers"
Make sure to check the correct profile that is assigned to the network card that you want this rule to work on. Lastly:
check that the rule is enabled
set the Action to "Block the connection"
The rule is active immediately
Do you want to do this on a permanent basis, or based on some condition? – haimg – 2011-10-12T16:07:03.060
I'd like a way to do this by script, but it does not have to respond to anything from the outside. – Tom de koning – 2011-10-12T17:32:50.990
I amended my answer and added control by script. – haimg – 2011-10-12T18:22:08.757