Sunday, October 28, 2007

I use OpenWrt whiterussian (0.9) with miniupnpd 1.0-RC5. On the macbook I use for torrents. The problem is that it maps the port successfully but reports the port (9090) as stealth. I finally fixed this nagging issue with this command:

iptables -t nat -I PREROUTING -p tcp --dport 9090 -j DNAT --to-destination

Now says the port is Open.

Here's the relevant iptables listing:

root@OpenWrt:~$ iptables -v -t nat -nL |grep 9090
188K 9893K DNAT tcp -- * * tcp dpt:9090 to:
187 11636 DNAT tcp -- * * tcp dpt:9090 to:

The first line was added by miniupnpd. Not sure what the -0 is there for.

No comments: