DIR 615 D1: Port Forwarding doesn't work

Post new topic   Reply to topic    DD-WRT Forum Index -> Ralink SoC based Hardware
Goto page 1, 2  Next
Author Message
karamba
DD-WRT Novice


Joined: 30 Dec 2010
Posts: 5

PostPosted: Thu Dec 30, 2010 10:31    Post subject: DIR 615 D1: Port Forwarding doesn't work Reply with quote
hardware: DLINK DIR-615 router
firmware: DD-WRT v24-sp2 (12/24/10) std

Hi guys,
I hope that is the right forum for the DLINK DIR-615. I am not 100% sure. Don't hesitate to tell me if I am wrong here.

Due to lack of functionality of the DLINK firmware I flashed my DIR-615 router with the latest dd wrt firmware (thank you guys for that cool stuff!!!).

But I didn't do it that way:
1. 30/30/30 reset
2. hex edit the .bin-file?
(What exactly do I have to insert? I have read at http://www.dd-wrt.com/phpBB2/viewtopic.php?p=435276 that I have to insert my model number. Is that the MAC-ID?)
3. upload and flash .bin file
4. let it reboot
5. when dd-wrt gui is loaded do another 30/30/30 reset

I simply flashed it via the management interface to the device. Could that cause the error mentioned below?

My goal is to make my webserver accessible via the internet with it's DynDNS hostname.

First I set up static DHCP to ensure my webserver will always get the same IP (image 1 below).

After that I set up my router to work with DynDNS (image 2 below). After that my router was accessible with my DynDNS hostname from the LAN (port forwarding is not yet setup).

To set up port forwarding I followed the instruction on the following website (image 3 below):
http://www.dd-wrt.com/wiki/index.php/Port_Forwarding#Port_Forwarding_using_the_Webinterface

But unfortunately my webserver is not accesible from the internet. I only get the message "page not found". Besides port range forwarding I also tested port forwarding. But it doesn't work either.

My iptables setup is listed below:
Code:

root@admin:~# iptables --list
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
DROP       tcp  --  anywhere             anywhere            tcp dpt:ssh
DROP       tcp  --  anywhere             anywhere            tcp dpt:ssh

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
ACCEPT     0    --  anywhere             anywhere
TCPMSS     tcp  --  anywhere             anywhere            tcp flags:SYN,RST/SYN TCPMSS clamp to PMTU
lan2wan    0    --  anywhere             anywhere
ACCEPT     0    --  anywhere             anywhere            state RELATED,ESTABLISHED
logaccept  tcp  --  anywhere             server              tcp dpt:www
logaccept  udp  --  anywhere             server              udp dpt:www
TRIGGER    0    --  anywhere             anywhere            TRIGGER type:in match:0 relate:0
trigger_out  0    --  anywhere             anywhere
logaccept  0    --  anywhere             anywhere            state NEW

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain advgrp_1 (0 references)
target     prot opt source               destination

Chain advgrp_10 (0 references)
target     prot opt source               destination

Chain advgrp_2 (0 references)
target     prot opt source               destination

Chain advgrp_3 (0 references)
target     prot opt source               destination

Chain advgrp_4 (0 references)
target     prot opt source               destination

Chain advgrp_5 (0 references)
target     prot opt source               destination

Chain advgrp_6 (0 references)
target     prot opt source               destination

Chain advgrp_7 (0 references)
target     prot opt source               destination

Chain advgrp_8 (0 references)
target     prot opt source               destination

Chain advgrp_9 (0 references)
target     prot opt source               destination

Chain grp_1 (0 references)
target     prot opt source               destination

Chain grp_10 (0 references)
target     prot opt source               destination

Chain grp_2 (0 references)
target     prot opt source               destination

Chain grp_3 (0 references)
target     prot opt source               destination

Chain grp_4 (0 references)
target     prot opt source               destination

Chain grp_5 (0 references)
target     prot opt source               destination

Chain grp_6 (0 references)
target     prot opt source               destination

Chain grp_7 (0 references)
target     prot opt source               destination

Chain grp_8 (0 references)
target     prot opt source               destination

Chain grp_9 (0 references)
target     prot opt source               destination

Chain lan2wan (1 references)
target     prot opt source               destination

Chain logaccept (3 references)
target     prot opt source               destination
LOG        0    --  anywhere             anywhere            state NEW LOG level warning tcp-sequence tcp-options ip-options prefix `ACCEPT '
ACCEPT     0    --  anywhere             anywhere

Chain logdrop (0 references)
target     prot opt source               destination
LOG        0    --  anywhere             anywhere            state NEW LOG level warning tcp-sequence tcp-options ip-options prefix `DROP '
LOG        0    --  anywhere             anywhere            state INVALID LOG level warning tcp-sequence tcp-options ip-options prefix `DROP '
DROP       0    --  anywhere             anywhere

Chain logreject (0 references)
target     prot opt source               destination
LOG        0    --  anywhere             anywhere            LOG level warning tcp-sequence tcp-options ip-options prefix `WEBDROP '
REJECT     tcp  --  anywhere             anywhere            tcp reject-with tcp-reset

Chain trigger_out (1 references)
target     prot opt source               destination


Is that setting correct? Should't be the forwarding rule inside?

Please excuse my bad spelling and grammar. English is not my native language. But any helpful comments are appreciated.

Thanks a lot in advance for your help and don't hesitate to ask for more detailed information!

karamba.


Last edited by karamba on Sun Jan 02, 2011 17:08; edited 2 times in total
Sponsor
slaveunit
DD-WRT User


Joined: 06 Sep 2008
Posts: 163

PostPosted: Thu Dec 30, 2010 21:36    Post subject: Reply with quote
Yes port forwarding doesnt work in the newer builds for many.

Try:
DD-WRT v24-sp2 (11/09/10) std - build 15704
karamba
DD-WRT Novice


Joined: 30 Dec 2010
Posts: 5

PostPosted: Thu Dec 30, 2010 21:51    Post subject: Reply with quote
Thanks. At least I am not alone Razz.

Please excuse the stupid question... . Where can I find that build for my router? I couldn't find it under the downloads section of dd wrt:
http://www.dd-wrt.com/site/support/other-downloads

Thanks!!!
slaveunit
DD-WRT User


Joined: 06 Sep 2008
Posts: 163

PostPosted: Fri Dec 31, 2010 0:27    Post subject: Reply with quote
Path: Downloads › others › eko › BrainSlayer-V24-preSP2 › 11-09-10-r15704
karamba
DD-WRT Novice


Joined: 30 Dec 2010
Posts: 5

PostPosted: Fri Dec 31, 2010 8:44    Post subject: Reply with quote
Thank you so much!!!
Port forwarding works with build 15704 as you suggested.
maxi1134
DD-WRT Novice


Joined: 31 Dec 2010
Posts: 3

PostPosted: Fri Dec 31, 2010 23:11    Post subject: Reply with quote
I use the c1 model and have the same problem someone know how i can repair that ?
st07
DD-WRT User


Joined: 21 Nov 2008
Posts: 61

PostPosted: Sat Jan 01, 2011 1:25    Post subject: Reply with quote
you're kidding, right?
karamba
DD-WRT Novice


Joined: 30 Dec 2010
Posts: 5

PostPosted: Sun Jan 02, 2011 9:35    Post subject: Reply with quote
My suggestion: Try an older build of the firmware as slaveunit mentioned:
Follow this link:
http://www.dd-wrt.com/site/support/other-download
Quote:
Path: Downloads › others › eko › BrainSlayer-V24-preSP2 › 11-09-10-r15704


Good luck.
slaveunit
DD-WRT User


Joined: 06 Sep 2008
Posts: 163

PostPosted: Sun Jan 02, 2011 15:44    Post subject: Reply with quote
I wouldn't put the title as "solved". Nothing has been solved in the current builds.
karamba
DD-WRT Novice


Joined: 30 Dec 2010
Posts: 5

PostPosted: Sun Jan 02, 2011 17:05    Post subject: Reply with quote
Hi slaveunit,
you are more experienced than me. I supposed I post a problem and it is solved for me I add that as Info for other users.

If this is not the commond procedure I will remove the [solved] from the title.

karamba
slaveunit
DD-WRT User


Joined: 06 Sep 2008
Posts: 163

PostPosted: Sun Jan 02, 2011 18:35    Post subject: Reply with quote
Most people used "solved" when the problem is actually fixed. I just wouldn't consider going back to an older version a real "fix". I think the port forwarding is still a very valid issue without a current fix for the newer builds.
st07
DD-WRT User


Joined: 21 Nov 2008
Posts: 61

PostPosted: Mon Jan 03, 2011 20:24    Post subject: Reply with quote
I put up a ticket but they closed it due to being a "duplicate" of some other issue (which I don't agree with) and no answer, so knows if and when we'll have a fix for the DIR615.

http://svn.dd-wrt.com:8000/dd-wrt/ticket/1903
Vaako
DD-WRT User


Joined: 10 Jun 2009
Posts: 370

PostPosted: Tue Jan 04, 2011 1:16    Post subject: Reply with quote
Many devices have problems with latest builds, just stick to yours that was working Wink
_________________
Regards,
Vaako

1x Netgear R7800 Nighthawk - firmware not decided yet !!!!
1x Netgear R7000 Nighthawk r36410
1x Ubiquiti RouterStation Pro DD-WRT r23204 std (12/24/13)
1x Asus RT-N16 SVN revision 20675 NEWD-2 K2.6
1x Linksys E4200 v3.0 r34777 mega (01/31/18 )
1x Buffalo WZR-HP-G300NH B0 B0 Gargoyle FW
1x Linksys WRT600N v1.1 (Bricked)
1x Linksys WRT54GL v1.1 (DD-WRT 26446)
1x Linksys WRT54GS v2.2 (DD-WRT 26446)
1x Linksys RVS4000 (stock fw)
3x D-Link DWL-7100AP (openWRT)
2x TP-Link TL-WA801ND (Bridge mode) 100mW TX-Power
Asus WL-520GU SVN 16403M NEWD-2 Eko std-nokaid
4x Fonera with Gargoyle FW
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10141

PostPosted: Sun Jan 16, 2011 3:11    Post subject: Reply with quote
st07 wrote:
I put up a ticket but they closed it due to being a "duplicate" of some other issue (which I don't agree with) and no answer, so knows if and when we'll have a fix for the DIR615.

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

I was hoping you'd follow the breadcrumb trail from the original ticket to the post in the Broadcom forum but now I'll explain it a bit more directly. You should be able to still access all of your port forwards from the WAN side with recent builds because loopback itself is functional, but loopback functionality was removed so you can not access the port forward from inside your LAN. The original ticket now explains how you can fix it with iptables rules.

First you should test to make sure that your port forwards are accessible from the WAN side making sure to use the exact same settings from a "working build."

If it works then you should test the port forwards from inside your LAN which should fail. Then add iptables rules to your firewall script to fix loopback and retest to make sure that you can once again access the port forwards from within your LAN.

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

You should find that only loopback is broken and that the iptables rules fix it. If so then please spread the word more in the Ralink forum since I only occasionally come to this section. If not then I'll investigate further because I do have a WHR-G300N to test with.

_________________
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)
st07
DD-WRT User


Joined: 21 Nov 2008
Posts: 61

PostPosted: Sun Jan 16, 2011 23:49    Post subject: Reply with quote
Many apologies, you are indeed correct, external access is fine but loopback appears to be disabled.

Many thanks for your reply Cool
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Ralink 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 cannot attach files in this forum
You cannot download files in this forum