I have a ddwrt router v24 and build something or other. I can connect to my vpn with it, gives me an ip without a problem (192.168.10.200). I would like to port forward 8080/tcp from the vpn ip/interface into my internal lan 10.0.0.50:80.
I've tried just about every iptables command I can think of and still no luck. It feels like the problem is that things arent traversing from ppp0 into the lan. Seems like this should be really simple but it has not been. Thanks.
So far:
iptables -t nat -I PREROUTING -p tcp -d 192.168.10.200 --dport 8080 -j DNAT --to 10.0.0.50:80
iptables -I FORWARD -p tcp -d 10.0.0.50 --dport 80 -j ACCEPT