刚买了小米3g路由,做了二级路由器。此方法可以从一级路由的电脑访问小米共享文件,大大提高了远程下载的方便

 

1 编辑
vi /etc/config/firewall

config zone

        option name ‘wan’

        option network ‘wan’

        option input ‘ACCEPT’ (修改)

增加
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   #此行注释掉

接着重启一下即可!