shell script help request

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
PedraSimon
DD-WRT Novice


Joined: 03 Oct 2008
Posts: 13

PostPosted: Fri Oct 03, 2008 15:40    Post subject: shell script help request Reply with quote
I have configured my router to reboot everyday at 6am, and block internet access for my son's pc for weekday 6am - 6pm.

However, occasionally, my wife would like to use that pc. How can I turn off access restriction temporarily? I would like the access restriction to be restored when the router reboot the next morning.


Thanks in advance for helping.
Sponsor
patwood
DD-WRT User


Joined: 29 Jul 2008
Posts: 118
Location: NJ, USA

PostPosted: Thu Oct 09, 2008 23:38    Post subject: Reply with quote
See http://www.dd-wrt.com/wiki/index.php/CRON. You can set up any command to run at any time of day.

Pat
patwood
DD-WRT User


Joined: 29 Jul 2008
Posts: 118
Location: NJ, USA

PostPosted: Thu Oct 09, 2008 23:50    Post subject: Reply with quote
Oh, and you can find the shell commands in this thread: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=25048; look for the iptables command usage. Disabling access looks something like this:
Code:
iptables -I my_group_name 1 -m mac --mac-source PC_s_MAC_ADDRESS -j DROP

and enabling something like this:
Code:
iptables -D my_group_name 1


Pat
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum