Hi, I have a problem with a certain teen who stays up all night playing WoW... I would like to know how I could secretly disable his internet acess at night so he can actually get some sleep! My modem/router (gateway) doesn't have this feature.
Thanks!
Most anti-virus software has the ability to activate a full fire wall which stops all internet access.
He will probably figure it out eventualy but this should provide a temporary solution.
If you are using a shared computer or have access to his computer, you could set up a user account for him that has limited times (In Win7 and Vista I believe). If this is not the case, and you cannot set such rules on your router, you are out of luck. Unless you want to unplug the router every night.
Remove the modem/router and put it under your pillow ;)
Build yourself a Linux box with Ubuntu Server and use iptables to setup a time-based rule. Make sure you get a second NIC so you can use that as your internal LAN or WAN, depending on which Ethernet number gets assigned. I assume 192.168.5.x to be your LAN address.
http://www.cyberciti.biz/tips/iptables-for-restricting-access-by-time-of-day.html
For starters, I will help you out with this.
First, download and burn Ubuntu Server to your blank CD or use a USB flash drive instead. You can save your money by just using a flash drive. No need for blank CDs anymore! :)
I use eth0 for WAN and eth1 for LAN. So, you might want to disconnect your cable from the router's WAN port and connect that to your Linux box so that DHCP can be configured automatically. Be sure you power-cycle your modem. :)
Once you've installed Ubuntu, type in:
sudo nano /etc/sysctl.conf
and set both net.ipv4.ip_forward and net.ipv6.conf.all.forwarding to 1 (note that IPv6 is optional, but it's highly recommended that you switch it in so that your Linux box and any other computers can be IPv6-ready.
Next, type in:
sudo nano /etc/dhcp3/dhclient-enter-hooks.d/nodnsupdate
Hit Enter and type in the following:
#!/bin/sh<br /> make_resolv_conf(){<br /> :<br /> }
This stops the DHCP Client from messing with the /etc/resolv.conf file.
Next, type in:
sudo nano apt-get install dhcp3-server bind9
Type in "y" and press Enter. This will install the needed programs for serving IPv4 addresses and provide a DNS server.
Next type in:
sudo nano /etc/resolv.conf
and type in:
nameserver 127.0.0.1
This will point to the local DNS server. You can give it a try by pinging www.google.com. If it works, you don't need to mess with the local DNS server.
Now for the network interfaces:
sudo nano /etc/network/interfaces
# The loopback network interface<br /> auto lo<br /> iface lo inet loopback</p> <p># The primary network interface<br /> auto eth0<br /> iface eth0 inet dhcp<br /> post-up iptables-restore < /etc/iptables.up.rules</p> <p># LAN Interface<br /> auto eth1<br /> iface eth1 inet static<br /> address 192.168.5.1<br /> netmask 255.255.255.0
Now, for the next file:
sudo nano /etc/iptables.up.rules
# Generated by iptables-save v1.4.8 on Sat Jul 10 10:14:52 2010<br /> *nat<br /> :PREROUTING ACCEPT [75044:8540159]<br /> :POSTROUTING ACCEPT [1360:169898]<br /> :OUTPUT ACCEPT [37035:3065074]<br /> -A POSTROUTING -o eth0 -j MASQUERADE<br /> COMMIT<br /> # Completed on Sat Jul 10 10:14:52 2010<br /> # Generated by iptables-save v1.4.8 on Sat Jul 10 10:14:52 2010<br /> *filter<br /> :INPUT DROP [45:5599]<br /> :FORWARD ACCEPT [0:0]<br /> :OUTPUT ACCEPT [13:2823]<br /> -A INPUT -p tcp -m tcp -m multiport --dports 22 -j ACCEPT<br /> -A INPUT -i lo -j ACCEPT<br /> -A INPUT -i eth1 -j ACCEPT<br /> -A INPUT -i eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT<br /> -A FORWARD -i eth1 -o eth0 -j ACCEPT<br /> -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT<br /> COMMIT<br /> # Completed on Sat Jul 10 10:14:52 2010
And for the last part. This is where you can setup a DHCP Server:
sudo nano /etc/dhcp3/dhcpd.conf
authoritative;<br /> option domain-name-servers 192.168.5.1;<br /> option routers 192.168.5.1;</p> <p>subnet 192.168.5.0 netmask 255.255.255.0 {<br /> range 192.168.5.4 192.168.5.254;<br /> }
You can then restart your Linux box.
Now, all you need to do is connect your router's LAN ports to the back of your Linux box's Ethernet port associated with eth1.
If your main computer is connected to the router, you will need to log in, disable your router's DHCP server since your Linux box provides one, and change your router's IP address to 192.168.5.2. Your router can be an access point if you have that capability.
So let's recap:
Modem <-> Ubuntu Server <-> Switch/Access Point <-> Computers
If you can access the Internet with your computer that is connected to the Linux box, congrats! Now you can setup a time-based filtering using iptables using the link I've provided. :)
EDIT: Oh, know what? I did not realize that this thread is quite old. Please excuse me for resurrecting this thread.
well do u have control over the BNET account...
eg pw and secret question if so.
Go to battle.net login.
go to perinatal controls. and u can set what times they can play
but me being a wow player i would kill you
also who makes your router
Or you can easily tap into the router from your pc and disable wireless....you are done.
Case close.
Another way is to tap into the router and quickly rebooted from time to time. Most routers have this option.
This will piss anyone off. (lol)
if it was me, in my house, i would just walk down to the basement and unscrew the modem's cable from the coax splitter on the rafters
There are also those wireless remotes that disable electrity to a wall outlet.
I have a couple of those and works wonders.
On My router I have it set where only mac addresses I allow can use My router. You could set this up and disable His computers mac address at will. :P
Tracer when adding MAC addresses to the router just don't include his.
YEs this is to tap into those machines that want to use your wireless for extra security protection.
Copyright 2013 © Godem Online Inc. | Web and server solutions by NewTech Solutions.