On 10 15 , 2 02 , Tauno Voipio <tauno.voi...@INVALIDiki.fi> wrote:
> shetra...@gmail.com wrote:
> > On 10 13 , 5 30 , Tauno Voipio <tauno.voi...@INVALIDiki.fi> wrote:
>
> >>shetra...@gmail.com wrote:
>
> >>>Hi, Any one tried to set packet filtering on the ethernet interface
> >>>driver ?
> >>>what i'm trying to set the source address filtering not by netfilter,
> >>>just
> >>>on the ethernet interface drivers. thanks in advance.
>
> >>>Cheers.
>
> >>What are you attempting to achieve?
>
> >>The filtering in the driver itself is not a
> >>clean way to do the filtering.
>
> >>You may have a look at ebtables, if the need
> >>is to filter a bridged connection.
>
> >>--
>
> >>Tauno Voipio
> >>tauno voipio (at) iki fi
>
> > Here's my ideas
>
> > What i want to packet filtering on the ethernet interface levels is
> > that to prevent
> > the CPU usages from the UDP/ICMPs packet attcking. some of cases 100M
> > packet
> > processing cause the 20% more CPU usages, even if it has filter
> > address from the netfilter.
>
> If you want to filter according to the IP packet or
> its payload (TCP, UDP etc), you're not winning anything
> compared to the iptables filtering, as the payload
> of the Ethernet packet (IP, ARP etc) needs to be
> analyzed before filtering, and the iptables handling
> is in the right places in the analyzing chain.
>
> A different story is if the disturbing Ethernet frames
> are some non-IP traffic. ebtables should help here without
> the need to re-invent another wheel.
>
> --
>
> Tauno Voipio
> tauno voipio (at) iki fi- -
>
> - -
Thanks all members
yes, tried to set by the ebtables, the layer 2 filtering but i
wouldn't help.
the traditional packet filtering rule set like layer 3 and 7 consuming
the
CPU too lot, especially UDP/ICMP attacking. i guess, this wan't enough
to filtering by source address on the 2/7 layers. yes, layer 7 usually
concerning
the regular expression matters.
so, i'm looking for the more effective filtering method without using
hardware off-loading
method.
let it suppose the some of attacking schemas.
1. 50 valid ip address sending massive UDP packets the linux box with
100M bandwidth.
2. the linux box could droping the all packets from that source
address(with iptables/ebtables)
3. what it means that it still processing on the kernel
4. its CPU comsuming LOT!
5. and possible HANG.
anyhow thank you all members to concerning this stuffs.
Cheers