I've got a Netgear WNR3500L v2 router that I've installed Toastman's tomato onto.
I've got several servers that I run, and static IP addresses. I've got NAT working perfectly from the inside — when I ssh to my server on the cloud, I get it from the correct IP address. But I cannot get port forwarding to work the other direction, no matter what I do. I don't know if I've run into a bug or I'm just pounding my head against something I should be able to see, but I've definitely gotten frustrated.
I'm using this guide:
My firewall script looks like this:
/usr/sbin/ip addr add X.X.X.81/29 dev vlan2 /usr/sbin/iptables -t nat -I POSTROUTING 1 -p all -s 10.0.0.50 -j SNAT --to X.X.X.81 # this is the line that seems to not work no matter what I do. /usr/sbin/iptables -I FORWARD -m tcp -p 80 -d 10.0.0.50 -j ACCEPT /usr/sbin/iptables -t nat -I PREROUTING -d X.X.X.81 -j DNAT --to 10.0.0.50
I've run out of things to try at this point.