Time of Day Web Access Control
On a Thomson TG587n v2 Router


If you need help with telnet commands, see this first telnet.html

This is not supported on the Thomson TG585 v7

This allows any device on the local network to be blocked from accessing the internet at preset times. 
The schedule can block access at a specified time each day or at different times on different days, the choice is limitless.


Find the MAC Address
First thing we need to know is the MAC address of the PC we wish to limit web access.
On the routers first web page,  under "Home Network" there's a listed all the devices which have recently connected.
Some show the devices MAC address (ie oc-60-76-xx-xx-xx) which is what we're looking for
Others may only show the devices name (ie NPR-PC)

The last 3 parts of the MAC addresses have been edited for security.

If the MAC is not shown above, click on the device name and the MAC address is shown on the next page.
In this case it's called "Physical Address", again the last 3 parts are edited for security.


Once the MAC address of the computer is known, we need to telnet in to the router and issue a few commands.
Anyone not familiar with telnet can have a look here for guidance : Telnet commands for a Thomsons router


Telnet Commands to Create a Schedule

Important
Use the routers web interface to backup the router settings before playing.
Reinstalling the backup or in the worst case resetting to factory default and reinstalling the backup should get things back to how they were.
Use these commands at your own risk.

The following will create a access control schedule to block a specified MAC address between midnight and 8am every day of the week.

Command Comments
tod config acchain=forward_timeofday state=enabled
tod schedule add id=0 type=accesscontrol Create the schedule ID and type
tod schedule dayadd scheduleid=0 id=0 weekday=all
tod schedule timeadd scheduleid=0 dayid=0 id=1 starthour=00 startminute=00 endhour=08 endminute=00 Change starthour=00 and endhour=08 to suit your needs
tod schedule modify scheduleid=0 mode=timerange reference=xx:xx:xx:xx:xx:xx state=enabled Replace "xx:xx:xx:xx:xx:xx" with your own MAC address
saveall Make permanent.
tod schedule list Optional -- view schedules

Note:
The time is in 24hr format.


More Advanced Second Schedule

Access control between 22hr and 08hr for the period Sunday night to Friday morning and between 00hr and 08hr for Saturday and Sunday mornings.
We'll use the above schedule for the hours 00 to 08 over 7 days and add this second schedule for the hours 22 to 23:59 Sunday night to Thursday night.

Command Comments
tod schedule add id=1 type=accesscontrol Create the schedule ID
tod schedule dayadd scheduleid=1 id=7 weekday=su
tod schedule dayadd scheduleid=1 id=8 weekday=mo
tod schedule dayadd scheduleid=1 id=9 weekday=tu
tod schedule dayadd scheduleid=1 id=10 weekday=we
tod schedule dayadd scheduleid=1 id=11 weekday=th
tod schedule timeadd scheduleid=1 dayid=7 id=2 starthour=22 startminute=00 endhour=23 endminute=59 Sunday night
tod schedule timeadd scheduleid=1 dayid=8 id=3 starthour=22 startminute=00 endhour=23 endminute=59 Monday night
tod schedule timeadd scheduleid=1 dayid=9 id=4 starthour=22 startminute=00 endhour=23 endminute=59 Tuesday night
tod schedule timeadd scheduleid=1 dayid=10 id=5 starthour=22 startminute=00 endhour=23 endminute=59 Wednesday night
tod schedule timeadd scheduleid=1 dayid=11 id=6 starthour=22 startminute=00 endhour=23 endminute=59 Thursday night
tod schedule modify scheduleid=1 mode=timerange reference=xx:xx:xx:xx:xx:xx state=enabled Replace "xx:xx:xx:xx:xx:xx" with your own MAC address
saveall Make permanent.
tod schedule list Optional -- view schedules

TOD schedule list.

Showing the above two schedules.
The day is Monday, time is 23:42. -- Schedule 0 is shown as inactive and schedule 1 is shown as active.

Note:
I've avoided using "endhour" settings which are smaller than "starthour" settings, I'm unsure if it will be reliable.
It may be that using 22hr to 08hr or 22hr to 00hr would result in access being blocked for almost one week.
This is something I need to test.


Undo

Command Comments
tod schedule delete scheduleid=0 Repeat for any other schedule ID's present
tod schedule config state=disabled Disable
saveall Make permanent.


Telnet Project for Thomson Routers


Telnet commands for a Thomson router

Multiple SSID  -- (TG587n only)


Web Access Control Schedule (TOD) -- (TG587n only)

Web content filter


Telnet scripting


Enable WDS on a TG585v7 / TG587n

Connect Two Thomson Routers Together

Basic DMZ on a Thomson Router


Advanced DMZ on a Thomson TG587n

Forward all ports to a specific LAN IP

IP QoS

Wake on LAN from Internet

Xbox and PS3 on a Thomson router

Home Page

footer
Copyright© NPR 2010 - 2012       Disclaimer