How to disable internet access at night on the router?

23

4

I have an internet connection that I'd like to be enabled only during the day. With multiple household internet devices, this would need to be something disabled at the level of the router.

I don't believe the router offers this sort of functionality, but I'm reasonably familiar with setting up web servers and the like, and I'm wondering if I can set up some sort of proxy server on the internet that the router must go through and have that proxy only active at certain times of day.

It's a bit vague I know, but is something like this even possible?

If not, are there other solutions to the problem?

izb

Posted 2012-08-29T12:45:39.000

Reputation: 1 134

3Do you have access to the router's admin features? If you give us a make and model someone might be able to give you specifics. – CharlieRB – 2012-08-29T13:26:44.587

The question title is in conflict with the actual question. "How to disable internet access at night"..."I have an internet connection that I'd like to be enabled only at night" – Moab – 2012-08-29T13:58:15.690

I don’t know about your situation, but we have a cable-modem that has a standby button on top, so each night, I just hit it to turn off all Internet access, even to the router itself (it doesn’t really need to update its clock in the middle of the night). It’s not automatic, but it’s simple and effective. – Synetech – 2012-08-29T14:33:18.860

Answers

40

There are low tech solutions also. You can use a light timer such as this. They also make digital ones that are more customizable.

Keltari

Posted 2012-08-29T12:45:39.000

Reputation: 57 019

I've tried this for a while to restrict PC hours:http://www.lenehans.ie/media/catalog/product/cache/4/image/9df78eab33525d08d6e5fb8d27136e95/0/1/013521.jpg

– Guy – 2016-03-03T11:04:39.033

3@emory Unless you are (purely hypothetically) disabling the internet to force yourself to go to sleep, in which case it must be automatic. – Mark – 2017-01-07T15:02:33.420

@Keltari seems the link is broken. this link may be of interest (while it's still valid, heh :P)

– Nathan – 2018-08-24T00:54:42.320

1@frank i updated a search link to Amazon. – Keltari – 2018-08-24T01:15:27.593

6Genius! I wonder though if the router or its power supply would fail sooner due to the power being toggled so often? Does anyone have experience with using solution? – Chris Nava – 2012-08-29T15:43:14.817

you could use a cheap switch between the router and modem so the router is always on – ratchet freak – 2012-08-29T16:26:55.680

15There is another solution that this even more low tech. Get into the following routine: (1) Wake up. (2) Plug in the router. (3) Go about your day. (4) Unplug the router. (5) Go to sleep. – emory – 2012-08-29T17:07:07.773

Devices like these draw little power, nor do they have a surge in power when turned on. Still, to be safe, always use a surge protector. – Keltari – 2012-08-29T18:41:12.797

4@ChrisNava - I just noticed your question. Yes, I came up with and used this solution before. Long, long ago I worked at a company where we provided dial in access to in internal network. The modem aggregator connected 16 modems to the LAN. I found it would lock up once a week. I called the manufacturer and was told it was an unfixable bug and the device would have to be reset if it occurred. Rather than waiting around for it to fail, I implemented a nightly "maintenance window" which was using the timer to turn the device off at 3AM for 15 minutes. Never had an issue again. – Keltari – 2012-09-03T17:59:54.693

14

If your router supports running DD-WRT, then you can quite happily disable certain features at certain times (or even restrict this to only include particular machines).

If your router doesn't support DD-WRT, then buy a router that does.

See the DD-WRT Website which has a compatibility list (Router Database).

PhonicUK

Posted 2012-08-29T12:45:39.000

Reputation: 2 921

Except for the "buy a new router" portion I recommend this solution. I received a second hand router that supported DD-WRT and promptly replaced my existing (arguably better quality) router that didn't support DD-WRT once I saw its features. – Chris Nava – 2012-08-29T15:46:09.147

2

Some routers have telnet or SSH access. If yours does then you could create a script to log into the router and disable/enable the WAN connection (do a DHCP release/renew.) Run that on a schedule and you're all set. Restarting the router at night would re-enable the WAN in this case.

Chris Nava

Posted 2012-08-29T12:45:39.000

Reputation: 7 009

Run it from where? They have multiple Internet devices, so which one is supposed to be the “master” that administers the router? – Synetech – 2012-08-29T14:31:28.880

Whichever one he wants... – Chris Nava – 2012-08-29T14:39:31.947

You missed the point. Because there are multiple devices, none can be a “master”. For example, he could assign his own laptop to be the master, but what if the wife wants to check her email after you finished up early for the night? With your way, he would need to wait until every device is confirmed to be disconnected, or else leave one system on 24x7; either way it’s at best inconvenient, at worst, a waste. He needs a device-independent way, which is why he asked for an in-router method. – Synetech – 2012-08-29T15:08:34.330

1You are reading too much into the question... He didn't ask for device independence or a solution that doesn't require a computer. This is just one possible way to accomplish the goal. I'm not saying it's the only way or even the best way. Chill out. – Chris Nava – 2012-08-29T15:13:25.870

2"If not, are there other solutions to the problem?" leaves it open to creativity IMHO. – Chris Nava – 2012-08-29T15:14:13.730

This is a good suggestion, I like it. It does however rely on a computer being left switched on at the appropriate time. – izb – 2012-08-29T15:14:35.913

@ChrisNava, ah ok; I didn’t notice the other solutions part, that does indeed leave it open to your suggestion. I got stuck at the at the level of the router part because I have a similar problem in regards to bandwidth monitoring multiple devices.

– Synetech – 2012-08-29T15:17:02.400

1No problem. For the record, I highly recommend the DD-WRT solution if it's available for your router. The light-timer solution is pure genius but I would avoid it on the principal that I'm a coder. ;-) It could also stress the hardware a bit more since these things are designed to be left ON all the time.. – Chris Nava – 2012-08-29T15:41:03.277

