Helpful DD-WRT note regarding loopback
Jun. 3rd, 2011 04:39 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
So, I just got a router that has DD-WRT installed on it (which is Linux based!). One of the things I have is a DynDNS account that I point to a development server for Dreamwidth. I was having the darndest time getting port 80 to go to this server, but only while ON the network! Apparently this is something called "loopback" and it didn't work out of the box for this version of DD-WRT. There is a fix, though, documented here:
Which I'm documenting here for my future use and possible help to others who could run into the same issue.
iptables -t nat -I POSTROUTING -o br0 -s 192.168.1.0/24 -d 192.168.1.0/24 -j MASQUERADE
/\ Run within management > run command > save firewall script
Which I'm documenting here for my future use and possible help to others who could run into the same issue.