在 /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'
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