I need help accessing my webserver from internet. I installed lighttpd on optware and it works fine locally, but I cannot access it from outside. I opened port 8080 (my ISP blocks 80) to 192.168.1.1 (that is my router's ip). Is there anything else I need to do? TIA.
Date: 22 Nov 2010 18:04
Number of posts: 6
RSS: New posts
Everyone's router is 192.168.1.1.
192.168.1.1 is a local network ipaddr, and that addr doesn't route outside your LAN.
You need to do some google investigation to see what you need to do.
Maybe try this:
Go to administration, scripts and Firewall.
Input the following to forward 8080 port:
# for webserver iptables -I INPUT -p tcp --dport 8080 -j ACCEPT
save and reboot your router
Try the rule posted by Eded.
If that's not enough, try adding a 2nd rule for PREROUTING chain, so both rules - including the one posted by Eded - will be:
iptables -t nat -A WANPREROUTING -p tcp --dport 8080 -j ACCEPT iptables -A INPUT -p tcp --dport 8080 -j ACCEPT
Do not try to test it from inside of your LAN using your WAN IP. For this to work, the request must actually come from the outside (WAN), or you have to have the "NAT Loopback" set to "All".
I have the same when I establish a VPN connection. I cannot seem to get remote access to the router.
I have been struggling with it for couple of weeks now. I am using openVpn
Thank you Eded and teddy_b for your help! It worked like a charm. I just put the line Eded mentioned. If you guys don't mind can you please explain why the normal port forwarding (from the Port Forwarding screen) didn't work?