LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   linux NAT box is spacing out (https://www.linuxquestions.org/questions/linux-networking-3/linux-nat-box-is-spacing-out-541994/)

Leb_CRX 03-30-2007 03:27 PM

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

auxsvr 03-31-2007 08:12 PM

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.

Leb_CRX 04-04-2007 09:22 AM

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


All times are GMT -5. The time now is 03:11 AM.