I went to this topic before seing the last release by oleg....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:And which was posted just a few posts above yours...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
Last edited by Styno; 16-03-2005 at 09:13.
I went to this topic before seing the last release by oleg....Originally Posted by Styno
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
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
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
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.
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 ?
Originally Posted by alpha5
WAN side works also at port 81.... (at least overhere)????
so the same problem, please give a solutionOriginally Posted by Bartjuh
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
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?Originally Posted by mao44
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
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
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
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...
Thanks, it works now