LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-25-2002, 07:34 PM   #1
johnm1957
LQ Newbie
 
Registered: Sep 2001
Location: USA, West Los Angeles
Distribution: SuSE 8.2 Pro, WindowsXP Home
Posts: 8

Rep: Reputation: 0
Samba Security


Would someone please let me know how to set-up Samba, so I can share files with WinXP clients, but not to allow the network shares to be seen on the internet. What I mean is that when I go to grc.com, and let it run scans on my computer, Samba is letting grc.com see my WORKGROUP NAME, COMPUTER NAME, and USER NAME. This could also be my fault as I did try some tinkering around with the SuSE firewall 2 settings.I am a newbie so anything someone could suggest I will certainly try.
I am running SuSE 8.0 Pro as a gateway to share the PPP
connection I have. And yes I will read all the documentaion that came with Samba, it's just a lot to read, and I have not yet completed all of it.
Thanks,
 
Old 09-26-2002, 04:44 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
You need to block Samba ports using your firewall. Could you send your current settings? You need to clock ports 137-139 )or maybe more, I don' remember correctly, can anyone correct me if I'm wrong?)

Last edited by Mara; 09-26-2002 at 04:46 PM.
 
Old 09-26-2002, 05:27 PM   #3
JimKyle
Member
 
Registered: Dec 2001
Location: Oklahoma City, OK, USA
Distribution: Xubuntu 16.04 LTS
Posts: 214
Blog Entries: 1

Rep: Reputation: 39
The ports to block are as you said 137 thru 139, and they need to be blocked for both TCP and IP access.

An additional point is that you should NOT enable guest access in smb.conf. I misread the documentation, enabled that option, and in less than an hour one of my Windows boxes had fallen victim to a script kiddie's attack and in addition was infected by the Chernobyl virus, one of the worst in existence since it can destroy flash BIOS chips rendering the motherboard useless.

Fortunately I was running Tiny Personal Firewall on all the Windows boxes, configured for maximum security. That didn't stop the invader from coming in via Samba since I had enabled Samba's access on the firewall rules -- but it did trip the alarm when the zombie program he had planted attempted to call home. This let me isolate the affected machine, save the undamaged data from it, and stop the infection short. It also taught me the danger of allowing guest access other than to extremely limited areas of a network!

If you don't want outsiders being able to prowl your systems via Samba, use the "allowable IP addresses" access options in the global area of smb.conf to specify that only 127.0.0.1 and your LAN IP addresses (mine are 192.168.0/24) are allowed access.
 
Old 10-02-2002, 04:55 PM   #4
johnm1957
LQ Newbie
 
Registered: Sep 2001
Location: USA, West Los Angeles
Distribution: SuSE 8.2 Pro, WindowsXP Home
Posts: 8

Original Poster
Rep: Reputation: 0
Samba Security :)

Thanks Mara, and JimKyle
Sorry I did not write sooner, but I reinstalled SuSE, and I did find the solution to the problem. The SuSE Firewall2 init scrip had some lines of code for Samba support i.e. for Samba to connect to remote networks, and also for remote admin of Samba. Since I didn't need this feature, I just (#) commented out the lines of code that call this feature up, and YEAH! no more netbios stuff being seen by scans at GRC.
Thanks John McKenna
p.s. the firewall init script is found in /sbin, and the auther of the firewall makes a funny comment about these rules, "baah these rules look evil".
 
  


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
Samba security, How do I ... fclifton Linux - Networking 2 11-01-2003 02:34 PM
Samba security ? phoeniXflame Linux - Security 1 07-02-2003 01:03 PM
security on samba 2.2.5 ancutza67 Linux - General 1 02-11-2003 07:23 AM
Samba security Sathe Linux - Security 1 06-29-2002 03:53 AM
Samba security. Passive Linux - Networking 1 03-11-2002 12:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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