I wanted to use my Asus RT-N16 router as a web server and start serving simple web pages over the internet using DDNS.
I am using TomatoUSB Version 1.28.
After reading documentation, forum posts and tutorials from this and other sites, I was able to successfully install optware and then install lighttpd on the JFFS memory in the router. I chose to install on the JFFS because my hard drive already had data on it and I was not sure about creating a new partition on it.
The lighttpd webserver is working and I configured it to log to my hard drive and pointed the document root to the hard drive as well instead of the flash memory in the router.
My next step is to make it available on the internet. This is where I am running into some trouble. I am not an expert in this area. Here is what I tried: The lighttpd web server is running on port 8081. In the port forwarding settings, I set the Ext Ports to 80, Int Port to 8081, Int Address to 192.168.1.1 (the ip address of the router itself). I then enabled the DMZ with a destination address of 192.168.1.1. (I was worried about security, exposing my router address to the internet like that so I added a source address restriction that I know I can use for testing to the DMS and port forwarding settings)
When I try to access the webserver from a computer with the source address specified above, it just spins for a long time and then times out. The url I am using is http://<my DDNS domain name>
My assumption is that this request comes in on port 80 and because the router is in the DMZ, it is received and forwarded to the lighttpd webserver running on port 8081. But obviously something is not set up properly. Not sure if my ISP blocks requests over port 80, I removed the port forwarding and just went straight to port 8081 from the internet. Same result. I am able to use remote management to my router fine using my DDNS however.
Any suggestions, comments or solutions would be appreciated.