From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: netfilter@lists.netfilter.org
Subject: Re: Help on Iptables
Date: Sat, 16 Dec 2006 20:20:11 +0100 [thread overview]
Message-ID: <458446EB.8030005@plouf.fr.eu.org> (raw)
In-Reply-To: <1166288655.4584270fe0f14@webmail.yanbulink.net>
Hello,
wlagmay@yanbulink.net a écrit :
>
> I just want to know How am I going to do a blocking of multiple ports on a
> single line let say port 700 to 800.
>
> Im trying this command but it is not working
>
> iptables -A OUTPUT -p tcp -m state --state NEW -m tcp --dport 700-800 -j DROP
> iptables -A OUTPUT -p tcp -m state --state NEW -m tcp --dport 700 --to 800 -j
> DROP
man iptables says the port range syntax in port matches is "700:800".
The port range syntax "700-800" is used only in NAT targets.
next prev parent reply other threads:[~2006-12-16 19:20 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-16 17:04 Help on Iptables wlagmay
2006-12-16 19:20 ` Pascal Hambourg [this message]
2006-12-17 12:08 ` wlagmay
-- strict thread matches above, loose matches on Subject: below --
2003-10-14 12:50 Help on IPTABLES Gilles Yue
2003-10-13 12:09 Gilles Yue
2003-10-13 13:23 ` Ralf Spenneberg
2003-10-10 6:43 Gilles Yue
2003-10-09 12:24 Gilles Yue
2003-10-09 13:54 ` Rob Sterenborg
2003-10-14 6:59 ` Joel Newkirk
2003-10-09 12:20 info
2003-10-11 14:32 ` Leonardo Rodrigues Magalhães
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=458446EB.8030005@plouf.fr.eu.org \
--to=pascal.mail@plouf.fr.eu.org \
--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.