Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 35

Thread: WAN Webserver on port 80

  1. #16
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    If you upgrade to the newest firmware from oleg (1.9.2.7 CR4), then there is an post-mount script where you can put all the stuff which is dependend on the HDD.

    Edit: Otherwise you can use my script which is this:
    Code:
    #!/bin/sh
    i=0
    while [ $i -le 30 ]
    do
    	if [ -d /tmp/harddisk/ftp_pub ]
    	then
    		break
    	fi
    	sleep 1
    	i=$i + 1
    done
    And which was posted just a few posts above yours...
    Last edited by Styno; 16-03-2005 at 09:13.

  2. #17
    Join Date
    May 2004
    Location
    France...
    Posts
    159
    Quote Originally Posted by Styno
    If you upgrade to the newest firmware from oleg (1.9.2.7 CR4), then there is an post-mount script where you can put all the stuff which is dependend on the HDD.

    Edit: Otherwise you can use my script which is this:
    Code:
    #!/bin/sh
    i=0
    while [ $i -le 30 ]
    do
    	if [ -d /tmp/harddisk/ftp_pub ]
    	then
    		break
    	fi
    	sleep 1
    	i=$i + 1
    done
    And which was posted just a few posts above yours...
    I went to this topic before seing the last release by oleg....
    The Struggle Continues...
    Asus WL500g #1 with fw 1.9.2.7-7f running as main home gateway, with Philipps PWC730k
    Asus WL500g #2 with fw 1.9.2.7-7f running as Wireless Client, running palantir 2.6 with SPCA5xx camera on 128MB generic USB key

  3. #18

    Red face

    I can't get it to work

    I use the v1.9.2.7 CR4 [Oleg] firmware on a asus wl500gx

    The directory sbin in /usr/local does not exist standard...
    So i have created it. Then created the files within, checked with cat, flashfs'd, and rebooted. Checked again, all ok.
    Tried different versions, including the one with the loop in it.

    Copy pasted content files created: (directly from telnet)
    ---------------------------------------------
    [admin@router root]$ cat /usr/local/sbin/post-boot
    #!/bin/sh
    i=0
    while [ $i -le 30 ]
    do
    if [ -d /tmp/harddisk/ftp_pub ]
    then
    break
    fi
    sleep 1
    i=$i + 1
    done

    busybox_httpd -p 81 -h /tmp/harddisk/web
    ---------------------------------------------
    [admin@router sbin]$ cat /usr/local/sbin/post-firewall
    iptables -D INPUT -j DROP
    iptables -A INPUT -p tcp --dport 80 -j ACCEPT
    iptables -A INPUT -p tcp --dport 81 -j ACCEPT
    iptables -t nat -A PREROUTING -i ppp0 tcp --dport 80 -j DNAT --to-destination 192.168.0.101:81
    iptables -A INPUT -j DROP
    -------------------------------------------

    I tried creating the files in /usr/sbin , but then i got the message 'cannot create in read-only file system'.

    I'm quite a linux noob
    I have to buy a good book about it once

    - ftp works fine.
    - can browse to harddrive, all ok.
    - web directory created > /tmp/harddisk/web

  4. #19
    It works great here!... except for one thing, it doesn't start automaticly
    I have to start it manually, execute post-boot with sh.
    I have the newest firmware from oleg, the v1.9.2.7 CR4 [Oleg] firmware.
    In which you can create a post-mount script that automaticly executes when the unit starts up... this doesn't work either..
    How to let it start automaticly, i'm quite a linux noob.. but i'm learning

    But then again, i can live with it

  5. #20
    It works great, but i have to start it manually with sh

    How to let it start automaticly?


    EDIT: Ok, this is really weird

    I did not see my messages, so i posted it again and again, and now they all show up at once ... very strange...
    Last edited by Bartjuh; 29-03-2005 at 08:22.

  6. #21

    Works from the inside but not from the outside

    For me it works from tha LAN side (port 81) but not from the WAN side (port 80). I am redirected to the Wireless Home Gateway Admin pages.
    Any ideas ?


    Quote Originally Posted by alpha5
    Code:
    iptables -D INPUT -j DROP
    iptables -A INPUT -p tcp --dport 81 -j ACCEPT
    iptables -A INPUT -p tcp --dport 80 -j ACCEPT
    iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 80 -j DNAT --to-destination 192.168.1.1:81
    iptables -A INPUT -j DROP

  7. #22
    WAN side works also at port 81.... (at least overhere)????

  8. #23

    Also don't get it to work

    Quote Originally Posted by Bartjuh
    I can't get it to work

    I use the v1.9.2.7 CR4 [Oleg] firmware on a asus wl500gx

    The directory sbin in /usr/local does not exist standard...
    So i have created it. Then created the files within, checked with cat, flashfs'd, and rebooted. Checked again, all ok.
    Tried different versions, including the one with the loop in it.

    ect.......
    so the same problem, please give a solution

  9. #24
    FW 1.9.2.7 CR4: perfectly working... from lan and wan.

    To those who experiment problems with this howto, don't forget to "chmod +x" post-script files!


    Just 2 questions left:

    1. Does the wan access option (in the firewall web setup) have any influence on the final behaviour ( I let it OFF)?

    2. In my web directory, I've putted my main page called "index.htm". So, I type "http://myip.dyndns.org/index.htm" to access it from wan. It would be great if I only had to "http://myip.dyndns.org" to enter this default page. I guess I have to specify it in a .conf file... Any clue for me? Yes, I know... I'm a little bit out of topic ;-)

    Thanks

  10. #25

    port 80 instead of port 81

    i have the same pb as ARNOLDM
    i can't access to the web server by the port 80. I'm always redirected to the admin web page.
    and i can't use the port 81, because the Firewall in my compagny block this port

    Can you tell me how i can use the port 80 for my web server ?

    thanks

  11. #26
    Join Date
    Nov 2003
    Location
    Eindhoven
    Posts
    2,407
    Quote Originally Posted by mao44
    i have the same pb as ARNOLDM
    i can't access to the web server by the port 80. I'm always redirected to the admin web page.
    and i can't use the port 81, because the Firewall in my compagny block this port

    Can you tell me how i can use the port 80 for my web server ?

    thanks
    how are you testing this ? from your own network?

    My little Asus Collection: Too much to fit inhere, my 2 babies:WL500w 1.9.2.7-10(OLEG) VX2SE Yellow Lamborghini notebook



    WL500g Forum Asus Files OpenDir

    Asusforum.NL -- Asusforum.DE -- Asusforum.RU -- Asusforum.PL -- Asusforum.NET -- Asusforum.EU -- Asusforum.BE -- Asusforum.ES -- Asusforum.INFO

  12. #27

    Web server on port 80

    Yes and no :
    i've tried from my network with the same PC (1) , an other PC (by Wifi) (2) and
    from another network (in my Company) (3)

    With the port 81, i can access to my web server from (1) and (2)
    with the port 81, i can't access to my web server from (3) : pb with company firewall

    with port 80, i've always accessed at the management interface

  13. #28

    webserver on port 80

    Hi,

    is it possible to activate the Webserver on port 80 from WAN ?
    and if it's possible, can i use the webserver without activate the management interface from WAN ?

    thanks

  14. #29

    Webserver on port 80: solution with virtual server

    I had the same problem initially. My solution was to create an item in the virtual server list (WL500g web page > NAT Settings > Virtual server)
    with:
    Port range: 80
    Local IP: the local (LAN side) IP address of your ASUS (f.i. 192.168.1.1)
    Local port: the internal port you defined for the web server, f.i. 81
    Protocol: TCP

    It works for me. Try it ! No risk...

  15. #30
    Thanks, it works now

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. WL-HDD as WebServer??
    By fstolle in forum WL-HDD Q&A
    Replies: 11
    Last Post: 27-01-2005, 06:28
  2. WAN Webserver on port 80
    By alpha5 in forum WL-500g/WL-500gx Tutorials
    Replies: 1
    Last Post: 05-01-2005, 16:00
  3. Webserver for Internet how to?
    By NIGHTCD in forum WL-500g Q&A
    Replies: 1
    Last Post: 08-07-2004, 19:38
  4. Webserver !!
    By ThaPaSSioN in forum WL-500g Custom Development
    Replies: 3
    Last Post: 01-07-2004, 12:05
  5. Webserver Indexpages
    By alpha5 in forum WL-500g Q&A
    Replies: 0
    Last Post: 21-06-2004, 10:41

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •