From: "Jörg Harmuth" <harmuth@mnemon.de>
To: netfilter@lists.netfilter.org
Subject: Re: iptables & ebtables
Date: Fri, 14 Oct 2005 15:53:32 +0200 [thread overview]
Message-ID: <434FB85C.6020109@mnemon.de> (raw)
In-Reply-To: <20051014040552.1FA9A4E89@smtp.263.net>
bend chen wrote:
> HI,netfilter-user
>
>
> I have some question,pleas help me.
> 1\if I used ebtables process a package,but need iptables can't process THIS package,how can I do?
Sorry, I can't parse this sentence
> 2\can i use iptables drop some LENGTH package, can I mach : if the package > 128K then DROP?
Yes. Use the length match, e.g.
iptables -A INPUT -p tcp -m length --length --length 1501: -j DROP
will send all tcp-packets with more than 1500 bytes to nirvana. BTW,
neither tcp (1500 bytes max) nor udp (65 KBytes max) will ever generate
packets of the size you mentioned above. ICMP packets are even smaller -
i don't recall max size at the moment.
HTH,
Joerg
next prev parent reply other threads:[~2005-10-14 13:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-14 4:07 iptables & ebtables bend chen
2005-10-14 13:53 ` Jörg Harmuth [this message]
2005-10-14 18:14 ` Henrik Nordstrom
-- strict thread matches above, loose matches on Subject: below --
2005-10-15 8:28 bend chen
2005-10-16 17:38 ` Henrik Nordstrom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=434FB85C.6020109@mnemon.de \
--to=harmuth@mnemon.de \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.