D-Link Forums

D-Link DSL Modem/Routers => DSL-520B => Topic started by: JacksBack on November 12, 2012, 06:48:07 PM

Title: Web server behind DSL-520B
Post by: JacksBack on November 12, 2012, 06:48:07 PM



Hello,

I'm trying to configure our new DSL-520B router to allow one of the computers behind it to be a web server. We'll handle DNS later - at the moment, if our IP address is 206.123.234.123, I'd like to be able to

http://206.123.234.123

and get to the server. I can't - every time I do this from a machine behind the DSL-520B, I get the log-in window for the router. A machine outside the router can't connect at all.

We have a virtual server setup configured like this:

Web Server (HTTP)    80    80    TCP    80    80    192.168.2.11    206.123.234.123    disable

(The machine that's being a web server is running Apache, and it's configured correctly. If I http://192.168.2.11:8080 on a machine behind the DSL-520B, I can browse the pages on our local web server.)

I'm pretty sure I've missed something fairly obvious - while we have a fair bit of expertise with net servers, this is the first time we've tried setting up something like this.

Can anyone point me to some instructions or suggest what we need to do to make this work?

Thanks.

::Jack



Title: Re: Web server behind DSL-520B
Post by: FurryNutz on November 12, 2012, 06:56:08 PM
You need to contact your ISP service and make sure that they allow other Web Servers on there systems. Sometimes ISP block port 80 from allowing web servers from being accessed which we can configure anything around. Using Virtual server should be used however if the ports are closed on the ISP side, it won't work. Please verify with the ISP this this is allowed.
Title: Re: Web server behind DSL-520B
Post by: FurryNutz on November 12, 2012, 07:54:26 PM
Might try the following:
http://forums.dlink.com/index.php?topic=13539.0 (http://forums.dlink.com/index.php?topic=13539.0)
Not sure if it will help or not.

Review the following:
http://forums.dlink.com/index.php?topic=40720.0 (http://forums.dlink.com/index.php?topic=40720.0)
Title: Re: Web server behind DSL-520B
Post by: JacksBack on November 13, 2012, 09:04:44 PM

I hadn't thought of the ISP blocking ports.

I contacted them - they're fine with our hanging a web server on the DSL connection, and they assure me that all ports are unblocked.

Where should we look next?

::Jack
Title: Re: Web server behind DSL-520B
Post by: Grem on November 13, 2012, 10:16:10 PM
JacksBack,
Probably you forgot to turn off all your modem wan port Access Control Services. Its under Management menu.

Your web server is 192.168.2.11:8080  ???
Code: [Select]
Web Server (HTTP)    80    80    TCP    80    80    192.168.2.11    206.123.234.123    disablebut you trying to forward external 80 to internal 80 not 8080

1. Turn off wan port Access Control Services. And don't forget to change all default passwords  ;)
2.  I don't know how your "virtual server" or "forwarding menu" looks like on DSL-520B (It's another local variant of DSL320 or DSL2500 )
Code: [Select]
Server Name External Port Start External Port End Protocol Internal Port Start Internal Port End Server IP Address
Web Server (HTTP) 80 80 TCP 8080 8080 192.168.2.11
Title: Re: Web server behind DSL-520B
Post by: JacksBack on November 14, 2012, 08:37:55 AM

Hello again,

Under Access Control -- Services there's a list with FTP, HTTP, ICMP, SNMP, TELNET and TFTP. They're all enabled for LAN and all disabled for WAN. Is this correct?

When I set up the virtual server for HTTP, a message appeared that said "Since port 80 is used, the DSL router WEB server port will be moved to 8080." I took this to mean that any client outside the router attempting to access the server behind the router through port 80 would have the packets translated by the router to port 8080, and as such, I had the web server listen on port 8080. Should we handle this differently?

