All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sven Schuster <schuster.sven@gmx.de>
To: Patrick Ahler <patrick@vikus.com>, netfilter@lists.netfilter.org
Subject: Re: --sport
Date: Wed, 05 Mar 2003 17:36:15 +0100	[thread overview]
Message-ID: <3E66277F.3090001@gmx.de> (raw)
In-Reply-To: ABEKJILKOKKGGDJKHKDFGEALCAAA.patrick@vikus.com


What you need is the mport-match:

iptables -A FORWARD -p tcp -m mport --sport 5000:5020 -m state ...

Sven


Patrick Ahler wrote:

>1. Is there a way to specify a range of source ports when setting a rule. My
>ftp server uses ports 5000-5020 for passive but I don't want to have to
>write a rule for each port. (For a network firewall). The ftp server is
>behind the firewall.
>
>
>iptables -A FORWARD -p tcp --sport 5000 -m state --state
>NEW,ESTABLISHED,RELATED -j ACCEPT
>
>
>
>  
>



  reply	other threads:[~2003-03-05 16:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-05 16:21 --sport Patrick Ahler
2003-03-05 16:36 ` Sven Schuster [this message]
2003-03-05 19:52   ` --sport Martin Josefsson
2003-03-05 21:30     ` --sport Sven Schuster
2003-03-05 16:40 ` --sport Maciej Soltysiak

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=3E66277F.3090001@gmx.de \
    --to=schuster.sven@gmx.de \
    --cc=netfilter@lists.netfilter.org \
    --cc=patrick@vikus.com \
    /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.