chris.brandhorst
New Around Here
Context:
- Running the latest vanilla firmware (3.0.0.4.370);
- LAN IP of router is 10.1.1.1;
- Firewall is ON;
- Added EXT2 formatted USB stick;
- Installed optware through installing Download Manager;
- Installed lighttpd through optware on port 8080.
Lighttpd runs fine, I can access it from the LAN. However, opening it up to the outside world has proven to be a hassle. Disabling the firewall makes it all work, but of course we don't want that.
I tried fiddling around with the port forwarding settings. If I add the following rule (.217 being my laptop, which also runs a webserver), I can access the laptop fine (testing from an iPhone on 3G through my DDNS address):
So I though that I could also use this to forward the request to lighttpd:
But that doesn't work.
I tried some custom iptables rules, but they all don't bring the required result. For instance, I tried opening up the admin interface to the WAN through the admin interface setting, and then changing the target port 80 to 8080, but that also did not work.
I'm kinda drawing a blank here, don't know where to start looking next. Any ideas would be very much appreciated. What must I do to give WAN access to lighttpd on the router?
- Running the latest vanilla firmware (3.0.0.4.370);
- LAN IP of router is 10.1.1.1;
- Firewall is ON;
- Added EXT2 formatted USB stick;
- Installed optware through installing Download Manager;
- Installed lighttpd through optware on port 8080.
Lighttpd runs fine, I can access it from the LAN. However, opening it up to the outside world has proven to be a hassle. Disabling the firewall makes it all work, but of course we don't want that.
I tried fiddling around with the port forwarding settings. If I add the following rule (.217 being my laptop, which also runs a webserver), I can access the laptop fine (testing from an iPhone on 3G through my DDNS address):
Code:
*:80 --> 10.1.1.217:80
So I though that I could also use this to forward the request to lighttpd:
Code:
*:80 --> 10.1.1.1:8080
I tried some custom iptables rules, but they all don't bring the required result. For instance, I tried opening up the admin interface to the WAN through the admin interface setting, and then changing the target port 80 to 8080, but that also did not work.
I'm kinda drawing a blank here, don't know where to start looking next. Any ideas would be very much appreciated. What must I do to give WAN access to lighttpd on the router?