LinuxQuestions.org
Review your favorite Linux distribution.
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 07-23-2008, 09:03 AM   #1
newuser77
LQ Newbie
 
Registered: Jun 2008
Posts: 4

Rep: Reputation: 0
mount windows share export to samba share -> improve network performance tuning


Windows 2003 -------- Linux (RHEL4U6) --------- XP Client (access samba)
(winshare) <---30s---> (smbwinshare) <---30s----> file (200MB)


Hi,
I have recently setup a samba share in my data center.Here are the configuration. I have setup windows 2003 sp2 to host a share folder name "winshare". I have setup another linux system to mount the windows share and export it as samba share name "smbwinshare". In order for all client to access the windows share "winshare", they need to access through the samba share folder "smbwinshare" (Note: samba give me great control to allow certain host to access the folder only).
Here are the test I did :

1. Mount windows share folder and export as samba share name "smbwinshare"
Copy 200MB file from XP client to "smbwinshare" , it take 1 mins to complete

2. share folder directly from linux system ,share folder name "sambasystemlocaldisk"
Copy 200MB file from XP client to "smbwinshare" , it take 30s to complete

Can I know how to improve the network/samba performance so I will get 30s to complete copy 200MB file whenever copy file from XP client to "smbwinshare"?

By the way, if I want to setup a firewall to allow only windows client to access samba share from linux, what should I type in iptables.Hope some one can assists, I am really new to linux stuff.

Thanks.
 
Old 07-23-2008, 11:28 AM   #2
eliufoo
Member
 
Registered: Oct 2007
Posts: 71

Rep: Reputation: 15
Quote:
By the way, if I want to setup a firewall to allow only windows client to access samba share from linux, what should I type in iptables.Hope some one can assists, I am really new to linux stuff.
Windows uses netbisos session service on port 139 to access shared files on a network. You can start my only permitting port 139 to be used by your Samba.
Add the following line on /etc/samba/smb.conf
Quote:
smb ports = 139
Then open this port on your iptables.

p.s: this is not the sufficient way of only permitting windows machine to a samba share.
 
  


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
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 01:35 AM
samba mount windows xp share eyt Linux - Software 2 10-26-2007 09:35 AM
show the samba share but can't mount the share badall Linux - Server 3 05-30-2007 04:24 AM
Cannot mount samba share from windows XP Astro Linux - Software 2 12-18-2004 11:26 AM
Can't mount Samba share dir in Windows XP wycolorado Linux - Software 22 10-22-2004 06:35 AM

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

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