View previous topic :: View next topic |
Author |
Message |
tnt Veteran


Joined: 27 Feb 2004 Posts: 1227
|
Posted: Mon Jul 02, 2007 3:45 am Post subject: [SOLVED] how to get ip_conntrack_count ? |
|
|
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 |
|
 |
didymos Advocate


Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Mon Jul 02, 2007 8:47 am Post subject: |
|
|
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 |
|
 |
mimosinnet l33t


Joined: 10 Aug 2006 Posts: 719 Location: Barcelona, Spain
|
Posted: Mon Jul 02, 2007 11:40 am Post subject: |
|
|
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 |
|
 |
arndawg Tux's lil' helper

Joined: 02 Jun 2006 Posts: 97
|
Posted: Mon Jul 02, 2007 11:42 am Post subject: |
|
|
cat /proc/sys/net/ipv4/netfilter/ip_conntrack_count |
|
Back to top |
|
 |
tnt Veteran


Joined: 27 Feb 2004 Posts: 1227
|
Posted: Mon Jul 02, 2007 12:29 pm Post subject: |
|
|
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 |
|
 |
tnt Veteran


Joined: 27 Feb 2004 Posts: 1227
|
Posted: Wed Jul 04, 2007 8:28 pm Post subject: |
|
|
found this:
Code: | /proc/sys/net/netfilter/nf_conntrack_count |
thx everybody _________________ gentoo user |
|
Back to top |
|
 |
|