Downloads stopping before they are finished

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


Joined: 18 Oct 2009
Posts: 15

PostPosted: Sat Oct 24, 2009 18:52    Post subject: Downloads stopping before they are finished Reply with quote
I am using a Netgear WNDR3300 with the recommended DD-WRT v24 build 13064. I just got it a week ago and am still working the kinks out.

I noticed today that when I tried to download a few video podcasts that the downloads would simply stop partway through. These are standard HTTP downloads. If I pause and unpause the downloads in the Firefox download manager they would go for a little while longer and then stop again. I previously noticed that behavior on buffering Youtube videos, but attributed it to server load at Youtube, now I'm not so sure.

I found that if I disable the SPI firewall I am able to download the files from start to finish. Any ideas on what may be causing this and how I could solve it without turning the firewall off?

In case it's needed, here's the background on my networking configuration. I have AT&T U-Verse service that provides internet and TV (IP-based). They provide a "residential gateway" (RG) that is necessary for the TV aspect to work. It also provides internet routing, but I wanted to roll my own router so I had more control over the network. I have the WNDR3300 configured as a router and have set it as the DMZ in the RG. The RG actually gives the public IP address to my router - not really sure how it does that, but that's what happens. Based on that, it seems like for all intents and purposes the WNDR3300 is seeing a public internet connection, so I don't understand why there is this trouble downloading files.
Sponsor
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10141

PostPosted: Sun Oct 25, 2009 1:20    Post subject: Reply with quote
Add the iptables rule to your firewall script.

http://svn.dd-wrt.com:8000/dd-wrt/ticket/973

_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
compunerd632
DD-WRT Novice


Joined: 18 Oct 2009
Posts: 15

PostPosted: Sun Oct 25, 2009 2:43    Post subject: Reply with quote
Thanks phuzi0n, that appears to have worked! Once you narrowed down the problem area I saw that my DHCP leases were only good for 10 minutes, explaining why I saw the problem so often.

Just curious, why do the default firewall rules block DHCP renewals?
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10141

PostPosted: Sun Oct 25, 2009 4:57    Post subject: Reply with quote
Because half-bridge mode ("DMZplus" on 2wire brand) on certain modems/gateways will send DHCP offers from a different address than the router requests a renewal from. The firewall then blocks the offer because it didn't come from the address it expected.
_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
Phreaker47
DD-WRT Novice


Joined: 23 May 2007
Posts: 21

PostPosted: Wed Dec 23, 2009 9:59    Post subject: Reply with quote
Wow, thanks SO much for this. My issue was a carbon copy of the OP... being behind a 2wire RG and having the exact same issues. I actually went and bought a new WRT160N just to discover the same problem again... but now that I've found this I have reinstalled my old WRT54G 1.1 and added the IPTABLES command. The problem is gone and I'll get my money back on the new one.
superflysocal
DD-WRT Novice


Joined: 18 Jan 2010
Posts: 28

PostPosted: Fri Feb 19, 2010 16:17    Post subject: Reply with quote
phuzi0n wrote:
Add the iptables rule to your firewall script.

http://svn.dd-wrt.com:8000/dd-wrt/ticket/973


can you explain to a newby how to do this?

I went to admin->commands and copy and paste the above and then run commands. I also put it in startup.

When I am using torrents, it will download fast and then drop to nothing in about 5 to 10 minutesand then startup again.
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Fri Feb 19, 2010 16:29    Post subject: Reply with quote
superflysocal wrote:
phuzi0n wrote:
Add the iptables rule to your firewall script.

http://svn.dd-wrt.com:8000/dd-wrt/ticket/973


can you explain to a newby how to do this?

I went to admin->commands and copy and paste the above and then run commands. I also put it in startup.

When I am using torrents, it will download fast and then drop to nothing in about 5 to 10 minutesand then startup again.
Same page but save firewall
_________________
The New Me
mudfinger
DD-WRT Novice


Joined: 02 Sep 2011
Posts: 2

PostPosted: Fri Sep 02, 2011 3:26    Post subject: Reply with quote
I have this exact problem. The link to correct is dead. Does anyone have a valid link?
JohnnyP
DD-WRT Novice


Joined: 29 Dec 2008
Posts: 4

PostPosted: Fri Sep 02, 2011 4:06    Post subject: Reply with quote
Here is my firewall script. I ran into the same issue with my motorola dsl This solved it.

iptables -I INPUT -p udp --sport 67 --dport 68 -j ACCEPT
mudfinger
DD-WRT Novice


Joined: 02 Sep 2011
Posts: 2

PostPosted: Fri Sep 02, 2011 4:47    Post subject: Reply with quote
so basically you enter the commend into the command shell under admin and "save firewall" and "run command"? this is what i tried and now have an entry under the command shell in a firewall box. just wanted to confirm but i think it is right. BTW it is dd-wrt v24 sp2 (10-10-09 std build) is running on a linksys wrt-54g v2.2.

Thanks
JohnnyP
DD-WRT Novice


Joined: 29 Dec 2008
Posts: 4

PostPosted: Fri Sep 02, 2011 13:47    Post subject: Reply with quote
I ran into the same issue using iTunes. The ip address would change every 10 minutes and then the file would drop out and have to be restarted. Putting this in solved it. I think all you need to do is "save firewall" and you should be good to go.
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10141

PostPosted: Wed Sep 07, 2011 1:35    Post subject: Reply with quote
mudfinger wrote:
I have this exact problem. The link to correct is dead. Does anyone have a valid link?

http://svn.dd-wrt.com/ticket/973

_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
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