I don't know if tomato firmware has cron jobs but if cron exists then the you can try running ipt-parse on the hours that are onpeak.
Main Topics
Browse All TopicsI have a Linksys WRT54GL Wireless Router running the latest version of the Tomato firmware that my household uses exclusively for internet access.
Since by default, the Tomato firmware can't do this manually, I downloaded and installed a utility called ipt-parse (https://launchpad.net/ipt
Since ipt-parse lets you supply custom arguments for iptables, I'm wondering if it's possible to do something extra here. Since our internet service has both onpeak and offpeak hours, I'm wondering if it's possible to configure iptables to only supply current bandwidth consumption during certain hours and maybe just returning 0 otherwise.
Is it possible to configure iptables to perform that kind of output? Or will I have to go about this some other way?
Thanks!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
kartook->
Oh cool thanks for that!
Hmm, I'm a little confused there. Will that actually block access? Or just reroute it during certain hours?
vikingtechnologies->
Yeah, Tomato has cron jobs. At the moment, ipt-parse is being executed every 15 minutes through it.
Hmm, yeah I was already thinking that, but I'm since I'm not exactly sure how iptables works (I'm assuming it outputs all of the net data since it was last called and now), I wasn't sure if that would actually make a difference or not (aside from making the log update somewhat slower)
you can add iptables with a rule using:
iptables -A .... -m time --timestart hh:mm[:ss] --timestop hh:mm[:ss]
It can include a date with --datestart / --datestop.
See man iptables on a linux system or here: http://linuxreviews.org/ma
Business Accounts
Answer for Membership
by: kartookPosted on 2009-08-25 at 22:55:39ID: 25184744
You can use Squid proxy for supply bandwidth consumption during certain hours ...
########## ########## ########## ###
########## ########## ##
########## ########## ###
You can create access control lists with time parameters. For example, you can allow only business hour access from the home network, while always restricting access to host 192.168.1.23 or the LAN subnet
##########################
# Add this to the bottom of the ACL section of squid.conf
#
acl home_network src 192.168.1.0/24
acl business_hours time M T W H F 9:00-17:00
acl RestrictedHost src 192.168.1.23
#
# Add this at the top of the http_access section of squid.conf
#
http_access deny RestrictedHost
http_access allow home_network business_hours
############
Or, you can allow morning access only:
#####################
#
# Add this to the bottom of the ACL section of squid.conf
#
acl mornings time 08:00-12:00
#
# Add this at the top of the http_access section of squid.conf
#
http_access allow mornings
##################
Thanks