I'm using DD-WRT, and can telnet into it to add iptable rules.
I'm looking for a rule that will allow IN from a specific address (say, mydomain.com) on port 80 that will point to an internal IP (say, 192.168.0.200). Note: I've added an A record to mydomain.com to point to my IP address.
iptables -I INPUT -p tcp --src mydomain.com --dport 80 -j ACCEPT iptables -I INPUT -p tcp --port 80 -m string --hex-string "|08|mydomain|03|com" -algo bm -j ACCEPT
I know I can log into the DD-WRT web interface and use port forwarding to do this. And if I do this, it works, but I don't want to allow all requests on port 80, just ones with mydomain.com. Is this even possible?