LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-27-2011, 07:24 AM   #1
dashang.trivedi
Member
 
Registered: Feb 2011
Posts: 56

Rep: Reputation: 0
how to change nf_conntrack_max value.....


i want to change nf_conntrack_max value....

i have search in google. i find out that to change the value of nf_conntrack_max ...

/sbin/sysctl -w net.netfilter.nf_conntrack_max = 196608

but its give me error...

Code:
[root@manage /root]# /sbin/sysctl -w net.netfilter.nf_conntrack_max = 196608
error: "net.netfilter.nf_conntrack_max" must be of the form name=value
error: Malformed setting "="
error: "196608" must be of the form name=value

please tell me how to change value of max conntrack ....
 
Old 08-27-2011, 09:44 AM   #2
Karl Godt
Member
 
Registered: Mar 2010
Location: Kiel , Germany
Distribution: once:SuSE6.2,Debian3.1, aurox9.2+3,Mandrake?,DSL? then:W7st,WVHB, #!8.10.02,PUPPY4.3.1 now:Macpup
Posts: 314

Rep: Reputation: 45
The kernel 2.6.30.x gave me some deprecated warnings about nf_conntrack which showed up via the dmesg command .
The suggested kernel parameters seemed not to work for me so I left it as it had been .

About the syntax for the sysctl command I would suggest something like
Code:
/sbin/sysctl -w net.netfilter.nf_conntrack_max=196608
bash mostly does not like ' = ' spaces before and after the equal sign , with an exception for example for the builtin test/[ ] ; unlike C .

example : if [ "$TheVar" = "" ] ; then echo 'The variable $TheVar is empty , even without spaces or tabs !' ; fi

Last edited by Karl Godt; 08-27-2011 at 10:00 AM. Reason: should be [ "$TheVar" = "" ] , not [ $TheVar = "" ]
 
Old 08-29-2011, 12:39 AM   #3
dashang.trivedi
Member
 
Registered: Feb 2011
Posts: 56

Original Poster
Rep: Reputation: 0
thanxx sir its work.........
 
Old 08-29-2011, 02:06 AM   #4
dashang.trivedi
Member
 
Registered: Feb 2011
Posts: 56

Original Poster
Rep: Reputation: 0
hi sir...
one more problem is there...i got error when i set buckets..
Code:
[root@manage /root]# /sbin/sysctl -w net.netfilter.nf_conntrack_buckets=196608
error: permission denied on key 'net.netfilter.nf_conntrack_buckets'

my question is nf_conntrack_buckets and nf_conntrack_max ....can be equal?????
or its depends on ram size....

its create confusion to understanding nf_conntrack_max and nf_conntrack_buckets....

i want to improve my server performance because some times its give conntrack is full...server have 4gb ram

Last edited by dashang.trivedi; 08-29-2011 at 02:15 AM.
 
  


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
[SOLVED] How can I change file permissions in windows ntfs partition.Even root can't change it e3399 Linux - Newbie 3 03-02-2011 10:54 PM
WEP Encryption Key:26chars_what choices must change in ubuntu 9.10 for the new change lse123 Linux - Newbie 1 03-02-2010 02:38 AM
is there a linux 'change' prog (like old dos 1) for quick change of text in files? johnemac General 2 06-15-2009 11:22 AM
Cannot Change GNOME Menu Items to add/change Item for Mozilla 1.2 After Upgrade metoome General 0 03-27-2004 12:19 AM
Cannot Change GNOME Menu Items to add/change Item for Mozilla 1.3 After Upgrade SForsgren Linux - General 4 03-26-2004 11:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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