2

The OP has not responded to a request for his specific router's "make and model", so we don't know what features it has. However I have a 1 year old, high-end wireless router (dual band, guest network access, wireless on/off switch, USB port), and it does not have direct control of enabling/disabling the "internet access" or the WAN based on a timer.

However this wireless router can perform "content filtering" (aka "parental control") by blocking sites and/or services based on a schedule. The firewall is inspecting all packets traversing the WAN to LAN boundary, and is the natural place to install a simple "internet en/dis-able capability" (i.e. block all sites and services on a nightly schedule).

So the OP should be evaluating the firewall capabilities of his router (e.g. can rules be applied by a schedule), rather than looking for a "WAN disable" feature/capability.

sawdust

Posted 2012-08-29T12:45:39.000

Reputation: 14 697

0

The Apple Airport Extreme support that requirement. Using that functionnality since about 2 years. My teen was playing on the Internet rather than sleeping.

Michel

Posted 2012-08-29T12:45:39.000

Reputation: 1

This should've been a comment. Try to gains some more reputation by asking your own questions or pursuing other activities that could gain you some reputation. As an answer it's lacking any information short of the product name. There is no information on how to configure it or how it works. – Seth – 2016-12-28T12:28:55.027

0

It depends on why you want it off at night. Obviously to disable it completely, internet and network traffic you could just unplug it. That wouldn't work for me because the reason I want it off at night is to keep my teenage kids from staying up too late on their computers, and they could just plug the router back in. So I go into the settings on my router with the password and block all ports on a certain schedule. This would also depend though on if your router supports this feature.

user201969

Posted 2012-08-29T12:45:39.000

Reputation: 1

-1

For a different reason (health concerns over EMF from wifi), I was able to have my computer automatically turn off my wifi at night, and back on in the morning. This method requires a computer that is always on (desktop or server most likely).

I used Selenium to create a script which used the router's web admin interface to disable the wifi, and another script which enabled it. Then I created a scheduled job in Windows that invoked those scripts at the proper times each day. Selenium apparently works in Mac OS X and Linux as well.

Michael Lucas

Posted 2012-08-29T12:45:39.000

Reputation: 179

Could use a script on the router itself, if it's supported. I believe dd-wrt supports cron scripts, among others. Or, if your router has a physical button, you could configure it to toggle the wifi on & off, like dd-wrt and the old WRT54 routers, among others. Why have the wifi on at all unless you're actually using it anyway? – Xen2050 – 2019-03-20T20:13:19.203