26
13
With the original firmware of my router I had port forwarding defined from port 80 to the server in the LAN, which I used in conjunction with an external dynamic DNS service.
I've now upgraded to DD-WRT and alas the port forwarding only works for requests to the external IP from outside the LAN. From inside the LAN I can only access the server by its internal IP.
How can I get the external IP (and thereby the domain name connected to the dynamic external IP) to be properly accessible also from inside the LAN?
I prefer to find out how to achieve it with standard DD-WRT definitions but using e.g. iptables isn't out of the question.
Can somoene (UrEl?) please explain why that iptables command works? I'd like to use it, but what if it opens up my entire network. :) – ragerdl – 2015-07-16T07:37:02.260
Saving it in the firewall script worked for me. I didn't try it as a startup script. – ragerdl – 2015-07-16T07:41:06.963
That was NOT obvious! worked like a charm :) – Jay – 2011-10-14T03:04:16.370
I set this as a startup command and rebooted the router, but no change — still doesn’t work. – Timwi – 2012-03-11T22:57:11.287
Worked for me. Thank you very much. Now I can access my ddns assigned IP from my internal network on my DD-WRT routers. – nusi – 2012-05-07T00:27:54.493
3This worked for me, but only if I saved it as the firewall script and not the startup script. – Jarett Millard – 2012-07-29T05:00:57.327
@Timwi - As Jarett mentioned, I too had to put this in the "Firewall" section, not the "Startup" section. – dan_linder – 2014-02-22T03:53:24.097