* SNAT & Squence Numbers
@ 2002-11-11 17:23 mike bramm
2002-11-12 8:22 ` Dax Kelson
0 siblings, 1 reply; 3+ messages in thread
From: mike bramm @ 2002-11-11 17:23 UTC (permalink / raw)
To: netfilter
[-- Attachment #1: Type: text/plain, Size: 1028 bytes --]
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?
* 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?
Thanks for your time. I wish I had heard about IPTables a year ago.
Anthony Stone does have cool sayings.
mike
[-- Attachment #2: Type: text/html, Size: 1752 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: SNAT & Squence Numbers
2002-11-11 17:23 SNAT & Squence Numbers mike bramm
@ 2002-11-12 8:22 ` Dax Kelson
0 siblings, 0 replies; 3+ messages in thread
From: Dax Kelson @ 2002-11-12 8:22 UTC (permalink / raw)
To: mike bramm; +Cc: netfilter
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
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <FD8F124A387AD6119F7900A0D218B321487DB8@hslex01.hsl-brabantzuid.nl>]
* RE: SNAT & Squence Numbers
[not found] <FD8F124A387AD6119F7900A0D218B321487DB8@hslex01.hsl-brabantzuid.nl>
@ 2002-11-12 8:51 ` Rob Sterenborg
0 siblings, 0 replies; 3+ messages in thread
From: Rob Sterenborg @ 2002-11-12 8:51 UTC (permalink / raw)
To: 'mike bramm', netfilter
> - 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?
"\" is used to continue a line on the next line.
The "\" char itself will be discarded when all lines are put together the
command is executed.
Take the following line :
iptables -A INPUT -i eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
This could (if you wanted to) be rewritten as :
iptables -A INPUT \
-i eth0 \
-m state --state RELATED,ESTABLISHED \
-j ACCEPT
Rob
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-11-12 8:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-11 17:23 SNAT & Squence Numbers mike bramm
2002-11-12 8:22 ` Dax Kelson
[not found] <FD8F124A387AD6119F7900A0D218B321487DB8@hslex01.hsl-brabantzuid.nl>
2002-11-12 8:51 ` Rob Sterenborg
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.