All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dax Kelson <Dax.Kelson@gurulabs.com>
To: mike bramm <mike.bramm@bomberjacketproductions.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: SNAT & Squence Numbers
Date: 12 Nov 2002 01:22:42 -0700	[thread overview]
Message-ID: <1037089362.16667.13.camel@thud> (raw)
In-Reply-To: <3DCFE7AC.9867DF43@bomberjacketproductions.com>

On Mon, 2002-11-11 at 10:23, mike bramm wrote:
> Hi, 
>     I'm a Router/PIX guy that is just getting into the Linux/IPTables
> scene. I've read the man pages and searched the web for information on
> IPTables. And I'm not able to find answers to some of my questions.
> Maybe you can help? 
>       * If SNAT is configured for many to one (PAT), then I would
>         presume that the connections are tracked by sequence numbers.
>         Are the sequence numbers picked randomly, like the PIX? And is
>         there a range in with they are picked from? What mod does
>         this?

AFAIK, the sequence numbers are left intact. I could be wrong though. A
quick check with a packet sniffer should answer this.

>       * A syntax question. I've looked at alot of syntax examples and
>         I've noticed one character that I can't seem to match up with
>         any of the tutorials or man
>         pages.                                                                                                         $IPTABLES -A INPUT $WAN_IFACE \ -j DROP   What the heck is "\"? It looks like it would be used to separate the match and the target, but is not really necessary. Is this just a personal preference or is it needed?

This isn't iptables syntax at all. 

The "\" at the end of a line is known as the continuation character.
This is bourne shell syntax. It means that the next line should be
treated as a continuation of the current line. The "\" character NOT at
the end of the line, is the escape character and removes any special
treatment of the following character and causes it to be treated
literally.

Dax



  reply	other threads:[~2002-11-12  8:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-11 17:23 SNAT & Squence Numbers mike bramm
2002-11-12  8:22 ` Dax Kelson [this message]
     [not found] <FD8F124A387AD6119F7900A0D218B321487DB8@hslex01.hsl-brabantzuid.nl>
2002-11-12  8:51 ` Rob Sterenborg

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=1037089362.16667.13.camel@thud \
    --to=dax.kelson@gurulabs.com \
    --cc=mike.bramm@bomberjacketproductions.com \
    --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.