1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Embedded WRT web server accessible without password

Discussion in 'Cisco/Linksys Wireless Routers' started by stefor, Apr 5, 2005.

  1. stefor

    stefor Network Guru Member

    I know that the admin console of WRT routers is working over an embedded web server.

    I would like to share a simple asp file to the computers connected on my LAN.
    So I had a look (by telnet) in /www directory an I put there my file.asp.
    Then I could access the file by http://routerIP/file.asp
    The problem is that I need to enter the router password before accessing the file.asp page.
    I was wondering if there is a way to let file.asp accessible without having to enter the router password (a kind of public area) ?

    nb: I have WRT54GS 1.0 running DD-Wrt 22 Prefinal2 firmware
     
  2. MoinMan

    MoinMan Network Guru Member

  3. stefor

    stefor Network Guru Member

    Wahoo... sounds complicate for a newbee like me.
    But anyway this seems to be what I was seeking. I will try that.
    Big thanks MoinMan for the link.

    Billion dollar question: do you think it will work with DD-wrt firmware ?
     
  4. MoinMan

    MoinMan Network Guru Member

    I tried it on HyperWRT but it should work on every firmware with telnet/ssh access, so DD-Wrt should be fine - as long as you have enough free ram - try "free" on the command line.
    BTW if you want to kill this server again use "ps" to find the [pid] and then "kill [pid]".
    And don't be scared, it might sound complicated but is really easy.
     
  5. jagboy

    jagboy Network Guru Member

    that is cool!!!!!!!!!
     
  6. jagboy

    jagboy Network Guru Member

  7. jagboy

    jagboy Network Guru Member


    sorry here are some changes change the above to your own html code. or get some web site. or use winscp to drag and drop some website into var/bin/web/



    and also change the above to cd /var/bin/ mkdir busybox

    once you are done doing all of the steps to view the page you can type in your web borwser <your router ip>/index.html or what ever the web page name is.
    i am working on how to view this form the internet.
     
  8. MoinMan

    MoinMan Network Guru Member

    @jagboy: read the link i posted, there u will find the iptables command to reach your new httpd from outside.
     
  9. stefor

    stefor Network Guru Member

    Many thank folks for these usefull information.
     
  10. jagboy

    jagboy Network Guru Member

    could some one test this out for me:
    http://melvin125.mine.nu:3000/index.html

    click on the link i want ti see if a setup my web page right on my router. could you pm me or post a reply if you see anything
     
  11. stefor

    stefor Network Guru Member

    Did not work.
     
  12. stefor

    stefor Network Guru Member

    Ok I did everything and it works fine. I can now access the web server without having to authenticate myself. :dancing:

    But as soon as I reboot my router, everything disapears (/var is a link to /tmp/var).

    If I try to do the same in /bin (instead of /var/bin) it says: Read-only file system

    Is it normal :?:
     
  13. MoinMan

    MoinMan Network Guru Member

    Yes this is normal behaviour since we are only installing this webserver in RAM, which gets cleared while rebooting. But you could write those commands in your startup script if you use HyperWRT (thats what I'm using) or use JFSS2 in DD-WRT.
     
  14. Jeffrccar

    Jeffrccar Network Guru Member

    port 3000 is blocked to the outside. Try opening port 3000 in the router:ports Range Forward http://192.168.1.1/Forward.asp
    This may work or may not work i have not tried it.

    if you download 7-Zip[web:15af20108f]http://debin.org/zzip/[/web:15af20108f], then zip your files into a tar file which then you can extract tar right to the router. lastly, you del the tar file and your all set until the next router reboot.
     
  15. jagboy

    jagboy Network Guru Member

    does the iptable rule go in the command prompt.
     
  16. jagboy

    jagboy Network Guru Member

  17. stefor

    stefor Network Guru Member

  18. stefor

    stefor Network Guru Member

    Hi Jeffrccar, I am not sure that I have understood everything.
    What is this for (sorry if my question too noob) ?
     
  19. Jeffrccar

    Jeffrccar Network Guru Member

    Sorry, i did not explain well i guess...

    This program compresses multiple files into one file(*.tar) and makes it so you don't have to download single every file to the router. Also, if the router reboots you can quickly restore the files lost in the flash memory.

    I'll tell you how to do it and it will save you a lot of time.
    First, download Z-zip, install it, and add the files(like webpages files) to the *.tar file with Z-zip.
    Secondly, upload the *.tar file to a http server or ftp server.
    Thirdly, log into the router by telnet or SSH and download the *.tar file by using the command: "wget" or "ftpget".
    Fourly, use the command: "tar -x -v *.tar" to extract the files.
    And lastly, use the command "rm *.tar" to remove the tar file.
     
  20. stefor

    stefor Network Guru Member

    Ok I have understood now. Many thanks Jeffrccar for this idea.
    But in fact I would prefer to do it automaticaly when the router has finished to reboot.

    Is it possible to have a startup script which can do the same automaticaly while the router is rebooting (something like init.d or rc.d in linux) ?
     

Share This Page