LinuxQuestions.org
Help answer threads with 0 replies.
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 03-30-2007, 04:27 PM   #1
Leb_CRX
LQ Newbie
 
Registered: Feb 2004
Distribution: Mandrake 9.2
Posts: 14

Rep: Reputation: 0
linux NAT box is spacing out


k so I have a box running centOS *version below* that is acting as a http/ftp/samba/teamspeak/NAT server...it's usually fine until I expose it to bittorrents...even then it's fine for about a day or so then it spaces out, and stops forwarding network traffic, and sometimes as bad as not responding (have to manually reboot)

distro info:
Linux version 2.6.9-42.0.3.EL (buildsvn@build-i386) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)) #1 Fri Oct 6 05:59:54 CDT 2006

I've checked /var/log/ and I got some errors, here they are:
Mar 30 13:54:15 www kernel: ip_conntrack: table full, dropping packet.

so I searched, and found that I should change the # of max connections...based on my ram (386MB) I went ahead and changed it

echo "48000" > /proc/sys/net/ipv4/ip_conntrack_max

seemed to have made no real difference...still get that error mesage in log file, and I get this

cat: /proc/net/ip_conntrack: No space left on device
0

can anyone help? I'm close to switching distros, or pulling my hair out...I'm a newb and not sure what to do next

I can paste the iptables/firewall script I use if that may help
 
Old 03-31-2007, 09:12 PM   #2
auxsvr
Member
 
Registered: Dec 2006
Distribution: openSUSE 10.3
Posts: 260

Rep: Reputation: 30
Linux crashes because you are forcing it to use more memory than what is available. ip_conntrack_max should be set to 24576 for the amount of RAM you have (which is probably the default), which means 24576 simultaneous connections, which is an extremely large number, unless you run a big website. Most likely your problem is that you configured the bittorrent client to make an unlimited number of connections, which is just a waste of memory and network resources. In order to have a measure to compare with, my system running bittorrent, teamspeak, mldonkey, a web server, a ssh server and an smb server on a relatively slow connection (1Mbps/256kbps) rarely reaches 200 simultaneous connections and has never reached 1024, which is the maximum number that the DSL modem supports.
 
Old 04-04-2007, 10:22 AM   #3
Leb_CRX
LQ Newbie
 
Registered: Feb 2004
Distribution: Mandrake 9.2
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by auxsvr
Linux crashes because you are forcing it to use more memory than what is available. ip_conntrack_max should be set to 24576 for the amount of RAM you have (which is probably the default), which means 24576 simultaneous connections, which is an extremely large number, unless you run a big website. Most likely your problem is that you configured the bittorrent client to make an unlimited number of connections, which is just a waste of memory and network resources. In order to have a measure to compare with, my system running bittorrent, teamspeak, mldonkey, a web server, a ssh server and an smb server on a relatively slow connection (1Mbps/256kbps) rarely reaches 200 simultaneous connections and has never reached 1024, which is the maximum number that the DSL modem supports.
ok thanks for clearing that up

I've gone ahead and changed the # of simultaneous connections and it's seemed to have done the trick.

Thanks for your help
 
  


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
Problem with my NAT box aq_mishu Linux - Security 2 12-19-2005 05:24 PM
SSH to a box behind NAT mattp Linux - Networking 4 10-04-2005 02:33 AM
iptables rules for emule in nat box eantoranz Linux - Networking 3 08-08-2005 10:37 PM
Good Tiny NAT Box Distro? Kaashar Linux - Security 5 01-26-2004 08:41 PM
Mandrake 9.2 or RH 9? which is best for a proxy/cache/NAT box debloxie Linux - Distributions 1 01-16-2004 11:45 AM

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

All times are GMT -5. The time now is 12:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration