All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* NAT HOWTO; iptables, man pageM; Errata
@ 2002-12-19  9:47 andre
  0 siblings, 0 replies; only message in thread
From: andre @ 2002-12-19  9:47 UTC (permalink / raw
  To: netfilter

Dear Rusty Russell,
First of all, I must apologise if I use a wrong email-adress, but this
was the only one I found in the HowTo.

The HowTo descripes following:
6.2. Destination NAT
...
## Change destination addresses of web traffic to 5.6.7.8, port 8080.
# iptables -t nat -A PREROUTING -p tcp --dport 80 -i eth0 \
        -j DNAT --to 5.6.7.8:8080

The "--dport" option is available only if the extended packet matching
modules are loaded.
Altought the man page says, that the extended packet matching modules
are loaded implicity, when -p or --protocol is specified, the only way
to load them in Version 1.2.2 is to set the -m option.

So the way it works look like this
## Change destination addresses of web traffic to 5.6.7.8, port 8080.
# iptables -t nat -A PREROUTING -p tcp -m tcp --dport 80 -i eth0 \
        -j DNAT --to 5.6.7.8:8080

Best regards
Ein herzliches Servus aus Wien
André Dostal
mailto: ad7@gmx.at



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-19  9:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-19  9:47 NAT HOWTO; iptables, man pageM; Errata andre

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.