LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-16-2007, 09:51 AM   #1
joelkillspeople
LQ Newbie
 
Registered: Jul 2006
Posts: 7

Rep: Reputation: 0
Connecting to Samba from outside the LAN with Windows XP


Hey, guys. I have set up a Samba server using Debian 4.0 with linux kernel 2.6.

Inside the network, I am able to connect to it fine, and everything works great. I have created the users in smbpasswd and added the users to the various workgroups to make sure that everyone has proper permissions to view everything they need to.

This server has an external IP, and can be pinged from my home computer, as well as SSH'ed in to. Unfortunately, when trying to access the samba share from windows XP by just typing the IP in windows explorer (I.E. \\xxx.xxx.xxx.xxx), the process times out with an ok box:

"Windows cannot find '\\xxx.xxx.xxx.xxx'. Check the spelling and try again, or try searching for the irem by clicking the Start button and then clicking search."

How do I allow outside access to this server?

Here's my current smb.conf file:

Code:
[global]
        netbios name = [netbios name]
        server string = [server name]
        map to guest = Never
        log file = /var/log/samba/log.%m
        log level = 10
        max log size = 50
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        preferred master = Yes
        local master = Yes
        dns proxy = No

[Data]
        path = /[dir name]/
        valid users = [three seperate users go here]
        read only = No
        create mask = 0777
        directory mask = 0777
Thanks in advance for any help.
 
Old 02-16-2007, 11:55 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,900

Rep: Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746
At first glance it might be a firewall issue but you really do not want to allow smb traffic over the internet since it is not secure. If you want something more then ssh then some kind of VPN is in order. hamachi is a very easy vpn to setup in both windows and linux.
 
Old 02-16-2007, 12:13 PM   #3
joelkillspeople
LQ Newbie
 
Registered: Jul 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Ok, thanks. I had discussed this with someone else, and the same thing was said. Then I realised that using windows as the FTP client is just about the same as having samba access. I'll just switch to FTP for external access.

Thanks for the help!

Joel
 
Old 02-16-2007, 05:10 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,900

Rep: Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746
I also suggest using sftp since regular ftp is not secure either. I use winscp.

Last edited by michaelk; 02-16-2007 at 05:12 PM.
 
  


Reply

Tags
samba windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting Linux samba client and LAN Printer Bablu Bachar Linux - Networking 2 08-21-2006 02:02 PM
connecting to Samba with Windows XP Cheechi Linux - Networking 2 01-23-2006 01:38 PM
connecting to a windows lan redarroq Linux - Networking 3 01-08-2006 08:07 PM
Connecting to Windows NT machines on LAN rgarg Linux - Networking 2 07-06-2003 11:20 PM
connecting to windows workgroup using samba? linoob Linux - Newbie 7 10-23-2002 08:17 PM


All times are GMT -5. The time now is 05:50 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration