Linux 版 (精华区)

        我上午装了一个 samba, 配置后工作正常. (用 testpram                 
        和 smbclient -L localhost 分别测试过.) 可是该 samba                
        装在一个双网卡的 Firewall 上, 现在外部网可看到它,                  
        内部网却不行, 请问该如何作才能使它对内部可见?                      
                                                                           
需要在 [global] 里加上 interfaces =                                        
如                                                                         
                                                                           
interfaces = 192.168.xx.xx/24 202.38.xx.xx/26                              
或                                                                         
interfaces = 192.168.xx.xx/255.255.255.0 202.38.xx.xx/255.255.255.192      
                                                                           
                                                                           
      多谢指点, 现在的问题是用 smbclient -L innethost 可以看见             
        内部网的机器的共享情况, 可是在内部网机器上用网络邻居或查找         
        却不能看到 samba server, 这是什么原因? 请多指教!                   
                                                                           
                                                                           
1. 如果需要别人能看到你 , 而且在 linux 上没有帐号 , 需要有                 
                                                                           
  guest ok = yes                                                           
  guest account = nobody                                                   
  browseable = yes                                                         
                                                                           
  这个可以在 [global] 中 , 也可以在 任意一个 share 中 , 后者更好           
                                                                           
2. Samba 是 IBM 的 LanManager 协议 , 也是 NetBIOS over TCP/IP .            
  它要定时广播自己的状态 , 有时候需要刷新才能看到 , 有时不刷新             
  看到的是老的状态, 而不是现在的状态 .                                     
                                                                           
--

                              Enjoy Linux!
                          -----It's FREE!-----

※ 来源:.紫 丁 香 bbs.hit.edu.cn.[FROM: mtlab.hit.edu.cn]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:3.257毫秒