Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've a problem with a mini server (Via epia c3 1ghz): when there is too much LAN traffic (in particular Samba or NFS files moves) the server reboots and continue to reboot until I unplug the LAN cable or I block the client who is requesting the files.

I don't know why, so I'm guessing: Is there the possibility to limit the speed of Samba or NFS?

share|improve this question
7  
Slowing down the LAN surely isn't the way to fix this! You must find out why the server is rebooting. –  tomfanning Jan 31 '12 at 22:27
    
That's kind of like checking your tyres if the car refuses to start. –  John Gardeniers Jan 31 '12 at 23:17
    
How are you determining that its too much LAN traffic? –  Tom H Feb 1 '12 at 0:06
    
do you have any information on the crash? Maybe a trace, dump or similar? –  Niko S P Feb 1 '12 at 2:38

1 Answer 1

up vote 0 down vote accepted

Bandwidth limiting incoming traffic on a firewall is difficult because you either have to drop all the unwanted packets - resulting in a resend and more traffic, or have the firewall maintain a delivery queue much larger than its normal connection tracking.

However given that "protecting" the server is more important than traffic shaping you can look at the iptables limit module to limit the number of connections and packets per minute;

iptables -A INPUT -p TCP -m state -state NEW \
-m limit -limit 10/minute -limit-burst 2 -j ACCEPT 

Bear in mind that the upshot of all this is usually locking yourself out of the server, or annoying the shit out of everyone.

You might be better off opening another question to trouble shoot the problem causing the crash rather than spending time working out traffic shaping...

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.