Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 THE DD-WRT V2 ( V24 SP2 Firmware Released ), Support For All DD-WRT Compatible Router

views
     
LrdShaper
post Aug 11 2009, 03:14 PM

New Member
*
Junior Member
16 posts

Joined: Jul 2005
From: /opt/var/log/kernel


QUOTE(raist86 @ Aug 10 2009, 10:32 PM)
i'm fed up with trying to configure the router to filter p2p.
in the end, decided to use this iptable command to block all ports except http, https, ftp, and msn.

CODE
iptables -I FORWARD 1 -p tcp -m multiport --dport 21,80,443 -j ACCEPT
iptables -I FORWARD 2 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -I FORWARD 3 -j DROP


problem is, my boss (dad) wants it to be set on a timer so that it'll only take effect during office hours and after office hours, the china workers can use the line as normal. they call download all they want and fight for the bandwidth themselves.

Is there a command/script to do that? If yes, please advice.
*
How about creating 2 scripts: 1 to create the iptables rules and 1 to remove it then schedule them to run in cron
LrdShaper
post Aug 11 2009, 11:43 PM

New Member
*
Junior Member
16 posts

Joined: Jul 2005
From: /opt/var/log/kernel


QUOTE(raist86 @ Aug 11 2009, 11:24 PM)
and how would that script be written?

i've taken the http only script dd-wrt site and did some modification to allow for msn and ym.

Have no idea on how to set up a schedule to control the script.
*
Here you go: http://www.dd-wrt.com/wiki/index.php/CRON
LrdShaper
post Aug 12 2009, 11:18 AM

New Member
*
Junior Member
16 posts

Joined: Jul 2005
From: /opt/var/log/kernel


QUOTE(cruel_boy @ Aug 12 2009, 03:55 AM)
no bro u didn offend me. juzz makes me stressed whn ppl simply say read this, read tht... i wouldn't b here 1st if i understand it all. sorry for my rudeness.

But anyhow, may i know wat version of dd-wrt u using? i still find tht the one in tutorial (Service is under Administration) as well as urs is abit diff.

im using DD-WRT v24-sp1 (07/27/08) min
*
Dude you should upgrade to the newer builds, v24-sp1 has so many issues its not even funny
LrdShaper
post Aug 17 2009, 01:17 AM

New Member
*
Junior Member
16 posts

Joined: Jul 2005
From: /opt/var/log/kernel


QUOTE(Christopher_LKL @ Aug 14 2009, 09:25 PM)
hi all .. i have a dlink dir-300, flashed to v24 sp2 build 12533 (latest), but having this problem as in ... the load average, i dunno if its a bug, but all loads starts with 1 which means 1.xx, 1.xx, 1.xx and not 0.xx, 0.xx, 0.xx ...
means my router working @ more than 100% all the time o.O? anyone having the same problem as me?
*
What does top show?
LrdShaper
post Jun 21 2010, 03:20 PM

New Member
*
Junior Member
16 posts

Joined: Jul 2005
From: /opt/var/log/kernel


You have both of them? Where did you get the N16? I stopped looking for it a few months ago since I couldn't find them here

 

Change to:
| Lo-Fi Version
0.0235sec    0.52    7 queries    GZIP Disabled
Time is now: 2nd December 2025 - 04:14 PM