LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-25-2014, 04:24 PM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Rep: Reputation: 46
What ports really need to be opened for Samba so Windows clients can connect


I'm setting up a samba server, but I can only connect to it when iptables is off. It looks like i can connect if I add a rule in for port 139, but doing some reading online some people open up other 13# ports, as well as 445. But I'm not understanding how you know which you need, or if one(s) is better than the other in any way, particularly for Windows 7 machines connecting to it. any thoughts?
 
Old 08-25-2014, 07:22 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,346
Blog Entries: 12

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
TCP and UDP ports 135-139, maybe port 445.

These links will tell you more:
http://www.chicagotech.net/netforums...pic.php?t=5067
http://www.tomshardware.com/forum/34...king-port-only
 
1 members found this post helpful.
Old 08-25-2014, 08:02 PM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
So after reading those, it almost makes it sound like I could use just 445 if they connect by server name. but my users connect by IP. Also, i'm still not sure why it worked when I only opened 139, but i'll try to reread them, maybe I missed that.

Thanks Frank!
 
Old 08-26-2014, 08:22 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,346
Blog Entries: 12

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
You might want to take a look at this article from Microsoft. It summarizes what ports Windows uses for all types of networking services.

In particular, look at these sections:
  • Offline Files, User Profile Service, Folder Redirection, and Primary Computer
  • Remote Storage
  • Server
 
1 members found this post helpful.
Old 09-02-2014, 09:40 AM   #5
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
So reading the server section, it almost does make it sound like that at least for Windows clients greater than 2000 only need 445. I have a mix of Windows 7 and OSX machines.

I mean I don't mind opening 135-138 and 445, to go along with the already opened 139, but I'm still fuzzy on if/why I need to (especially since it appears to work now), or if there are advantages to having then open (or disadvantages even though it works) that I'm obviously missing :-)
 
  


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
Find opened ports and forwarding ports maxH22 Linux - Newbie 7 05-14-2014 07:26 AM
samba clients connect using user 'nobody' only to the server. shobhit Linux - Server 10 09-09-2008 09:59 AM
XP clients can't connect to Samba domain but Vista could homecsiga Linux - Server 3 09-10-2007 05:07 PM
How to Connect of Linux clients to Samba PDC lakshan Linux - Software 1 07-06-2006 07:49 PM
voice and video ports for yahoo and msn for my windows clients... shahg_shahg Linux - Security 0 05-20-2006 05:32 AM


All times are GMT -5. The time now is 12:34 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