Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hi all,
I'm a new DNS-323 user
Do you think that I can change default http port (80) to another one (ex.323 ). I have already a web server on my network. So to grant access from WAN I need to use another port on my router.
Can anyone help me?
thanks!
Andrea
Offline
If your router supports port forwarding you could just forward the port that way. Examp> HTTP Port Forwarded from 80(External) to 80(internal) for webserver, and then Forward port 323(External) to port 80(internal) for the DNS-323 ip address.
-Aaron
Offline
I know... i know...
With my OLD Alcatel SpeedTouchHome@Pro I could make it. But my actual router (Netgear DG834G) don't support this feature... only address translation... 80 on WAN is 80 on LAN
Offline
Not easily.
Here is the code
static int port = 80; /* Server port */
static int retries = 5; /* Server port retries */
/*
* Open the web server on the given port. If that port is taken, try
* the next sequential port for up to "retries" attempts.
*/
websOpenServer(port, retries);
So it sounds like if you could find something else to run on port 80, you could kill webs (that's the name of the server, /web/webs), start something else to run on 80, then rerun /web/webs and it should flip to 81.
Untested of course, but that would probably be your only possibility. We can't recompile the webserver because a lot of the code DLINK has added to the web server is not public.
Offline
I think it's the perfect solution... Only one more question: I'm really new about this NAS... can you tell me where I must put that code? A link to a guide is really appreciated
Offline
Start of by reading the fun_plug in our wiki. NetCat can be found in the KRH archive. I suppose the script could look something like this:
#!/bin/sh kill -9 `pidof webs` # # I guess there are better solutions than nc, will give strange results if HTTP client access # /mnt/HD_a2/nc -l -p 80 -e /bin/sh & /web/webs &
I think that there is also a http deamon available in at least of one of the busybox varians floating around, check the busybox3 in the KRH archive. Could be used, I suppose, instead of nc to serve a 301 redirect page to a http client accesing port 80.
Also, please note that there are some kind of watchdog checking the presence of the webs service which means that the port 80 listeneer needs to be on-line all the time in the case of restart of the webs application.
Good luck,
/Apan
Offline