LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-29-2008, 12:26 PM   #1
RaheimSG
Member
 
Registered: Sep 2002
Distribution: openSUSE 11.0
Posts: 62

Rep: Reputation: 15
External Access of Samba Shares


I have a Linux server... and a Windows client. I am running samba on my Linux server, with a standard share I can access this share within my own network. I want to be able to access this share *anywhere* via map network drive (without tunneling) on a windows machine. Whenever I attempt to do this \\My IP Address\My share even on the same computer that I can access it within its own network, I get a login box... I type in my username, and password the same one on my machine, and I get denied, for wrong username and password...

First Question:

Does anybody know which ports to map, as I have it on DMZ as of right now.

Second Question:

Why am I getting this login error?
 
Old 11-29-2008, 12:39 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You will need to use tunneling for two reasons. First what you want to do isn't secure. For this reason, many ISPs even block ports 137-139 & 445. Secondly, you have more than one port using tcp and udp, so you can't simply use an ssh tunnel.

Last edited by jschiwal; 11-29-2008 at 12:40 PM.
 
Old 11-29-2008, 12:44 PM   #3
RaheimSG
Member
 
Registered: Sep 2002
Distribution: openSUSE 11.0
Posts: 62

Original Poster
Rep: Reputation: 15
If I could clarify...

I would *not like to Tunnel, I can get this working perfectly with a putty tunnel. My objective is to be able to access this share WITHOUT having to install software on the client computer...

It worked once or twice very ambiguously a few months a go, I do not know how, or why...I am attempting to figure out the solution to this.
 
Old 11-30-2008, 07:08 PM   #4
RaheimSG
Member
 
Registered: Sep 2002
Distribution: openSUSE 11.0
Posts: 62

Original Poster
Rep: Reputation: 15
Any thoughts anybody?
 
Old 12-02-2008, 05:19 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Sharing windows shares over the internet without a tunnel is dangerous and probably won't work for various reasons. With different network addresses, you would have a lot of work getting browsing to work. Most ISPs block the ports that windows networking uses, so what you want to do may even be impossible or more difficult than using a tunnel such as VPN, TightVNC, openswan, etc.

Your question sounds equivalent to, how can I soak myself with gasoline, and play with matches without getting burned.
 
Old 12-03-2008, 09:34 AM   #6
RaheimSG
Member
 
Registered: Sep 2002
Distribution: openSUSE 11.0
Posts: 62

Original Poster
Rep: Reputation: 15
Haha, Yea I know I had it working for *One Day* Randomly, I can check if my ISP blocks this port, but I don't know... I can log into my server, its just the credentials I use for internal connecting do not work...

I have SSH Tunneling totally functioning, I just want to be able to access my shares from anywhere including machines which do not allow me to install softare like PUTTY.
 
Old 12-04-2008, 12:20 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Machines that don't allow you to install putty won't allow you to to access your shares via the internet. Also, the firewall is certain to block ports 137-139 & 445. Using ssh, you would need to use a single port. The samba documentation (samba-doc package) may have information on how to configure the server for that. But then you would probably need to modify all of the clients on the LAN with the samba server and the client you are using. You may also need to have a wins server running on both ends. That is a lot of work and will probably cause problems with your other clients.

Plus, if you can't install putty, you won't be able to install hamachi or use a commercial client (citrix, etc.).

If you need to retrieve or save files, the obvious answer (to me) is to run an ftp server. That's what they are for. There are also ftp like web server apps that you could set up and reach using https. This would allow downloading & uploading files.

Last edited by jschiwal; 12-04-2008 at 12:22 PM.
 
Old 12-04-2008, 08:56 PM   #8
RaheimSG
Member
 
Registered: Sep 2002
Distribution: openSUSE 11.0
Posts: 62

Original Poster
Rep: Reputation: 15
Hey thanks... I just want to try and get this to work sort of as an experiment, but thanks for the advice.

My goal is to make it as easy as possible to connect to this share and use it in Windows. Such as saving a word document, all you would have to do is click drive x:

Thankyou for reaffirming the port I have 139 only routed right now, I wasn't sure if the other two were a requirement.

If anybody else has any ideas, I'm more than open.
 
Old 12-10-2008, 10:46 AM   #9
RaheimSG
Member
 
Registered: Sep 2002
Distribution: openSUSE 11.0
Posts: 62

Original Poster
Rep: Reputation: 15
No ideas?
 
  


Reply



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
Samba: I can see the shares but not access them !? Thoddy Linux - Software 6 04-02-2006 05:24 AM
can't access samba shares [goldy] Linux - Software 14 08-21-2004 08:42 PM
Samba and MS Access Shares oneiltj Linux - Software 13 08-08-2004 08:11 PM
can't access samba shares from xp hemp4fuel Slackware 20 07-09-2003 01:28 AM
Samba and MS Access Shares oneiltj Linux - Software 3 03-18-2003 11:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:25 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration