* Re: nftables
[not found] ` <49C09610.1010106@linux.vnet.ibm.com>
@ 2009-03-18 7:47 ` Patrick McHardy
0 siblings, 0 replies; 7+ messages in thread
From: Patrick McHardy @ 2009-03-18 7:47 UTC (permalink / raw)
To: Varun Chandramohan; +Cc: Netfilter Developer Mailing List, Linux Netdev List
Varun Chandramohan wrote:
> Iam interested in hooking nftables to TC. Could you elaborate on this
> a little bit?
> And when you talk about in-kernel mangle table i suppose you mean the
> mangle table of iptables?
OK first about mangle - usually tables with nftables should be created
by userspace. The mangle table contains special functionality that needs
to be implemented in the kernel (rerouting), so nftables (just as iptables)
includes some code and table definitions for this. The way it should be is
that rerouting is just a property that can be optionally specified for a
chain.
About TC - thats one of the more complicated things I suppose. The first
thing that needs to be investigated is whether hooking it natively (meaning
it is called directly, similar to the TC classifiers today) or through a TC
classifier would make more sense. The second approach is definitely less
intrusive, but the TC classifier is pretty much useless with nftables
and it imposes some undesirable limits. In the end each class should offer
a chain to attach rules to. I'd also suggest to have a table-like container
for each qdisc, so chains can be added that are not attached directly to
classes (which I'm not sure is possible when using a TC classifier).
What's further needed is:
- a way to transport the nftables netlink attributes to the kernel.
Either encapsulated in TC attributes or the "normal" way, depending
on how it is hooked.
- nftables needs to be taught about TC verdicts. Classes bound to the
classifier should be treated similar to nftables chains (meaning a
lookup is made and the reference is stored). Check out nft_data_init()
for reference.
- the ruleset evaluation function probably needs to be split into a
generic part, dealing with internal flow control, and the netfilter/
TC specific part, dealing with netfilter verdicts and class IDs.
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <BANLkTikT_ETuEE2e7Khip9xJKFiDgBe7Qg@mail.gmail.com>]
* Fwd: nftables
[not found] <BANLkTikT_ETuEE2e7Khip9xJKFiDgBe7Qg@mail.gmail.com>
@ 2011-04-29 9:33 ` Juraj Gabčík
2011-04-29 10:06 ` nftables Jan Engelhardt
0 siblings, 1 reply; 7+ messages in thread
From: Juraj Gabčík @ 2011-04-29 9:33 UTC (permalink / raw)
To: netfilter
Hi people!
First, I would like to introduce myself to you. My name is Juraj
Gabèík and I am a student at the Faculty of Informatics at the
University of ®ilina, Slovakia. My reason for writing to you is that I
would like to ask you for a favour. Now I am writing my bachelor's
theses about nftables and I would be grateful to you for some
information I need concerning this issue. I found something on the
internet but it wasn't enough.
I am interested in the background of the processing of packet after
it's received by NIC: what queues it passes, where the rules can be
applied etc. Neither I could find any information about whether
nftables have the same structure of classes INPUT, OUTPUT and FORWARD
as iptables.
I need to compare the efficiency of the firewall created by iptables
and nftables and I would be very grateful if you could explain to me
the main differences between the processing of packet by means of
iptables and nftables. Also a demonstration of some rules written by
means of iptables and nftables (rules of the same meaning in both
cases) would be very helpful.
How to compile kernel supporting nftables?
If you would come up with something more that would help me or that
would be useful for my theses I would highly appreciate it. As I have
already mentioned, I am mainly concerned about the information related
to the background of the processing of the packet and the comparison
of the efficiency of iptables and nftables.
Hope to hear from you soon,
Juraj Gabèík
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: nftables
2011-04-29 9:33 ` Fwd: nftables Juraj Gabčík
@ 2011-04-29 10:06 ` Jan Engelhardt
0 siblings, 0 replies; 7+ messages in thread
From: Jan Engelhardt @ 2011-04-29 10:06 UTC (permalink / raw)
To: Juraj Gabčík; +Cc: netfilter
On Friday 2011-04-29 11:33, Juraj Gabčík wrote:
>
>I am interested in the background of the processing of packet after
>it's received by NIC: what queues it passes, where the rules can be
>applied etc. Neither I could find any information about whether
>nftables have the same structure of classes INPUT, OUTPUT and FORWARD
>as iptables.
>
>I need to compare the efficiency of the firewall created by iptables
>and nftables and I would be very grateful if you could explain to me
>the main differences between the processing of packet by means of
>iptables and nftables.
Differences:
iptables (or more precisely the Xtables collective) uses a packed
table and no "indirect interpreter" - a module like xt_u32 is
optional -, which yields the speediest execution environment. This
packing is important the larger the ruleset becomes, and the smaller
the CPU caches are. It also has no limits on call depth.
Xtables does not use the Netlink protocol yet for conveying changes
to the kernel, but it is being pondered how to get it there. Netlink
attributes have some worrying limitations and no consensus was yet
reached on the packet format. The much-sought nlattr32 patches have
not appeared yet either, so the protocol effort is staggering, but I
hold high hopes someone is on nla32 - meanwhile, I utilize the time
by doing precursor work on the userspace components instead (the
option parsing patches posted - a large part of the code is reusable
for a Netlink variant).
^ permalink raw reply [flat|nested] 7+ messages in thread
* nftables
@ 2011-05-05 7:24 Juraj Gabčík
0 siblings, 0 replies; 7+ messages in thread
From: Juraj Gabčík @ 2011-05-05 7:24 UTC (permalink / raw)
To: netfilter
Hi
I have a problem:
I try run nftables - i followed steps written here
http://lists.netfilter.org/pipermail/netfilter-cvslog/2009-March/006316.html
I downloaded kernel tree, and compile nftables into kernel
run new kernel wiht nftables support BUT when i wrote some rule f.e.
nft rule add inet filter output ip protocol tcp => drop , system
accepted it bud it doesnt have some effect - I still had internet
access
maybe problem is, that i have compiled iptables into kernel too - and
they are useful
so i tried compile kernel without iptables, but it crash
so can somebody advice me how to compile functional nftables?
sorry, my english is not very good :)
^ permalink raw reply [flat|nested] 7+ messages in thread
* nftables
@ 2020-04-28 7:38 Patrick Greiff
2020-04-28 7:50 ` nftables Fatih USTA
0 siblings, 1 reply; 7+ messages in thread
From: Patrick Greiff @ 2020-04-28 7:38 UTC (permalink / raw)
To: netfilter
Hi everyone,
i have a question about nftables.
at iptables i had a blacklist where i wrote in the ip that wanted to
hack me.
how can I integrate something into nftables? and also restart when the
ips are updated.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-04-30 3:52 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <4976FF54.1000009@linux.vnet.ibm.com>
[not found] ` <200901271540.36749.rusty@rustcorp.com.au>
[not found] ` <497ED2B5.4040703@trash.net>
[not found] ` <497F059F.7070903@linux.vnet.ibm.com>
[not found] ` <497F09CA.2040306@trash.net>
[not found] ` <497FEBE5.1050508@linux.vnet.ibm.com>
[not found] ` <498013D7.3010401@trash.net>
[not found] ` <49C083F4.9010506@linux.vnet.ibm.com>
[not found] ` <49C089A2.2020809@trash.net>
[not found] ` <49C09610.1010106@linux.vnet.ibm.com>
2009-03-18 7:47 ` nftables Patrick McHardy
[not found] <BANLkTikT_ETuEE2e7Khip9xJKFiDgBe7Qg@mail.gmail.com>
2011-04-29 9:33 ` Fwd: nftables Juraj Gabčík
2011-04-29 10:06 ` nftables Jan Engelhardt
2011-05-05 7:24 nftables Juraj Gabčík
-- strict thread matches above, loose matches on Subject: below --
2020-04-28 7:38 nftables Patrick Greiff
2020-04-28 7:50 ` nftables Fatih USTA
[not found] ` <169e18be-82c8-47b7-2ca6-44e03c86eebd@gmx.de>
2020-04-28 8:45 ` nftables Fatih USTA
2020-04-30 3:52 ` nftables Trent W. Buck
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.