All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pascal Hambourg <pascal@plouf.fr.eu.org>
To: netfilter@vger.kernel.org
Subject: Re: Quick help with NOTRACK rule
Date: Wed, 14 Aug 2013 09:57:52 +0200	[thread overview]
Message-ID: <520B3880.1090301@plouf.fr.eu.org> (raw)
In-Reply-To: <520AB9DF.7060207@gmail.com>

Hello,

Alex Flex a écrit :
> 
> I also tried adding one more rule iptables -t raw -A INPUT -p tcp 
> --sport 22 -j NOTRACK  but i get
> iptables: No chain/target/match by that name.

Please read the iptables man page about the raw table :

            It  provides  the following built-in chains: PREROUTING (for
            packets arriving via  any  network  interface)  OUTPUT  (for
            packets generated by local processes)

Also, you want to match incoming packets with destination port 22, not
source. So :

iptables -t raw -A PREROUTING -p tcp --dport 22 -j NOTRACK

      reply	other threads:[~2013-08-14  7:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-13 22:57 Quick help with NOTRACK rule Alex Flex
2013-08-14  7:57 ` Pascal Hambourg [this message]

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=520B3880.1090301@plouf.fr.eu.org \
    --to=pascal@plouf.fr.eu.org \
    --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 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.