Bekijk de volledige versie : How to access files of WL-500gp from http ?
Hi.
Is it possible to access files from WL-500gp trought http ? How?
Thanks.
Hi.
Is it possible to access files from WL-500gp trought http ? How?
Thanks.
Read about HeadStart.
gouryella
30-03-2009, 13:27
Hi.
Is it possible to access files from WL-500gp trought http ? How?
Thanks.
it's very easy:
mkdir /opt/share/www
echo hello world > /opt/share/www/index.html
busybox_httpd -p 81 -h /opt/share/www
access on:
router_ip:81
access from wan on standart port (80):
iptables -A INPUT -p tcp --dport 80:81 -j ACCEPT
iptables -t nat -A PREROUTING -i "$1" -p tcp --dport 80 -j DNAT --to-destination $4:81
it's very easy:
mkdir /opt/share/www
echo hello world > /opt/share/www/index.html
busybox_httpd -p 81 -h /opt/share/www
access on:
router_ip:81
access from wan on standart port (80):
iptables -A INPUT -p tcp --dport 80:81 -j ACCEPT
iptables -t nat -A PREROUTING -i "$1" -p tcp --dport 80 -j DNAT --to-destination $4:81
Thanks ;)
Really works, but I have another request :)
How to build a dynamic http based on the files in the directory just like the oleg firmwares -> http://oleg.wl500g.info/1.9.2.7-10/
gouryella
31-03-2009, 00:07
Thanks ;)
Really works, but I have another request :)
How to build a dynamic http based on the files in the directory just like the oleg firmwares -> http://oleg.wl500g.info/1.9.2.7-10/
I see
but it's not work with busy, use lighttpd instead :-)