LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-21-2003, 11:20 AM   #1
vcheah
Member
 
Registered: Nov 2001
Distribution: redhat 8.0
Posts: 110

Rep: Reputation: 15
Accessing Samba Remotely


Scenario
Linux server behind DI-701 Firewall. No Port assign to SAMBA open only 80, 22.


I want to access //domain.nam/folder from out side of the lan. What should i do?
 
Old 02-21-2003, 11:26 AM   #2
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Rep: Reputation: 32
Install SSH.
Log into Linux box via SSH (port 22).
Administer Samba.
That's how I do it.
 
Old 02-21-2003, 11:35 AM   #3
vcheah
Member
 
Registered: Nov 2001
Distribution: redhat 8.0
Posts: 110

Original Poster
Rep: Reputation: 15
well that 1 can access it with a putty or whatever..
but i want to connect it from win xp to the linux box..
 
Old 02-21-2003, 12:04 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,153

Rep: Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980
Samba is on ports 137,138,139 I do believe. Of course this might open up your entire internal network to potential viruses.
 
Old 02-21-2003, 01:14 PM   #5
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Rep: Reputation: 32
Are trying to map a network drive via the net?
 
Old 02-21-2003, 06:01 PM   #6
vcheah
Member
 
Registered: Nov 2001
Distribution: redhat 8.0
Posts: 110

Original Poster
Rep: Reputation: 15
Yupe I am trying to access the network drive via the net.


more chance for viruses? but with out the right password.. is impossible to be accessed isn't?
 
Old 02-21-2003, 10:10 PM   #7
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Rep: Reputation: 32
Interesting.
Sounds risky from a security perspective.

i'd be interested to know if you make this work.
 
Old 02-21-2003, 10:32 PM   #8
vcheah
Member
 
Registered: Nov 2001
Distribution: redhat 8.0
Posts: 110

Original Poster
Rep: Reputation: 15
I use to have this configuration for redhat 7.3 however when i was upgrade to 8.0 i forgot to copy the conf and other configuration. There is a way but can't remember.. someone out there must know.. I will try with the firewall sometime
 
Old 02-22-2003, 03:50 PM   #9
TexasDex
Member
 
Registered: Feb 2003
Location: The Attic. Nowhere near Texas.
Distribution: Gentoo, Kubuntu, formerly LFS, SuSE, and RedHat
Posts: 133

Rep: Reputation: 15
There is a very simple way to do this: Set your router up to allow a VPN. WHen you are away from home, "dial" into the VPN and then access the samba server from there.
 
Old 02-22-2003, 05:20 PM   #10
vcheah
Member
 
Registered: Nov 2001
Distribution: redhat 8.0
Posts: 110

Original Poster
Rep: Reputation: 15
vpn? erm i dont think my router support that
 
Old 02-24-2003, 07:18 PM   #11
TexasDex
Member
 
Registered: Feb 2003
Location: The Attic. Nowhere near Texas.
Distribution: Gentoo, Kubuntu, formerly LFS, SuSE, and RedHat
Posts: 133

Rep: Reputation: 15
That's the best way to do it, if you are able to set up a VPN. If you can't do that, you will need to set the router to forward the port 137 and 139 requests to the SMB server. (I think those are the right ports)
 
Old 02-24-2003, 07:41 PM   #12
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
I wanted to do the same thing and I looked around on the internet. I found a solution to this very problem without using VPN. What you can do is tunnel SMB through SSH. This way you don't have to open any other ports. You won't take any security hit. Here is a link to some information on this:

http://hr.uoregon.edu/davidrl/samba/...urity.html#ssh

There is, according to this page, one limitation to this -- You cannot do this with a 16-bit Windows OS. You have to be using NT, 2k, or XP, I believe. I wouldn't know because I wanted to access my server from work. This didn't help me because the piece of junk computer at work is Win98.
 
Old 02-24-2003, 08:31 PM   #13
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Rep: Reputation: 32
gauge73,
Can you check that link. Iam very interested in checking it out.
I received a connot find server error.
 
Old 02-26-2003, 02:59 PM   #14
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Rep: Reputation: 32
Has anyone made any progress on making this work?
gauge73, I was finally able to follow that link. I followed the instructions to the 'T' and got nowhere.
I am using 'SSH Secure Shell Client' from the windows side.
I think I set the tunneling up correct.

Anyone know of any more detailed instructions?
 
Old 05-17-2003, 03:11 PM   #15
KennyK
Member
 
Registered: Apr 2003
Location: California, USA
Distribution: Redhat 8.0, 9.0 Suse 9.0 Pro
Posts: 129

Rep: Reputation: 15
Bumb.

I have been searching this forum and the internet for this solution. Has this been done? Also I want to be able to set this up for a friend that works from home quite a bit and he uses Win98
 
  


Reply


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
Accessing server remotely through internet? redrobin77 Fedora 5 11-19-2005 08:03 PM
accessing my computer remotely paul44 Linux - Newbie 3 05-06-2004 09:17 AM
Accessing MySQL remotely: good programs? seppuku Red Hat 1 11-11-2003 09:34 AM
newbie help on accessing my new linux remotely please natbrazil Linux - Software 3 08-28-2003 05:26 PM
Accessing server remotely keymoo Linux - General 2 01-25-2002 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:54 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration