netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Largent <jwlargent@vlsmaps.com>
To: "Mamadou Touré" <e2ia.ci@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: move rule to a position
Date: Thu, 17 Jun 2010 08:25:21 -0500	[thread overview]
Message-ID: <1276781121.2021.16.camel@localhost> (raw)
In-Reply-To: <AANLkTik1sNBmNmsm0vZ7--tZ4EbBXwwTMpBhHnDW6JnJ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 795 bytes --]

On Thu, 2010-06-17 at 08:26 +0000, Mamadou Touré wrote:
> Hi, all i'd like to move rule to a position.
> ex: i've these rules :
> 1- iptable -A -p TCP --dport 80 -j ACCEPT
> 2- iptable -A -p TCP --dport 21 -j ACCEPT
> 3- iptable -A -p UDP --dport 53 -j ACCEPT
> 
> after executing these command is there a mean to move rule at
> position 3 to position 1 ?
> So that the rule at 1 could go to 2 and 2 to 3.
> 
> Someone has allready done that ? plz Help.
> regards.
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

iptables-save > fw.rules
vi fw.rules and put them in the order you want them.
iptables-restore < fw.rules

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  parent reply	other threads:[~2010-06-17 13:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-17  8:26 move rule to a position Mamadou Touré
2010-06-17  8:54 ` Florian Schaal
2010-06-17  9:11   ` Jan Engelhardt
2010-06-17  8:58 ` Jan Engelhardt
2010-06-17 13:25 ` Jeff Largent [this message]
2010-06-17 14:34 ` Grant Taylor
2010-06-17 14:46   ` /dev/rob0

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=1276781121.2021.16.camel@localhost \
    --to=jwlargent@vlsmaps.com \
    --cc=e2ia.ci@gmail.com \
    --cc=netfilter@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).