So I have a bridge off the coova. It's dd-wrt running in AP mode. It runs well enough, and when I'm logged into the internal network I have access to the bridge at 10.1.0.200.
However, I want to access the bridge from outside the network. So I tried to use a prerouting command in iptables such as this:
iptables -t nat -I PREROUTING 1 -p tcp --dport 8080 -j DNAT --to 10.1.0.200:80
So when I access coova on say 126.96.36.199:8080 where coova ip is 188.8.131.52 and im accessing on port 8080 to try to hie gui access, then i should be forwarded to the gui interface on port 80 at 10.1.0.200.
However, that is not happening. The coova refuses to forward into the network. I've tried to open every port for 8080, i've tried different ports randomly such as 8001, 12345, etc... but it just won't work.
I know the prerouting command works because i tried it out on a different system and routed myself to google. I've also used the same prerouting to forward DNS and SMTP requests through coova to a different system.
The bridge is all set up via WDS with an ip and so forth. If I'm on the coova unit it's connected to I can see it, and I can grab the html index page via the wget command, so I have port 80 access to the gui from coova. I just can't get there from outside.