This is what our virtual server entry looks like at the moment (if I've used the Insert Image feature here correctly.)

(http://www.soundsindie.com/dsl.png)

Thanks for all your help so far.

::Jack


Title: Re: Web server behind DSL-520B
Post by: FurryNutz on November 14, 2012, 08:51:53 AM
I believe you are correct as an inbound traffic on the public port 80 would need to be translated to a different port such as 8080 which is a valid port for anything internal. Port 80 is a WAN side port and generally not translated on the LAN side. I most cases it doesn't even need any sort of forwarding as it's a main port for most HTTP traffic. I believe the LAN side port could be any port number value just as long as the client side server and SW is looking at the specified LAN side port and is configured correctly in the router. So I presume you should change the Internal Port Start and End to 8080.
Title: Re: Web server behind DSL-520B
Post by: JacksBack on November 14, 2012, 09:08:08 AM

If I set the Internal Port Start and Internal Port End to 8080 (rather than 80), nothing changes.

Attempting to access the page normally, http://216.123.238.123 , gets me to the login window for the router. Attempting to access it with the port number, http://216.123.238.123:8080, gets a "Firefox can't establish a connection to the server" screen.

In that the eventual users of the web server are going to be using conventional URLs, such as http://www.myserver.com , rather than http://www.myserver.com:8080 , this is going to need to work without the router wanting to respond to HTTP requests on the default port of 80 (by asking for a router login password.)

What can I try next?

::Jack

Title: Re: Web server behind DSL-520B
Post by: FurryNutz on November 14, 2012, 09:26:37 AM
Attemping to use that same IP address I'm getting a VM Portal 5 You must use the View Client to access this Connection Server

To connect, start the View Client and enter https://216.123.238.123 as the server URL. You can open this page in Internet Explorer to install or automatically start the View Client.

Alternatively, use the links below to download a suitable View Client installer:

Is this correct?
Title: Re: Web server behind DSL-520B
Post by: JacksBack on November 14, 2012, 09:38:09 AM

Sorry - my bad. That's not our real IP address, this being a public forum and all. I can e-mail you the real one if it would help. (If so, let me know the address to send it to.)

::Jack

Title: Re: Web server behind DSL-520B
Post by: FurryNutz on November 14, 2012, 09:42:35 AM
PM me the real one...
Title: Re: Web server behind DSL-520B
Post by: JacksBack on November 14, 2012, 09:46:53 AM


I'm so old-tech - we don't PM.

I sent it to the e-mail address in your profile. Hope this works.

::Jack

Title: Re: Web server behind DSL-520B
Post by: FurryNutz on November 14, 2012, 10:06:26 AM
I'm old too however PM is quicker here. Hehe.

Ya, my Opera is not getting anything here at work.
I wonder if you set Internal Start port to 0 and End to 65535? Try this on both WAN and LAN ? Not sure if this will work.

Are there any firewall settings?
Title: Re: Web server behind DSL-520B
Post by: JacksBack on November 14, 2012, 10:20:19 AM

Tried setting the ports from 1 to 65535 (port zero being invalid, the router says.) Nothing changed.

I don't see any firewall settings in the router, unless they're called something different. It's not a firewall issue in the web server, as (a) the problem doesn't go away when the web server's firewall is disabled and (b) the network monitor running on the web server doesn't show any packets getting that far when I try to access the web server through the external IP address.

I suspect that the problem involves persuading the router not to interpret HTTP traffic sent to the external IP address as an attempt to access the router's web interface, but rather, to pass these packet through to our internal network. Nothing in the configuration for the router seems to address this, but I could be missing the obvious.

::Jack

Title: Re: Web server behind DSL-520B
Post by: FurryNutz on November 14, 2012, 10:53:38 AM
Ya, I wish I had a bit more experience on DSL model modem.

You should phone contact level 2 or 3 Dlink support and see if we are missing something. Seems like it's something simple and your just about there.
Title: Re: Web server behind DSL-520B
Post by: FurryNutz on November 14, 2012, 11:25:22 AM
Can you gleam any information from these links?
http://connecteddigitalworld.com/2009/08/15/how-to-manually-configure-your-router-for-windows-home-server-remote-access/ (http://connecteddigitalworld.com/2009/08/15/how-to-manually-configure-your-router-for-windows-home-server-remote-access/)

http://sanzon.wordpress.com/2008/04/04/setting-up-web-server-behind-router-wrt54g2/ (http://sanzon.wordpress.com/2008/04/04/setting-up-web-server-behind-router-wrt54g2/)

Router models are different however networking should be similar.
Title: Re: Web server behind DSL-520B
Post by: Grem on November 15, 2012, 03:04:47 AM
Under Access Control -- Services there's a list with FTP, HTTP, ICMP, SNMP, TELNET and TFTP. They're all enabled for LAN and all disabled for WAN. Is this correct?
yes

When I set up the virtual server for HTTP, a message appeared that said "Since port 80 is used, the DSL router WEB server port will be moved to 8080." I took this to mean that any client outside the router attempting to access the server behind the router through port 80 would have the packets translated by the router to port 8080, and as such, I had the web server listen on port 8080. Should we handle this differently?
This is what our virtual server entry looks like at the moment (if I've used the Insert Image feature here correctly.)
http://www.soundsindie.com/dsl.png
That mean that your again set Internal Port Start/End 80, not 8080 or not apply settings.

If I set the Internal Port Start and Internal Port End to 8080 (rather than 80), nothing changes.
1. there will be no message about port
2. you forward your external 80 of router to internal server port 8080.

Attempting to access the page normally, http://216.123.238.123 , gets me to the login window for the router. Attempting to access it with the port number, http://216.123.238.123:8080, gets a "Firefox can't establish a connection to the server" screen.
Its because you trying to connect from local to internal(lan) modem port 80. You need to use other Internet connection to connect external(wan) router port 80.
From local network 216.123.238.123:80 = lan_modem:80
From other network 216.123.238.123:80 = wan_modem:80 -> forward to 192.168.2.11:8080

Change your Internal Port Start/End from 80 to 8080.
Don't forget when you change something like that - save/reboot modem from menu. Some setting working only for current session.

If you cant access from other internet connection to your web server:
1. Firmware bug.
2. Server not properly configured.

How to test:
1. Run uTorrent
2. Enable WebUI and set port 8080
3. Configure modem
Code: [Select]
External Port Start External Port End Protocol Internal Port Start Internal Port End Server IP Address
Web Server (HTTP) 80 80 TCP 8080 8080 xxx.xxx.xxx.xxx
xxx.xxx.xxx.xxx -your lan client ip with uTorrent
4. Connect from other internet connection to http://your_external_ip/gui/
your external ip http://www.whatismyip.com/ (http://www.whatismyip.com/)
If not work - change external port 80 to 81 and try again. Make sure there are no problems with firewall.
Title: Re: Web server behind DSL-520B
Post by: FurryNutz on November 15, 2012, 08:13:41 AM
Thanks Grem for helping out on this.  ;)
Title: Re: Web server behind DSL-520B
Post by: JacksBack on November 15, 2012, 01:28:08 PM

Thanks for all your help - we'll try D-Link's support.

Can I ask you two (hopefully) lesser questions?

1. Once or twice a day, the DSL-520B router goes into vapor lock. Its Internet light turns red, and stays that way. The only way to get back on line is to manually power it off and on again.

I believe it's encountering a momentary DSL outage, which it's not recovering from. (It does successfully recover from most short outages.)

Is there a configuration setting to get it past this issue?

2. Most routers have an option to make their DHCP server's lease time "forever." Is there a way to make the DSL-520B do this?

Thanks again.

::Jack

Title: Re: Web server behind DSL-520B
Post by: FurryNutz on November 15, 2012, 01:35:49 PM
Ya, not seeing any DHCP Lease times like on DIR series routers. I would present this to D-Link support as well. If there is a problem with the ISP or signal, this could effect how the modem behaves. It should recover should the signal go down then come back. You should ask your ISP to review there logs to see if they see anything when this happens. Something could be preventing the modem from renewing gracefully and needs to reboot. I would have your ISP check the phone lines to be sure they are properly installed, configured and filtered where needed.
Title: Re: Web server behind DSL-520B
Post by: Grem on November 15, 2012, 10:46:01 PM
JacksBack,
it was the easiest question. I know for sure it works(in my case with Apache and uTorrent for several years).
I hope you be attentive and do exactly as your local support say. That will be the best in this case :)
And it seems will remain unknown - can your router forward any port.
Or i missing something.

1. You can get info about that in Modem System Log page :)
Also in my case there "Keep alive PPP connection" and "LCP echo interval" settings.
According to this manual http://www.dlink.com/us/en/support/product/-/media/Consumer_Products/DSL/DSL%20520B/Manual/DSL-520B_Manual_US.pdf
There no such options in 520B F/W 1.0 - And 320 and 2500 get them in latests (or earlier) F/W.
But differs from this:
http://support.dlink.com/Emulators/dsl520B/310/index.htm

2. just for information:
DSL-320B/DSL-2500U - Both contain static DHCP list (manual add). Max Leased Time(in hours) is 2^31 value (5879615 years) :D
According to this manual you can do the same (Page 38)

Also pages 41-42 Contain useful information.

I will not take up your time any more.
Title: Re: Web server behind DSL-520B
Post by: FurryNutz on November 16, 2012, 07:32:47 AM
Awesome info Grem. Thanks for your help on this.

One last resort suggestion if the DSL modem can't seem to be configured correctly, get yourself a external router, such as a DIR series, bridge the DSL modem and then use the external router to handle the PPPoE connection and set up the router for any ports and such for Web Server connections.

I do hope that DLink support can help you get the DSL configured though.

Please let us know how it goes. If they get it going, PLEASE post details and pictures.  ::)