New libnetfilter_conntrack API: why two values of layer 3/4?
Hi,
In new libnetfilter_conntrack API, I see:
ATTR_ORIG_L3PROTO = 15ATTR_REPL_L3PROTO = 16ATTR_ORIG_L4PROTO = 17ATTR_REPL_L4PROTO = 18
Is it possible to change layer 3 protocol with NAT? or layer4? If not, one constant will be enough ;-)
And for counters, are they 32 or 64 bits?
ATTR_ORIG_COUNTER_PACKETS = 26ATTR_REPL_COUNTER_PACKETS = 27ATTR_ORIG_COUNTER_BYTES = 28ATTR_REPL_COUNTER_BYTES = 29
32 bits (2 GB) sounds small with a gigabyte interface or long uptime (old connection).
Haypo
Pablo Neira Ayuso
maintainerQuoted 9 lines · Victor Stinner
In new
libnetfilter_conntrackAPI, I see:
ATTR_ORIG_L3PROTO= 15ATTR_REPL_L3PROTO= 16ATTR_ORIG_L4PROTO= 17ATTR_REPL_L4PROTO= 18Is it possible to change layer 3 protocol with NAT? or layer4? If not, one constant will be enough ;-)
Indeed, there is no real usefulness currently, but if the connection tracking ever supports tunneling ipv4-to-ipv6, I'll have to take them back, so I prefer leaving this issue open.
Quoted 9 lines
And for counters, are they 32 or 64 bits?
ATTR_ORIG_COUNTER_PACKETS= 26ATTR_REPL_COUNTER_PACKETS= 27ATTR_ORIG_COUNTER_BYTES= 28ATTR_REPL_COUNTER_BYTES= 2932 bits (2 GB) sounds small with a gigabyte interface or long uptime (old connection).
We've been discussing about this issue lately and there is a patch on the table for the connection tracking to go back 64 bits counters. In any case, the library will be able to support both counter sizes.
Signature · 2 lines
The dawn of the fourth age of Linux firewalling is coming; a time of great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris