Friday, March 16, 2012

打开openwrt路由器的wan端口

打开openwrt路由器的wan端口以后,不需要接入路由器的内网就可以执行管理操作。

在 /etc/config/firewall 里加了两条规则而已:

#Allow ssh on wan
config rule
option 'target' 'ACCEPT'
option 'src' 'wan'
option 'proto' 'tcp'
option 'dest_port' '22'

#Allow web UI on wan
config rule
option 'target' 'ACCEPT'
option 'src' 'wan'
option 'proto' 'tcp'
option 'dest_port' '80'

这事情不是我做的,所以也备忘一下。


No comments:

Post a Comment