tags:

views:

585

answers:

1

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

A: 

Just in case you did a copy/paste:

--to 10.0.0.75:50 should be --to-destination 10.0.0.50:80

If not; then: Can you ping 10.0.0.50 from the router? Can you ping the router from 10.0.0.50 (ie, does it have a route to 192.168.10.0/24?)

Eddy
sorry that was a typo, .50 is correct.Yes, I can ping the router from 10.0.0.50.