LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 04-06-2020, 02:39 PM   #1
r.khan
LQ Newbie
 
Registered: Aug 2013
Posts: 1

Rep: Reputation: Disabled
Winbind connecting to AD DC on port 139


I am unning my CentOS 7.3 machine as a Samba server, it is integrated with Windows AD for user authentication. Everything is working fine, but we see a lot of Firewall denies on port 139. Upon investigation, I found that Winbindd is trying to connect to AD DC on port 139.

I ran

winbindd -i -d 3

and noticed that it connects to the DC on port 445 and it tries connecting to the same DC on port 139 also. We do not have any issues and everything is working fine. However, we just want to prevent Winbindd from making requests on port 139.

I have used `disable netbios = Yes` in smb.conf but it did not help.

Any suggestions will really help.
 
Old 04-07-2020, 12:07 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,813

Rep: Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143
Try adding the 'smb ports = ' directive as well.
Code:
disable netbios = yes
smb ports = 445
This will give you a better idea about which ports your samba server is using...
Code:
sudo ss -tulpn | egrep "smbd|nmbd|winbind"

Last edited by ferrari; 04-07-2020 at 12:14 AM. Reason: Typo
 
Old 04-07-2020, 12:14 AM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,813

Rep: Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143
From 'man smb.conf'....
Quote:
smb ports (G)

Specifies which ports the server should listen on for SMB traffic.

Default: smb ports = 445 139
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
winbind --with-winbind-auth-challenge paul_mat Linux - Networking 0 09-27-2005 01:19 AM
error connecting to 127.0.0.1:139 Adibe_Hamm Linux - Software 3 10-01-2003 01:23 AM
Erro Connecting to 127.0.0.1:139 Adibe_Hamm Linux - Newbie 3 09-30-2003 10:57 AM
cannot connect to samba server when its running on port 139 badshaaa Linux - Networking 21 02-07-2002 04:50 AM
how to access tcp/139 port cmardhekar Linux - General 1 08-20-2001 06:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 05:28 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
Open Source Consulting | Domain Registration