From: Mattias Ahnberg <mattias@ahnberg.pp.se>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] how can i filter for a range of ports?
Date: Wed, 16 Apr 2003 11:14:25 +0000 [thread overview]
Message-ID: <marc-lartc-105049182427652@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105031449822405@msgid-missing>
>> "AS" = Adam Schrader <schrader2k2@yahoo.com> writes:
AS> how can i filter for a range of ports? I have seen people use
AS> 1024:32000 when saying from port 1024 to 32000 but tc doesnt
AS> accept this? can somebody tell me how i can do this? -thanks
iptables -A INPUT -p tcp --dport 1024:65535 -j ACCEPT
Should do what you want. iptables is very limited in defining ranges,
multiple hosts and similar ranges compares to ipfw2. I hope this will
change sometime in the future since it would highly simplify the
definitions of large rulesets.
/ahnberg.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2003-04-16 11:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-14 10:00 [LARTC] how can i filter for a range of ports? Adam Schrader
2003-04-14 10:19 ` Catalin BOIE
2003-04-16 11:14 ` Mattias Ahnberg [this message]
2003-04-16 16:41 ` Stef Coene
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=marc-lartc-105049182427652@msgid-missing \
--to=mattias@ahnberg.pp.se \
--cc=lartc@vger.kernel.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.