I am having trouble accessing lighttpd web server locally on the lan with the external ip. If i go out of my lan (or try accessing it from WAN), it works fine.
I followed this guide
my firewall settings are:
iptables -t filter -A INPUT -p tcp —dport 80 -j ACCEPT
iptables -t filter -A INPUT -p tcp —dport 443 -j ACCEPT
I was reading the above link and Teddy says that a nat loopback to all is neded, to be able to access the website with the external ip.
i have tried:
iptables -t nat -A WANPREROUTING -p tcp —dport 80 -j ACCEPT
Im stumped. Can any one show me how?