void
16-01-2006, 21:18
Hi,
I am trying to get my WL500G running a webserver on a 128Mb stick.
I flashed to oleg latest (7-7) and have installed ipkg and the php-thttpd webserver using the macstat tutorial. Now the webserver is working, but I can't get the webserver to serve on the outside.
So, 192.168.2.1:81 serves the test page and 192.168.2.1 shows the WL500 webinterface. When I use my outside IP http://outside I get the WL500G webinterface instead of my own page.
I have WAN access to the webinterface disabled and this is my post-firewall script:
#!/bin/sh
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 $1 -p tcp --dport 80 -j DNAT --to-destination $4:81
iptables -A INPUT -j DROP
Enabling a virtual server from the NAT tab, pointing it from 80 to 192.168.2.1:81 does not have any effect.
Surely I am missing something..:confused:
Thanks!
I am trying to get my WL500G running a webserver on a 128Mb stick.
I flashed to oleg latest (7-7) and have installed ipkg and the php-thttpd webserver using the macstat tutorial. Now the webserver is working, but I can't get the webserver to serve on the outside.
So, 192.168.2.1:81 serves the test page and 192.168.2.1 shows the WL500 webinterface. When I use my outside IP http://outside I get the WL500G webinterface instead of my own page.
I have WAN access to the webinterface disabled and this is my post-firewall script:
#!/bin/sh
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 $1 -p tcp --dport 80 -j DNAT --to-destination $4:81
iptables -A INPUT -j DROP
Enabling a virtual server from the NAT tab, pointing it from 80 to 192.168.2.1:81 does not have any effect.
Surely I am missing something..:confused:
Thanks!