All of lore.kernel.org
 help / color / mirror / Atom feed
* Bpfilter Development
@ 2020-04-20 21:37 Christian Deacon
  2020-04-21 11:09 ` Toke Høiland-Jørgensen
  0 siblings, 1 reply; 4+ messages in thread
From: Christian Deacon @ 2020-04-20 21:37 UTC (permalink / raw)
  To: bpf

Hey everyone,


I apologize if this is the incorrect place to address this. I couldn't 
find any mailing list for Bpfilter specifically. If there is a better 
place to address this, suggestions are welcomed and appreciated!


I was wondering if Bpfilter is still under development or if the project 
development is at a halt. I am planning out my next major project that 
will be responsible for forwarding traffic and blocking (D)DoS attacks 
based off of filtering rules. As of right now, I'm trying to decide 
whether to use Bpfilter or XDP-native for blocking malicious traffic. 
With the project's current layout, I feel it would be easier using 
something like Bpfilter for this. However, I'm not sure when this will 
be completely developed to the point it'd be usable with my application. 
If this project is under development, is there any ETA on when it will 
be officially supported and in a usable state for most applications 
(specifically for dropping malicious traffic)?


One last question I had is if there were any estimates on how fast 
Bpfilter would be compared to XDP-native when dropping malicious 
packets. I'd assume they would see similar performance, but I'm not 
entirely sure.


Any help is highly appreciated and thank you for your time!


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bpfilter Development
  2020-04-20 21:37 Bpfilter Development Christian Deacon
@ 2020-04-21 11:09 ` Toke Høiland-Jørgensen
  2020-04-22 15:04   ` Christian Deacon
  0 siblings, 1 reply; 4+ messages in thread
From: Toke Høiland-Jørgensen @ 2020-04-21 11:09 UTC (permalink / raw)
  To: Christian Deacon, bpf

Christian Deacon <gamemann@gflclan.com> writes:

> Hey everyone,
>
>
> I apologize if this is the incorrect place to address this. I couldn't 
> find any mailing list for Bpfilter specifically. If there is a better 
> place to address this, suggestions are welcomed and appreciated!
>
>
> I was wondering if Bpfilter is still under development or if the project 
> development is at a halt. I am planning out my next major project that 
> will be responsible for forwarding traffic and blocking (D)DoS attacks 
> based off of filtering rules. As of right now, I'm trying to decide 
> whether to use Bpfilter or XDP-native for blocking malicious traffic. 
> With the project's current layout, I feel it would be easier using 
> something like Bpfilter for this. However, I'm not sure when this will 
> be completely developed to the point it'd be usable with my application. 
> If this project is under development, is there any ETA on when it will 
> be officially supported and in a usable state for most applications 
> (specifically for dropping malicious traffic)?

As a general rule I think you will find that there are very few upstream
developers who will commit to any ETA other than "when it's done". As
for bpfilter specifically, I am not aware of anyone actively working on
it at all...

> One last question I had is if there were any estimates on how fast 
> Bpfilter would be compared to XDP-native when dropping malicious 
> packets. I'd assume they would see similar performance, but I'm not 
> entirely sure.

I would expect that XDP would be significantly faster (as long as you
are using hardware with native XDP support in the driver). For DDOS
filtering specifically, I think it would be a no-brainer to just go with
XDP.

Feel free to use xdp-filter as a starting point:

https://github.com/xdp-project/xdp-tools/tree/master/xdp-filter

It's pretty dumb as far as expressing the filtering rules themselves are
concerned, but it does demonstrate how you might structure such a
program, including how to only load the BPF code needed to support the
active filtering rules. Pull requests always welcome to improve it as
well, of course :)

-Toke


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bpfilter Development
  2020-04-21 11:09 ` Toke Høiland-Jørgensen
@ 2020-04-22 15:04   ` Christian Deacon
  2020-04-22 15:18     ` Toke Høiland-Jørgensen
  0 siblings, 1 reply; 4+ messages in thread
From: Christian Deacon @ 2020-04-22 15:04 UTC (permalink / raw)
  To: Toke Høiland-Jørgensen, bpf

Hey Toke,


Thank you for your response!


Regarding the ETA rule, I will keep that noted in the future.


Thank you for the information regarding Bpfilter as well. It appears the 
development towards this has stopped at least temporarily. We will be 
looking into using XDP-native in this case! I will also take a look at 
the XDP-filter project you linked to see how everything is done, etc.


Thanks again!


On 4/21/2020 6:09 AM, Toke Høiland-Jørgensen wrote:
> Christian Deacon <gamemann@gflclan.com> writes:
>
>> Hey everyone,
>>
>>
>> I apologize if this is the incorrect place to address this. I couldn't
>> find any mailing list for Bpfilter specifically. If there is a better
>> place to address this, suggestions are welcomed and appreciated!
>>
>>
>> I was wondering if Bpfilter is still under development or if the project
>> development is at a halt. I am planning out my next major project that
>> will be responsible for forwarding traffic and blocking (D)DoS attacks
>> based off of filtering rules. As of right now, I'm trying to decide
>> whether to use Bpfilter or XDP-native for blocking malicious traffic.
>> With the project's current layout, I feel it would be easier using
>> something like Bpfilter for this. However, I'm not sure when this will
>> be completely developed to the point it'd be usable with my application.
>> If this project is under development, is there any ETA on when it will
>> be officially supported and in a usable state for most applications
>> (specifically for dropping malicious traffic)?
> As a general rule I think you will find that there are very few upstream
> developers who will commit to any ETA other than "when it's done". As
> for bpfilter specifically, I am not aware of anyone actively working on
> it at all...
>
>> One last question I had is if there were any estimates on how fast
>> Bpfilter would be compared to XDP-native when dropping malicious
>> packets. I'd assume they would see similar performance, but I'm not
>> entirely sure.
> I would expect that XDP would be significantly faster (as long as you
> are using hardware with native XDP support in the driver). For DDOS
> filtering specifically, I think it would be a no-brainer to just go with
> XDP.
>
> Feel free to use xdp-filter as a starting point:
>
> https://github.com/xdp-project/xdp-tools/tree/master/xdp-filter
>
> It's pretty dumb as far as expressing the filtering rules themselves are
> concerned, but it does demonstrate how you might structure such a
> program, including how to only load the BPF code needed to support the
> active filtering rules. Pull requests always welcome to improve it as
> well, of course :)
>
> -Toke
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bpfilter Development
  2020-04-22 15:04   ` Christian Deacon
@ 2020-04-22 15:18     ` Toke Høiland-Jørgensen
  0 siblings, 0 replies; 4+ messages in thread
From: Toke Høiland-Jørgensen @ 2020-04-22 15:18 UTC (permalink / raw)
  To: Christian Deacon, bpf

Christian Deacon <gamemann@gflclan.com> writes:

> Hey Toke,
>
>
> Thank you for your response!
>
>
> Regarding the ETA rule, I will keep that noted in the future.
>
>
> Thank you for the information regarding Bpfilter as well. It appears the 
> development towards this has stopped at least temporarily. We will be 
> looking into using XDP-native in this case! I will also take a look at 
> the XDP-filter project you linked to see how everything is done, etc.
>
>
> Thanks again!

Cool. You're welcome :)

-Toke


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-04-22 15:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-20 21:37 Bpfilter Development Christian Deacon
2020-04-21 11:09 ` Toke Høiland-Jørgensen
2020-04-22 15:04   ` Christian Deacon
2020-04-22 15:18     ` Toke Høiland-Jørgensen

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.