* Connection ID in conntrack and libctnetlink / Max connections showed by conntrack
@ 2005-05-01 11:08 Roman Ammann
2005-05-03 0:01 ` Pablo Neira
0 siblings, 1 reply; 2+ messages in thread
From: Roman Ammann @ 2005-05-01 11:08 UTC (permalink / raw)
To: netfilter-devel
Hello
Background:
(short version) I tried to use conntrack to delete connections in the
conntrack table.
(long version) I'm using iptables to give some customers access for some
time (1 or 2h). I allow established connections to pass and also the
customer's source IP. The problem is if I drop the rule which allows the
customer's IP address to pass, it doesn't drops his connections, because
they are handled in the state full part of iptables. So if he's using
VPN for example the connection is never dropped :-(. I need to use
state-full inspections because I have to NAT.
What I've done until now:
I've used patch-o-magic to patch my kernel with the nfnetlink, the
conntrack-event-api and the ctnetlink patch. I also compiled and
installed libnfnetlink, libctnetlink and conntrack (newest
SVN-Versions). Everthing seems to work.
Problems:
a) I can't drop a connections because I have to pass the connections ID
to the programm conntrack (conntrack -D conntrack -i <id>) and conntrack
doesn't listen dem (conntrack -L conntrack).
So i checked the source code and I found in the file
conntrack/src/libct.c (line 194) and also in dhe Kernel-Sources
(include/linux/netfilter_ipv4/ip_conntrack_netlink.h) that the ID part
is commented out.
Why? Is there a problem with the ID? I removed the comments and
recompile it. Afterwards the ID was showed but some connections had the
same ID. Is that correct?
b) I used conntrack (conntrack -L conntrack) to list my current
connections. But conntrack list just 16 connections. But if I
use /proc/net/ip_conntrack is see 31 connections.
Is there a problem to get all connections over netlink? Is there a
difference between fetch the connections with netlink or
via /proc/net/ip_conntrack?
Thanks for any input
Roman
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Connection ID in conntrack and libctnetlink / Max connections showed by conntrack
2005-05-01 11:08 Connection ID in conntrack and libctnetlink / Max connections showed by conntrack Roman Ammann
@ 2005-05-03 0:01 ` Pablo Neira
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira @ 2005-05-03 0:01 UTC (permalink / raw)
To: Roman Ammann; +Cc: netfilter-devel
Hi,
Roman Ammann wrote:
> Problems:
>
> a) I can't drop a connections because I have to pass the connections ID
> to the programm conntrack (conntrack -D conntrack -i <id>) and conntrack
> doesn't listen dem (conntrack -L conntrack).
>
> b) I used conntrack (conntrack -L conntrack) to list my current
> connections. But conntrack list just 16 connections. But if I
> use /proc/net/ip_conntrack is see 31 connections.
The problems that you've reported are fixed in SVN. Please upgrade.
--
Pablo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-05-03 0:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-01 11:08 Connection ID in conntrack and libctnetlink / Max connections showed by conntrack Roman Ammann
2005-05-03 0:01 ` Pablo Neira
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.