2011-06-03

foxfirefey: A guy looking ridiculous by doing a fashionable posing with a mouse, slinging the cord over his shoulders. (geek)
[personal profile] foxfirefey2011-06-03 04:39 pm

Helpful DD-WRT note regarding loopback

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:
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.