LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-15-2003, 03:37 PM   #1
prophet621
Member
 
Registered: Feb 2003
Posts: 130

Rep: Reputation: 15
firewall issue? and samba is slow


I set samba up over the weekend (with lots of help from some of the people here...thank you) to act as the server for 2 Windows xp computers (one dual boots). I was able to get to the internet through the server fine from both computers but could not access the server or any of the files I have on seperate partitions. I would receive an error message if I tried to ping the server by name or \\zeus. Message would say it doesn't exist or I don't have access, if I ping by IP address it would say unreachable.
So on some advise I tried to configure the firewall, not many options in the gui. (Mandrake 9.1) So I tried to completely disable it. With it disabled I can access the shared partitions (anything I stick in the home directory at least) but I can no longer get to the net. What would I need to change to allow me to get to the net through the server acting as a gateway and allow me to access the files on the server. I really don't want to keep disabling and restarting the firewall depending on what I need to do. Are there any spacific ports I should tell it to open?

Also, I realize how generalized this question will be and I'm sure there are dozens of setting that can affect it. But Samba is slow.. much slower than windows. Everything from file transfers, internet speed, and even looking at the contents of the partitions. Is there anything I may look for that could be slowing it down so much. Everything about it is just slow. I know of one thing that may help which I'll address in a minute.

I know those Windows partitions are fragmented, is there software available for Linux that can defrag Windows partitions? (NTFS and fat32)
 
Old 04-15-2003, 04:17 PM   #2
osfestus
Member
 
Registered: Feb 2003
Posts: 92

Rep: Reputation: 15
I am pretty sure that what is going on is that the firewall does not allow ports 137-139 but contains lines for nat and forwarding to take place, hence your internet access. When you disable the firewall (iptables on Mandrake??) the ports necessary for SMB networking suddenly become available, but the rules that allow for the internet connection are also gone. Configure your firewall to accept 137-139 and turn it back on. You should be good to go.
 
Old 04-15-2003, 04:38 PM   #3
osfestus
Member
 
Registered: Feb 2003
Posts: 92

Rep: Reputation: 15
not to pontificate, but this is exactly the reason I quit using GUI's for anything other than basic monitoring. They don't give you the whole picture or provide any real granular control over your services. Find out what that firewall GUI is acting as a front-end for and learn how to configure it with a text editor. Then whenever you want to do something you can just go do it and restart the service!
 
Old 04-16-2003, 10:36 AM   #4
prophet621
Member
 
Registered: Feb 2003
Posts: 130

Original Poster
Rep: Reputation: 15
Thank for the help. I opened the ports and now everything works. I can access my home folder on my Linux server from Windows now and I can still get to the internet.

Now if I can figure out why it's so damn slow.
 
Old 04-16-2003, 12:53 PM   #5
osfestus
Member
 
Registered: Feb 2003
Posts: 92

Rep: Reputation: 15
Great! I am glad you got that resolved. As far as the slowness, Samba is very fast, faster in fact than my native win2k file servers perform with their own damn protocol! I would suggest that you look at hardware or possible network problems (i.e. excessive broadcasting/storms or other apps using the bandwidth).
 
Old 07-14-2003, 06:12 PM   #6
mickey_kamer
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Rep: Reputation: 0
FTP and Samba

I have this problem on two linux machines. Both have identical hardware configuations but transfers with samba or ftp, and even scp are so slow I can not stand it. I have turned off everything but the transfer itself and still the files take for ever.

I started transferring via Gigabit ethernet cards at 12:00 Noon and the ransfer has only 200 or so MB done as of 6:00 PM. Everything else on the systems seem fine, but file transfer is terrible.

Even trying to scp a 2.2 gig file I get an I/O error on the machine getting the file. I have looked and researched everywhere. This list is my last hope.

Also, using usb 2.0 and an external Sony 500 UL DVD RW Linux sees the file on the dvd as an 8 mb file, while it is 2.3 gig. I haven't looked into this problem enough, but I need to transfer large files fasterso I am looking into the DVD as a solution.

Mickey

Last edited by mickey_kamer; 07-14-2003 at 06:13 PM.
 
Old 07-14-2003, 06:22 PM   #7
hakcenter
Member
 
Registered: Apr 2003
Location: Not to far from the computer screen
Distribution: RedHat 9.0
Posts: 324

Rep: Reputation: 30
thats insane... check the cables and the hub

and make sure the eth devices are using good drivers..

i did a 1.2gig file to my samba server, 55seconds
did it to my identical windows machine, 45seconds.


somethigns terribly wrong there bro
 
Old 07-15-2003, 07:27 AM   #8
mickey_kamer
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Rep: Reputation: 0
I will look but transfers from websites via http or outside ftp's using either machine are fast! 450+ mbps or better. I tried turning off IPTABLES and using no firewall configuration at all still between the two machines is slow as peat! (Yes peat not pete.)

Also has anyone experienced anything on the DVD Burning or the issue of the DVD file showing up as an 8 mb file when it really is a 2.3 gig file?
 
  


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
Firewall issue with samba, receiving packages with SPT=137 yapp Linux - Networking 1 08-09-2005 03:12 PM
Another slow machine issue... Twisted385 Linux - Newbie 18 02-17-2005 09:24 PM
Firewall issue myself_rajat Linux - Networking 3 12-21-2004 12:06 AM
Firewall Issue benhalliday Linux - Software 1 08-06-2004 07:52 AM
firewall issue linuxnube Linux - Networking 1 11-04-2003 12:46 PM

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

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