[Samba] Samba through a NAT router

Robin Bowes robin-lists at robinbowes.com
Mon Apr 4 22:02:58 GMT 2005


My network topology is as follows:

  Netgear                  Linksys
   DG632                    WRT54G
DSL Modem --- Switch --- WAP/Router
                 |          (NAT)|
                 |               |
            Samba server (dude)  +-- Win2000 PC (Mum)
                                 +-- WinXP PC (Tosh)

Dude is configured as follows:

# Global parameters
         workgroup = HOME
         server string = Samba Server
         guest account = ftp
         log file = /var/log/samba/%m.log
         max log size = 50
         socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
         os level = 255
         domain master = Yes
         dns proxy = No
         wins support = Yes
         ldap ssl = no
         remote announce =
         remote browse sync =
         cups options = raw
         name resolve order = wins,lmhosts,host,bcast

         comment = Home Directories
         read only = No
         browseable = yes

         comment = All Printers
         path = /var/spool/samba
         printable = Yes
         browseable = No

         comment = Music files used by slimserver
         path = /home/slimserver/music
         write list = robin
         read only = No

         comment = Test share
         path = /home/test
         write list = robin
         read only = No

If I connect the WinXP machine to the 192.168.1.x network I can connect 
to and use the shares on the samba server.

However, when connected to the 192.168.4.x network I am unable to browse 
or connect to the shares.

If I give the full domain name of the samba server (dude.robinbowes.com) 
I can see the shares, e.g.:

C:\Documents and Settings\robin>net view \\dude.robinbowes.com
Shared resources at \\dude.robinbowes.com

Samba Server

Share name  Type  Used as  Comment

homes       Disk           Home Directories
music       Disk           Music files used by slimserver
robin       Disk           Home Directories
test        Disk           Test share
The command completed successfully.

Is there some way to enable browsing across the NAT-enable router?



More information about the samba mailing list