Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Buddy wu <ejournal4me@gmail.com>
To: Henrik Nordstrom <hno@marasystems.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: what's the problem of DNAT
Date: Mon, 31 Oct 2005 15:58:08 +0800	[thread overview]
Message-ID: <43a0cdcb0510302358y10f854ffg@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0510310758150.11251@filer.marasystems.com>

> Any other rules in PREROUTING on port 80?
>
> iptables-save -t nat

-A PREROUTING -d Inet1 -p tcp -m tcp --dport 6100 -j DNAT
--to-destination 192.168.16.21:6100
-A PREROUTING -d Inet1 -p tcp -m tcp --dport 80 -j DNAT
--to-destination 192.168.16.114:80
-A PREROUTING -d Inet1 -p tcp -m tcp --dport 20 -j DNAT
--to-destination 192.168.16.114:20
-A PREROUTING -d Inet1 -p tcp -m tcp --dport 8081 -j DNAT
--to-destination 192.168.16.100:8081
-A PREROUTING -d Inet1 -p tcp -m tcp --dport 8082 -j DNAT
--to-destination 192.168.16.100:8082
-A PREROUTING -d Inet1 -p tcp -m tcp --dport 8085 -j DNAT
--to-destination 192.168.16.100:8085
-A PREROUTING -d Inet1 -p tcp -m tcp --dport 8083 -j DNAT
--to-destination 192.168.16.100:8083
-A PREROUTING -d Inet1 -p tcp -m tcp --dport 8087 -j DNAT
--to-destination 192.168.16.100:8087

these are the rules in PREROUTING. the Inet1 replaced for the   
internet address. Now it only can connect to Inet1:80 through the
internet. and others like :Inet1:8083 can't be accessed.
    It worked months ago . but now it don't work anyway


  reply	other threads:[~2005-10-31  7:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-31  3:31 what's the problem of DNAT Buddy wu
2005-10-31  5:24 ` Buddy wu
2005-10-31  6:59 ` Henrik Nordstrom
2005-10-31  7:58   ` Buddy wu [this message]
2005-10-31  8:10     ` Rob Sterenborg
2005-10-31  8:26       ` Buddy wu
2005-10-31 13:25         ` Henrik Nordstrom

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=43a0cdcb0510302358y10f854ffg@mail.gmail.com \
    --to=ejournal4me@gmail.com \
    --cc=hno@marasystems.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox