分类 "随手发现" 下的文章

1 编辑

vi /etc/config/firewall
config zone
        option name 'wan'
        option network 'wan'
        option input ‘ACCEPT’ (修改)


<!--more-->

增加

config rule
        option name 'Open  Samba on WAN'
        option src 'wan'
        option proto 'tcp udp'
        option dest_port '137 139 445'
        option target 'ACCEPT'

config redirect
        option name 'wan samba'
        option src 'wan'
        option src_dport '137 139 445'
        option dest 'lan'
        option proto 'tcp udp'

2 编辑

vi /etc/samba/smb.conf.template
        interfaces = br-lan wan  #此行修改
        #bind interfaces only = yes   #此行注释掉

接着重启一下即可!

阅读全文