Results 1 to 11 of 11
  1. #1
    Join Date
    Oct 2002
    Location
    New York's Capital District
    Posts
    2,198

    Samba Question ...

    Hello,

    Currently I have a Fedora box setup with Samba 3 running on it. I have it setup to be managed with SWAT ... and I have the ability to let my internal XP boxes map network drives to it.

    What I want to do is allow others outside of the network (remote employees) to be able to map a network drive to this box.

    It is currently behind a router ... any ideas on this? Let me know.

    Also, anyone know what ports windows uses to map a network drive to IP?
    Know It All Solutions Incorporated
    Web Design, Web Development and Web Hosting

  2. #2
    Join Date
    Nov 2002
    Location
    Bay Area, California
    Posts
    309
    Unless your employees can connect to your network via vpn or some other secure method I would not recommend this.
    Sunwave Communications
    http://www.sunwave.com/
    Safety - Service - Economy

  3. #3
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    9,072
    It's port 137 and 139... or maybe just 139, I can't remember for sure.

    Forward those two ports to your Samba box, and they should have no problems mounting the drives.

  4. #4
    Join Date
    Oct 2002
    Location
    New York's Capital District
    Posts
    2,198
    Originally posted by Pat H
    It's port 137 and 139... or maybe just 139, I can't remember for sure.

    Forward those two ports to your Samba box, and they should have no problems mounting the drives.
    And when mapping the drive what would the map name look like?

    http://servername.com/workgroup/share ?
    Know It All Solutions Incorporated
    Web Design, Web Development and Web Hosting

  5. #5
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    9,072
    Originally posted by KIAHost
    And when mapping the drive what would the map name look like?

    http://servername.com/workgroup/share ?
    If done in IE, \\SAMBAIP\Share

    (I use \\192.168.0.1\freebsd, then I'm prompted for a login and voila.)

    If they wanted to mount a drive in Windows Explorer: Right click on 'My Computer' then click 'Map Network Drive' and pick a Drive Letter, then below that enter in "\\SAMBAIP\Share", then select 'Connect Using A Different Name' and have them enter in their login.

  6. #6
    Join Date
    Oct 2002
    Location
    New York's Capital District
    Posts
    2,198
    It works internally great .. but it won't make it way through the router to the box :-(
    Know It All Solutions Incorporated
    Web Design, Web Development and Web Hosting

  7. #7
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    9,072
    Originally posted by KIAHost
    It works internally great .. but it won't make it way through the router to the box :-(
    Are you sure you opened the ports and forwarded it to the internal IP?

    Perhaps you could message me your external IP address and I will see if it's indeed open or not.

  8. #8
    Join Date
    Oct 2002
    Location
    New York's Capital District
    Posts
    2,198
    I just did a nmap from an external server and this is what I get:

    21/tcp open ftp
    80/tcp open http
    111/tcp open sunrpc
    139/tcp open netbios-ssn
    443/tcp open https
    445/tcp open microsoft-ds
    901/tcp open samba-swat
    32770/tcp open sometimes-rpc3
    Know It All Solutions Incorporated
    Web Design, Web Development and Web Hosting

  9. #9
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    9,072
    Originally posted by KIAHost
    I just did a nmap from an external server and this is what I get:

    21/tcp open ftp
    80/tcp open http
    111/tcp open sunrpc
    139/tcp open netbios-ssn
    443/tcp open https
    445/tcp open microsoft-ds
    901/tcp open samba-swat
    32770/tcp open sometimes-rpc3
    Do you have "hosts deny" anywhere in your smb.conf file?

    Also, if you have "smbclient" on your external machine you could try: smbclient -L SAMBAIP -U username and see if it connects and allows you to login with the password.

  10. #10
    Join Date
    Oct 2002
    Location
    New York's Capital District
    Posts
    2,198
    Pat H ... thanks for the insight.

    I didn't have any hosts deny ... but I did have hosts allowed ... and I added my IP and all is fine.

    Thanks.
    Know It All Solutions Incorporated
    Web Design, Web Development and Web Hosting

  11. #11
    Join Date
    Oct 2002
    Location
    New York's Capital District
    Posts
    2,198
    I have another related question ...

    Now I am trying to password protect my samba share. It works if I turn on "guest ok" but if I turn it off and try to access with the username and password that is associated with it it doesn't allow me to map the drive from a windows xp box. Is there a special way to format the username?

    Here is the share specific portion of my smb.conf file:

    [kiafiles]
    path = /home/kiafiles
    valid users = kiafiles
    admin users = kiafiles
    read only = No
    ADDITIONAL INFO: I AM CONFIGURING THIS USING SWAT.
    Last edited by KIA-Joe; 03-12-2004 at 04:49 PM.
    Know It All Solutions Incorporated
    Web Design, Web Development and Web Hosting

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •