2015年5月20日 星期三

[linux] DD-WRT port forwarding not working



使用 DD-WRT 的 port forwarding的功能時發現不能正常使用,
查到了下面這篇說有特定版號的DD-WRT 可能位有問題,但是我的不在下面列的版號中。

按造指示加了 iptables firewall rule就 work了


So you’re running your router on DD-WRT and your port forwarding isn’t working? Well, it seems that you’re not alone. I’ve seen multiple different builds with that problem.
The builds include 14896, 15778, 15962, 16454, 18024, 18946, 21676 and maybe even more.

What to do?

Go to Administration –> Commands and type the following command:

iptables -t nat -A POSTROUTING -j MASQUERADE


Click Save Firewall. Enter it again and click Run Commands. Now it should be working for most cases.


Quick tip: DD-WRT port forwarding not working | Heshsum
https://heshsum.wordpress.com/2013/11/15/quick-tip-dd-wrt-port-forwarding-not-working/

沒有留言:

張貼留言