The Computer Oracle

allowing local network access while blocking internet access

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Ocean Floor

--

Chapters
00:00 Allowing Local Network Access While Blocking Internet Access
00:46 Answer 1 Score 1
01:05 Accepted Answer Score 1
01:40 Answer 3 Score 9
01:49 Answer 4 Score 11
02:55 Thank you

--

Full question
https://superuser.com/questions/81364/al...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#internet #blocking

#avk47



ANSWER 1

Score 11


Block default gateway in firewall

netsh advfirewall firewall add rule name="Block default gateway" dir=out action=block remoteip=192.168.0.1

is a good method because

  • compared to changing the
    • default gateway address to an invalid address netsh interface ip set address name="Local Area Connection" static 192.168.0.2 255.255.0.0 0.0.0.0 it doesn't require DHCP disabling
    • DNS address to an invalid address netsh interface ip set dns "Local Area Connection" static 127.0.0.1 validate=no access without using DNS (f.e. http://74.125.224.72) is blocked too
  • compared to route delete 0.0.0.0 mask 0.0.0.0 192.168.0.1 the setting is saved



ANSWER 2

Score 9


I think the simplest way for doing this is to set wrong default gateway.




ANSWER 3

Score 1


I believe you could do this at the router level (depending on you QOS) and put in a rule to BLOCK all traffic (outbound off LAN) for that specific server/computer IP.

That way the server can function just fine internally but the router will drop / deny all access externally.




ACCEPTED ANSWER

Score 1


The easiest way to do this by far (but anyone technical could bypass) is simply to go to internet properties and change the proxy to something non-existent.

Other than this, If you have no intranet, you could look at Windows Firewall (If this is Vista +, not sure XP supports this) and block port 80 outgoing.

Both of these methods can be countered if the machine is not locked down.

Personally, if there is no reason for users to be on this other than there programs, just completely lock it down through group policy.