Disabling internet on demand

dmurray14

Golden Member
Feb 21, 2003
1,780
0
0
OK guys, here's what needs to be done...

I'm putting in 8 computers in a public area for students, and there will be a computer at the teacher's desk not too far away. The teacher would like to be able to switch off the internet on those computers from her computer, when she likes. Now, I was thinking of just putting a proxy server on the teacher's computer and telling all the IE's on the computer to use that proxy. Then, she could just turn the proxy server off when she didn't want them to have internet. Unfortunately, though, the kids are too smart for that...they can and will download Opera or Firebird right away and just use that. Any ideas? We want to be able to disable the internet WITHOUT disabling any other network related things.


Thanks
Dan
 

Teva24

Member
Apr 11, 2001
59
0
0
A Windows Solution.

Probably not what you are looking for, but you could write a script that could be remotely executed (a service maybe) that removes the default gateway for those public pc's.

And make sure that the students don't have admin/root access to add it back.

Windows NT/2K/Xp/2k3 example:

c:\windows\system32\deleteroute.cmd:
route delete 0.0.0.0 mask 0.0.0.0 192.168.0.x

Where 192.168.0.x is your default gateway.

This will disable internet access, but leave local lan access enabled (as long as your lan doesn't have multiple sites, but you can just give static routes for those sites)

on the teachers pc setup a icon on the desktop that adds that command as a scheduled task that starts immediatly on those 8 public pc's. As long as the TaskScheduler service is running as system or a account that has permission it should work.

One problem: this will revert back to the normal route if they reboot (DHCP), so maybe login as admin and config the nic's with static ips, and no gateway, then the teacher has to ALLOW access instead of it being on by default.

-Teva24

TextText
 

dmurray14

Golden Member
Feb 21, 2003
1,780
0
0
Teva, this sounds like a great idea, thanks! What would the script to allow internet be? And how does the teacher's PC add tasks to the other PCs?

Thanks so much!

Dan

Edit: what is deleteroute.cmd?
 

EHobaX

Member
Oct 16, 2001
199
0
0
If the router or hub or whatever is connecting the PCs to the internet is in the room, you can have the teacher just unplug the uplink port to the internet. My old company did this whenever we had a training seminar in one of the classrooms. It got very boring and MineSweeper can only take you so far.
 

Teva24

Member
Apr 11, 2001
59
0
0
Take a look at this:
http://www.thecodeproject.com/system/remoteexec.asp

an example delete and add commands are below:
route delete 0.0.0.0 mask 0.0.0.0 192.168.0.[PUT GATEWAY ADDRESS HERE]

route add 0.0.0.0 mask 0.0.0.0 192.168.0.[PUT GATEWAY ADDRESS HERE]

So you could basically use that program on the link above and remotely execute one of these two commands on the remote computers from the teachers pc.

keep in mind that the students must not be admins and must not have access to the local route batch/script files.

-Teva24

 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |