From: "markooff" <markooff@interia.pl>
To: "lists.netfilter.org" <netfilter@lists.netfilter.org>
Subject: A bug with using match limit
Date: Tue, 17 Dec 2002 03:51:27 +0100 [thread overview]
Message-ID: <006101c2a577$32996480$0400a8c0@1> (raw)
Hello!
Perhaps it's not a really new topic on this board, but i've found this
problem recently
I share my DSL connection with 4 other people and
i was just trying to limit one of them (who used to download lots of films,
mp3s )
and when i tried to use inverted match limit just like
iptables -I FORWARD -p tcp -d 192.168.0.3 -m ! limit --limit 5/s -j
DROP
i received an error message :
iptables v1.2.6a: Couldn't load match `!':/usr/lib/iptables/libipt_!.so:
cannot open shared object file: No such file or directory
Try `iptables -h' or 'iptables --help' for more information.
This looks like iptables treats an "!" after "-m" like an sparate match ,
not connected with limit expression
But in the Iptables Tutorial 1.1.15 by Oskar Andreasson there is written :
"The limit match may also be inverted by adding a ! flag in front of the
limit match. It would then be expressed as -m ! limit. This means that all
packets will be matched after they have broken the limit."
I don't know, perhaps i've did somethig wrong (what it could be ??? ), but i
tried every possible combination of
m, limit and ! expressions, without any results.
Ofcourse i'd managed to solve my problem by
root@horus:/etc# iptables -I FORWARD -p tcp -d 192.168.0.3 -j DROP
root@horus:/etc# iptables -I FORWARD -p tcp -d 192.168.0.3 -m limit --limit
5/s -j allowed
but it's not a proper solvation :))
Thanks a LOT
Pawel Markowski
markooff@interia.pl
markooff@uj.edu.pl
Linux Registered User
#289621
----------------------------------------------------------------------
WIADOMOSCI minuta po minucie... >>> http://link.interia.pl/f16a8
next reply other threads:[~2002-12-17 2:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-17 2:51 markooff [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-12-12 10:01 A bug with using match limit markooff
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='006101c2a577$32996480$0400a8c0@1' \
--to=markooff@interia.pl \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox