Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] how to get ip_conntrack_count ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
tnt
Veteran
Veteran


Joined: 27 Feb 2004
Posts: 1227

PostPosted: Mon Jul 02, 2007 3:45 am    Post subject: [SOLVED] how to get ip_conntrack_count ? Reply with quote

I've used to read number of ip connections with:

Code:
sysctl -n net.ipv4.netfilter.ip_conntrack_count


but after switching from kernel 2.6.19 to 2.6.21 that is "unknown key"

Code:
sysctl -n net.ipv4.netfilter.ip_conntrack_count
error: "net.ipv4.netfilter.ip_conntrack_count" is an unknown key


is there any other way to count ip connections?
_________________
gentoo user


Last edited by tnt on Wed Jul 04, 2007 8:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Mon Jul 02, 2007 8:47 am    Post subject: Reply with quote

That's strange. I'm running 2.6.21-gentoo-r3, and the key exists here. Did an option in the netfilter config get accidentally disabled?
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
mimosinnet
l33t
l33t


Joined: 10 Aug 2006
Posts: 719
Location: Barcelona, Spain

PostPosted: Mon Jul 02, 2007 11:40 am    Post subject: Reply with quote

I have:

Code:
$ uname -a
Linux mimosinnet 2.6.20-gentoo-r8


Code:
# grep CONNTRACK /usr/src/linux/.config
CONFIG_NF_CONNTRACK_ENABLED=y
CONFIG_NF_CONNTRACK_SUPPORT=y
# CONFIG_IP_NF_CONNTRACK_SUPPORT is not set
CONFIG_NF_CONNTRACK=y
CONFIG_NF_CONNTRACK_MARK=y
CONFIG_NF_CONNTRACK_EVENTS=y
# CONFIG_NF_CONNTRACK_AMANDA is not set
# CONFIG_NF_CONNTRACK_FTP is not set
# CONFIG_NF_CONNTRACK_H323 is not set
# CONFIG_NF_CONNTRACK_IRC is not set
# CONFIG_NF_CONNTRACK_NETBIOS_NS is not set
# CONFIG_NF_CONNTRACK_PPTP is not set
# CONFIG_NF_CONNTRACK_SIP is not set
# CONFIG_NF_CONNTRACK_TFTP is not set
CONFIG_NETFILTER_XT_MATCH_CONNTRACK=y
CONFIG_NF_CONNTRACK_IPV4=y
CONFIG_NF_CONNTRACK_PROC_COMPAT=y


Code:
# sysctl -a | grep count
net.netfilter.nf_conntrack_count = 3
net.ipv4.netfilter.ip_conntrack_count = 3


Cheers!
Back to top
View user's profile Send private message
arndawg
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jun 2006
Posts: 97

PostPosted: Mon Jul 02, 2007 11:42 am    Post subject: Reply with quote

cat /proc/sys/net/ipv4/netfilter/ip_conntrack_count
Back to top
View user's profile Send private message
tnt
Veteran
Veteran


Joined: 27 Feb 2004
Posts: 1227

PostPosted: Mon Jul 02, 2007 12:29 pm    Post subject: Reply with quote

huh... I'll have to check my .config - guess it's about 'layer 3 independent connection tracking'...

Code:
cat /proc/sys/net/ipv4/netfilter/ip_conntrack_count
cat: /proc/sys/net/ipv4/netfilter/ip_conntrack_count: No such file or directory

_________________
gentoo user
Back to top
View user's profile Send private message
tnt
Veteran
Veteran


Joined: 27 Feb 2004
Posts: 1227

PostPosted: Wed Jul 04, 2007 8:28 pm    Post subject: Reply with quote

found this:

Code:
/proc/sys/net/netfilter/nf_conntrack_count


:wink:

thx everybody
_________________
gentoo user
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum